2 * FILE : src/mac/stattool.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 initstattoolc
56 #define SWIG_name "stattoolc"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 // Put some wx default wxChar* values into wxStrings.
90 DECLARE_DEF_STRING(StatusLineNameStr
);
91 DECLARE_DEF_STRING(ToolBarNameStr
);
92 static const wxString
wxPyEmptyString(wxT(""));
96 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
99 src
= (wxStatusBar
*) ptr
;
100 dest
= (wxWindow
*) src
;
101 return (void *) dest
;
104 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
107 src
= (wxStatusBar
*) ptr
;
108 dest
= (wxEvtHandler
*) src
;
109 return (void *) dest
;
112 static void *SwigwxStatusBarTowxObject(void *ptr
) {
115 src
= (wxStatusBar
*) ptr
;
116 dest
= (wxObject
*) src
;
117 return (void *) dest
;
120 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
121 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
122 PyObject
* _resultobj
;
123 wxStatusBar
* _result
;
125 wxWindowID _arg1
= (wxWindowID
) -1;
126 long _arg2
= (long ) wxST_SIZEGRIP
;
127 wxString
* _arg3
= (wxString
*) &wxPyStatusLineNameStr
;
128 PyObject
* _argo0
= 0;
129 PyObject
* _obj3
= 0;
130 char *_kwnames
[] = { "parent","id","style","name", NULL
};
134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilO:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
145 _arg3
= wxString_in_helper(_obj3
);
150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
151 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,*_arg3
);
153 wxPyEndAllowThreads(__tstate
);
154 if (PyErr_Occurred()) return NULL
;
156 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
157 _resultobj
= Py_BuildValue("s",_ptemp
);
160 _resultobj
= Py_None
;
169 #define new_wxPreStatusBar() (new wxStatusBar())
170 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
171 PyObject
* _resultobj
;
172 wxStatusBar
* _result
;
173 char *_kwnames
[] = { NULL
};
177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
181 _result
= (wxStatusBar
*)new_wxPreStatusBar();
183 wxPyEndAllowThreads(__tstate
);
184 if (PyErr_Occurred()) return NULL
;
186 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
187 _resultobj
= Py_BuildValue("s",_ptemp
);
190 _resultobj
= Py_None
;
195 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
196 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
197 PyObject
* _resultobj
;
202 long _arg3
= (long ) wxST_SIZEGRIP
;
203 wxString
* _arg4
= (wxString
*) &wxPyStatusLineNameStr
;
204 PyObject
* _argo0
= 0;
205 PyObject
* _argo1
= 0;
206 PyObject
* _obj4
= 0;
207 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|lO:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_obj4
))
213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
220 if (_argo1
== Py_None
) { _arg1
= NULL
; }
221 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
228 _arg4
= wxString_in_helper(_obj4
);
233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
234 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,*_arg4
);
236 wxPyEndAllowThreads(__tstate
);
237 if (PyErr_Occurred()) return NULL
;
238 } _resultobj
= Py_BuildValue("i",_result
);
246 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
247 wxRect
* rect
= new wxRect
;
248 self
->GetFieldRect(item
, *rect
);
251 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
252 PyObject
* _resultobj
;
256 PyObject
* _argo0
= 0;
257 char *_kwnames
[] = { "self","item", NULL
};
261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
272 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
274 wxPyEndAllowThreads(__tstate
);
275 if (PyErr_Occurred()) return NULL
;
277 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
278 _resultobj
= Py_BuildValue("s",_ptemp
);
281 _resultobj
= Py_None
;
286 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
287 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
291 PyObject
* _argo0
= 0;
292 char *_kwnames
[] = { "self", NULL
};
295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
306 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
308 wxPyEndAllowThreads(__tstate
);
309 if (PyErr_Occurred()) return NULL
;
310 } _resultobj
= Py_BuildValue("i",_result
);
314 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
315 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
319 int _arg1
= (int ) 0;
320 PyObject
* _argo0
= 0;
321 char *_kwnames
[] = { "self","ir", NULL
};
324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
335 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
337 wxPyEndAllowThreads(__tstate
);
338 if (PyErr_Occurred()) return NULL
;
341 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
343 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
352 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
353 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
354 PyObject
* _resultobj
;
357 PyObject
* _argo0
= 0;
358 char *_kwnames
[] = { "self", NULL
};
361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
372 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
374 wxPyEndAllowThreads(__tstate
);
375 if (PyErr_Occurred()) return NULL
;
376 } _resultobj
= Py_BuildValue("i",_result
);
380 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
381 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
382 PyObject
* _resultobj
;
385 PyObject
* _argo0
= 0;
386 char *_kwnames
[] = { "self", NULL
};
389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
400 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
402 wxPyEndAllowThreads(__tstate
);
403 if (PyErr_Occurred()) return NULL
;
404 } _resultobj
= Py_BuildValue("i",_result
);
408 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
409 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
410 PyObject
* _resultobj
;
412 int _arg1
= (int ) 1;
413 PyObject
* _argo0
= 0;
414 char *_kwnames
[] = { "self","number", NULL
};
417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
428 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
430 wxPyEndAllowThreads(__tstate
);
431 if (PyErr_Occurred()) return NULL
;
432 } Py_INCREF(Py_None
);
433 _resultobj
= Py_None
;
437 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
438 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
442 int _arg2
= (int ) 0;
443 PyObject
* _argo0
= 0;
444 PyObject
* _obj1
= 0;
445 char *_kwnames
[] = { "self","text","i", NULL
};
448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
458 _arg1
= wxString_in_helper(_obj1
);
463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
464 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
466 wxPyEndAllowThreads(__tstate
);
467 if (PyErr_Occurred()) return NULL
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
477 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
478 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
483 PyObject
* _argo0
= 0;
484 PyObject
* _obj2
= 0;
485 char *_kwnames
[] = { "self","choices", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
499 _arg2
= int_LIST_helper(_obj2
);
506 _arg1
= PyList_Size(_obj2
);
513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
514 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
516 wxPyEndAllowThreads(__tstate
);
517 if (PyErr_Occurred()) return NULL
;
518 } Py_INCREF(Py_None
);
519 _resultobj
= Py_None
;
526 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
527 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
528 PyObject
* _resultobj
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","height", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } Py_INCREF(Py_None
);
551 _resultobj
= Py_None
;
555 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
556 wxToolBarToolBase
*src
;
558 src
= (wxToolBarToolBase
*) ptr
;
559 dest
= (wxObject
*) src
;
560 return (void *) dest
;
563 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
564 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxToolBarToolBase
* _arg0
;
567 PyObject
* _argo0
= 0;
568 char *_kwnames
[] = { "self", NULL
};
571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
582 wxToolBarToolBase_Destroy(_arg0
);
584 wxPyEndAllowThreads(__tstate
);
585 if (PyErr_Occurred()) return NULL
;
586 } Py_INCREF(Py_None
);
587 _resultobj
= Py_None
;
591 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
592 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
593 PyObject
* _resultobj
;
595 wxToolBarToolBase
* _arg0
;
596 PyObject
* _argo0
= 0;
597 char *_kwnames
[] = { "self", NULL
};
600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
611 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
613 wxPyEndAllowThreads(__tstate
);
614 if (PyErr_Occurred()) return NULL
;
615 } _resultobj
= Py_BuildValue("i",_result
);
619 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
620 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
621 PyObject
* _resultobj
;
623 wxToolBarToolBase
* _arg0
;
624 PyObject
* _argo0
= 0;
625 char *_kwnames
[] = { "self", NULL
};
628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
639 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
641 wxPyEndAllowThreads(__tstate
);
642 if (PyErr_Occurred()) return NULL
;
643 }{ _resultobj
= wxPyMake_wxObject(_result
); }
647 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
648 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
650 wxToolBarBase
* _result
;
651 wxToolBarToolBase
* _arg0
;
652 PyObject
* _argo0
= 0;
653 char *_kwnames
[] = { "self", NULL
};
656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
667 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
669 wxPyEndAllowThreads(__tstate
);
670 if (PyErr_Occurred()) return NULL
;
671 }{ _resultobj
= wxPyMake_wxObject(_result
); }
675 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
676 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
677 PyObject
* _resultobj
;
679 wxToolBarToolBase
* _arg0
;
680 PyObject
* _argo0
= 0;
681 char *_kwnames
[] = { "self", NULL
};
684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
695 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
697 wxPyEndAllowThreads(__tstate
);
698 if (PyErr_Occurred()) return NULL
;
699 } _resultobj
= Py_BuildValue("i",_result
);
703 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
704 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
705 PyObject
* _resultobj
;
707 wxToolBarToolBase
* _arg0
;
708 PyObject
* _argo0
= 0;
709 char *_kwnames
[] = { "self", NULL
};
712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
723 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
725 wxPyEndAllowThreads(__tstate
);
726 if (PyErr_Occurred()) return NULL
;
727 } _resultobj
= Py_BuildValue("i",_result
);
731 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
732 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
733 PyObject
* _resultobj
;
735 wxToolBarToolBase
* _arg0
;
736 PyObject
* _argo0
= 0;
737 char *_kwnames
[] = { "self", NULL
};
740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
751 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
753 wxPyEndAllowThreads(__tstate
);
754 if (PyErr_Occurred()) return NULL
;
755 } _resultobj
= Py_BuildValue("i",_result
);
759 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
760 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
761 PyObject
* _resultobj
;
763 wxToolBarToolBase
* _arg0
;
764 PyObject
* _argo0
= 0;
765 char *_kwnames
[] = { "self", NULL
};
768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
779 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
781 wxPyEndAllowThreads(__tstate
);
782 if (PyErr_Occurred()) return NULL
;
783 } _resultobj
= Py_BuildValue("i",_result
);
787 #define wxToolBarToolBase_GetKind(_swigobj) (_swigobj->GetKind())
788 static PyObject
*_wrap_wxToolBarToolBase_GetKind(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
789 PyObject
* _resultobj
;
791 wxToolBarToolBase
* _arg0
;
792 PyObject
* _argo0
= 0;
793 char *_kwnames
[] = { "self", NULL
};
796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetKind",_kwnames
,&_argo0
))
799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetKind. Expected _wxToolBarToolBase_p.");
806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
807 _result
= (wxItemKind
)wxToolBarToolBase_GetKind(_arg0
);
809 wxPyEndAllowThreads(__tstate
);
810 if (PyErr_Occurred()) return NULL
;
811 } _resultobj
= Py_BuildValue("i",_result
);
815 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
816 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
817 PyObject
* _resultobj
;
819 wxToolBarToolBase
* _arg0
;
820 PyObject
* _argo0
= 0;
821 char *_kwnames
[] = { "self", NULL
};
824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
835 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
837 wxPyEndAllowThreads(__tstate
);
838 if (PyErr_Occurred()) return NULL
;
839 } _resultobj
= Py_BuildValue("i",_result
);
843 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
844 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
845 PyObject
* _resultobj
;
847 wxToolBarToolBase
* _arg0
;
848 PyObject
* _argo0
= 0;
849 char *_kwnames
[] = { "self", NULL
};
852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
863 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
865 wxPyEndAllowThreads(__tstate
);
866 if (PyErr_Occurred()) return NULL
;
867 } _resultobj
= Py_BuildValue("i",_result
);
871 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
872 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
873 PyObject
* _resultobj
;
875 wxToolBarToolBase
* _arg0
;
876 PyObject
* _argo0
= 0;
877 char *_kwnames
[] = { "self", NULL
};
880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
891 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
893 wxPyEndAllowThreads(__tstate
);
894 if (PyErr_Occurred()) return NULL
;
895 } _resultobj
= Py_BuildValue("i",_result
);
899 #define wxToolBarToolBase_GetNormalBitmap(_swigobj) (_swigobj->GetNormalBitmap())
900 static PyObject
*_wrap_wxToolBarToolBase_GetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
901 PyObject
* _resultobj
;
903 wxToolBarToolBase
* _arg0
;
904 PyObject
* _argo0
= 0;
905 char *_kwnames
[] = { "self", NULL
};
909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetNormalBitmap",_kwnames
,&_argo0
))
912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetNormalBitmap. Expected _wxToolBarToolBase_p.");
919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
920 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetNormalBitmap(_arg0
);
921 _result
= (wxBitmap
*) &_result_ref
;
923 wxPyEndAllowThreads(__tstate
);
924 if (PyErr_Occurred()) return NULL
;
926 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
927 _resultobj
= Py_BuildValue("s",_ptemp
);
930 _resultobj
= Py_None
;
935 #define wxToolBarToolBase_GetDisabledBitmap(_swigobj) (_swigobj->GetDisabledBitmap())
936 static PyObject
*_wrap_wxToolBarToolBase_GetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
937 PyObject
* _resultobj
;
939 wxToolBarToolBase
* _arg0
;
940 PyObject
* _argo0
= 0;
941 char *_kwnames
[] = { "self", NULL
};
945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetDisabledBitmap",_kwnames
,&_argo0
))
948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetDisabledBitmap. Expected _wxToolBarToolBase_p.");
955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
956 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetDisabledBitmap(_arg0
);
957 _result
= (wxBitmap
*) &_result_ref
;
959 wxPyEndAllowThreads(__tstate
);
960 if (PyErr_Occurred()) return NULL
;
962 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
963 _resultobj
= Py_BuildValue("s",_ptemp
);
966 _resultobj
= Py_None
;
971 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
972 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
973 PyObject
* _resultobj
;
975 wxToolBarToolBase
* _arg0
;
976 PyObject
* _argo0
= 0;
977 char *_kwnames
[] = { "self", NULL
};
981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
992 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
994 wxPyEndAllowThreads(__tstate
);
995 if (PyErr_Occurred()) return NULL
;
996 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
997 _resultobj
= Py_BuildValue("s",_ptemp
);
1001 #define wxToolBarToolBase_GetLabel(_swigobj) (_swigobj->GetLabel())
1002 static PyObject
*_wrap_wxToolBarToolBase_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1003 PyObject
* _resultobj
;
1005 wxToolBarToolBase
* _arg0
;
1006 PyObject
* _argo0
= 0;
1007 char *_kwnames
[] = { "self", NULL
};
1010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLabel",_kwnames
,&_argo0
))
1013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLabel. Expected _wxToolBarToolBase_p.");
1020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1021 _result
= new wxString (wxToolBarToolBase_GetLabel(_arg0
));
1023 wxPyEndAllowThreads(__tstate
);
1024 if (PyErr_Occurred()) return NULL
;
1027 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1029 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1038 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
1039 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1040 PyObject
* _resultobj
;
1042 wxToolBarToolBase
* _arg0
;
1043 PyObject
* _argo0
= 0;
1044 char *_kwnames
[] = { "self", NULL
};
1047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
1050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1058 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1060 wxPyEndAllowThreads(__tstate
);
1061 if (PyErr_Occurred()) return NULL
;
1064 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1066 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1075 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1076 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1077 PyObject
* _resultobj
;
1079 wxToolBarToolBase
* _arg0
;
1080 PyObject
* _argo0
= 0;
1081 char *_kwnames
[] = { "self", NULL
};
1084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1095 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1097 wxPyEndAllowThreads(__tstate
);
1098 if (PyErr_Occurred()) return NULL
;
1101 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1103 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1112 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1113 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1114 PyObject
* _resultobj
;
1116 wxToolBarToolBase
* _arg0
;
1118 PyObject
* _argo0
= 0;
1120 char *_kwnames
[] = { "self","enable", NULL
};
1123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1132 _arg1
= (bool ) tempbool1
;
1134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1135 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1137 wxPyEndAllowThreads(__tstate
);
1138 if (PyErr_Occurred()) return NULL
;
1139 } _resultobj
= Py_BuildValue("i",_result
);
1143 #define wxToolBarToolBase_Toggle(_swigobj) (_swigobj->Toggle())
1144 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1145 PyObject
* _resultobj
;
1146 wxToolBarToolBase
* _arg0
;
1147 PyObject
* _argo0
= 0;
1148 char *_kwnames
[] = { "self", NULL
};
1151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
))
1154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1162 wxToolBarToolBase_Toggle(_arg0
);
1164 wxPyEndAllowThreads(__tstate
);
1165 if (PyErr_Occurred()) return NULL
;
1166 } Py_INCREF(Py_None
);
1167 _resultobj
= Py_None
;
1171 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1172 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1173 PyObject
* _resultobj
;
1175 wxToolBarToolBase
* _arg0
;
1177 PyObject
* _argo0
= 0;
1179 char *_kwnames
[] = { "self","toggle", NULL
};
1182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1191 _arg1
= (bool ) tempbool1
;
1193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1194 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1196 wxPyEndAllowThreads(__tstate
);
1197 if (PyErr_Occurred()) return NULL
;
1198 } _resultobj
= Py_BuildValue("i",_result
);
1202 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1203 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1204 PyObject
* _resultobj
;
1206 wxToolBarToolBase
* _arg0
;
1208 PyObject
* _argo0
= 0;
1209 PyObject
* _obj1
= 0;
1210 char *_kwnames
[] = { "self","help", NULL
};
1213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1223 _arg1
= wxString_in_helper(_obj1
);
1228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1229 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1231 wxPyEndAllowThreads(__tstate
);
1232 if (PyErr_Occurred()) return NULL
;
1233 } _resultobj
= Py_BuildValue("i",_result
);
1241 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1242 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1243 PyObject
* _resultobj
;
1245 wxToolBarToolBase
* _arg0
;
1247 PyObject
* _argo0
= 0;
1248 PyObject
* _obj1
= 0;
1249 char *_kwnames
[] = { "self","help", NULL
};
1252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1262 _arg1
= wxString_in_helper(_obj1
);
1267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1268 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1270 wxPyEndAllowThreads(__tstate
);
1271 if (PyErr_Occurred()) return NULL
;
1272 } _resultobj
= Py_BuildValue("i",_result
);
1280 #define wxToolBarToolBase_SetNormalBitmap(_swigobj,_swigarg0) (_swigobj->SetNormalBitmap(_swigarg0))
1281 static PyObject
*_wrap_wxToolBarToolBase_SetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1282 PyObject
* _resultobj
;
1283 wxToolBarToolBase
* _arg0
;
1285 PyObject
* _argo0
= 0;
1286 PyObject
* _argo1
= 0;
1287 char *_kwnames
[] = { "self","bmp", NULL
};
1290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetNormalBitmap",_kwnames
,&_argo0
,&_argo1
))
1293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetNormalBitmap. Expected _wxToolBarToolBase_p.");
1300 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1301 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetNormalBitmap. Expected _wxBitmap_p.");
1307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1308 wxToolBarToolBase_SetNormalBitmap(_arg0
,*_arg1
);
1310 wxPyEndAllowThreads(__tstate
);
1311 if (PyErr_Occurred()) return NULL
;
1312 } Py_INCREF(Py_None
);
1313 _resultobj
= Py_None
;
1317 #define wxToolBarToolBase_SetDisabledBitmap(_swigobj,_swigarg0) (_swigobj->SetDisabledBitmap(_swigarg0))
1318 static PyObject
*_wrap_wxToolBarToolBase_SetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1319 PyObject
* _resultobj
;
1320 wxToolBarToolBase
* _arg0
;
1322 PyObject
* _argo0
= 0;
1323 PyObject
* _argo1
= 0;
1324 char *_kwnames
[] = { "self","bmp", NULL
};
1327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetDisabledBitmap",_kwnames
,&_argo0
,&_argo1
))
1330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1337 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1338 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxBitmap_p.");
1344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1345 wxToolBarToolBase_SetDisabledBitmap(_arg0
,*_arg1
);
1347 wxPyEndAllowThreads(__tstate
);
1348 if (PyErr_Occurred()) return NULL
;
1349 } Py_INCREF(Py_None
);
1350 _resultobj
= Py_None
;
1354 #define wxToolBarToolBase_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1355 static PyObject
*_wrap_wxToolBarToolBase_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1356 PyObject
* _resultobj
;
1357 wxToolBarToolBase
* _arg0
;
1359 PyObject
* _argo0
= 0;
1360 PyObject
* _obj1
= 0;
1361 char *_kwnames
[] = { "self","label", NULL
};
1364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLabel. Expected _wxToolBarToolBase_p.");
1374 _arg1
= wxString_in_helper(_obj1
);
1379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1380 wxToolBarToolBase_SetLabel(_arg0
,*_arg1
);
1382 wxPyEndAllowThreads(__tstate
);
1383 if (PyErr_Occurred()) return NULL
;
1384 } Py_INCREF(Py_None
);
1385 _resultobj
= Py_None
;
1393 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1394 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1395 PyObject
* _resultobj
;
1396 wxToolBarToolBase
* _arg0
;
1397 PyObject
* _argo0
= 0;
1398 char *_kwnames
[] = { "self", NULL
};
1401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1412 wxToolBarToolBase_Detach(_arg0
);
1414 wxPyEndAllowThreads(__tstate
);
1415 if (PyErr_Occurred()) return NULL
;
1416 } Py_INCREF(Py_None
);
1417 _resultobj
= Py_None
;
1421 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1422 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1423 PyObject
* _resultobj
;
1424 wxToolBarToolBase
* _arg0
;
1425 wxToolBarBase
* _arg1
;
1426 PyObject
* _argo0
= 0;
1427 PyObject
* _argo1
= 0;
1428 char *_kwnames
[] = { "self","tbar", NULL
};
1431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1441 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1442 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1449 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1451 wxPyEndAllowThreads(__tstate
);
1452 if (PyErr_Occurred()) return NULL
;
1453 } Py_INCREF(Py_None
);
1454 _resultobj
= Py_None
;
1458 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1459 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1461 Py_INCREF(udata
->m_obj
);
1462 return udata
->m_obj
;
1468 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1469 PyObject
* _resultobj
;
1471 wxToolBarToolBase
* _arg0
;
1472 PyObject
* _argo0
= 0;
1473 char *_kwnames
[] = { "self", NULL
};
1476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1487 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1489 wxPyEndAllowThreads(__tstate
);
1490 if (PyErr_Occurred()) return NULL
;
1492 _resultobj
= _result
;
1497 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1498 self
->SetClientData(new wxPyUserData(clientData
));
1500 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1501 PyObject
* _resultobj
;
1502 wxToolBarToolBase
* _arg0
;
1504 PyObject
* _argo0
= 0;
1505 PyObject
* _obj1
= 0;
1506 char *_kwnames
[] = { "self","clientData", NULL
};
1509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1523 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1525 wxPyEndAllowThreads(__tstate
);
1526 if (PyErr_Occurred()) return NULL
;
1527 } Py_INCREF(Py_None
);
1528 _resultobj
= Py_None
;
1532 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1535 src
= (wxToolBarBase
*) ptr
;
1536 dest
= (wxControl
*) src
;
1537 return (void *) dest
;
1540 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1543 src
= (wxToolBarBase
*) ptr
;
1544 dest
= (wxWindow
*) src
;
1545 return (void *) dest
;
1548 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1551 src
= (wxToolBarBase
*) ptr
;
1552 dest
= (wxEvtHandler
*) src
;
1553 return (void *) dest
;
1556 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1559 src
= (wxToolBarBase
*) ptr
;
1560 dest
= (wxObject
*) src
;
1561 return (void *) dest
;
1564 static wxToolBarToolBase
* wxToolBarBase_DoAddTool(wxToolBarBase
*self
,int id
,const wxString
& label
,const wxBitmap
& bitmap
,const wxBitmap
& bmpDisabled
,wxItemKind kind
,const wxString
& shortHelp
,const wxString
& longHelp
,PyObject
* clientData
) {
1565 wxPyUserData
* udata
= NULL
;
1566 if (clientData
&& clientData
!= Py_None
)
1567 udata
= new wxPyUserData(clientData
);
1568 return self
->AddTool(id
, label
, bitmap
, bmpDisabled
, kind
,
1569 shortHelp
, longHelp
, udata
);
1571 static PyObject
*_wrap_wxToolBarBase_DoAddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
* _resultobj
;
1573 wxToolBarToolBase
* _result
;
1574 wxToolBarBase
* _arg0
;
1578 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1579 wxItemKind _arg5
= (wxItemKind
) wxITEM_NORMAL
;
1580 wxString
* _arg6
= (wxString
*) &wxPyEmptyString
;
1581 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1582 PyObject
* _arg8
= (PyObject
*) NULL
;
1583 PyObject
* _argo0
= 0;
1584 PyObject
* _obj2
= 0;
1585 PyObject
* _argo3
= 0;
1586 PyObject
* _argo4
= 0;
1587 PyObject
* _obj6
= 0;
1588 PyObject
* _obj7
= 0;
1589 PyObject
* _obj8
= 0;
1590 char *_kwnames
[] = { "self","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL
};
1593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|OiOOO:wxToolBarBase_DoAddTool",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DoAddTool. Expected _wxToolBarBase_p.");
1603 _arg2
= wxString_in_helper(_obj2
);
1608 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1609 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_DoAddTool. Expected _wxBitmap_p.");
1615 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1616 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_DoAddTool. Expected _wxBitmap_p.");
1623 _arg6
= wxString_in_helper(_obj6
);
1629 _arg7
= wxString_in_helper(_obj7
);
1638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1639 _result
= (wxToolBarToolBase
*)wxToolBarBase_DoAddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
,*_arg7
,_arg8
);
1641 wxPyEndAllowThreads(__tstate
);
1642 if (PyErr_Occurred()) return NULL
;
1643 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1659 static wxToolBarToolBase
* wxToolBarBase_InsertTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxString
& label
,const wxBitmap
& bitmap
,const wxBitmap
& bmpDisabled
,wxItemKind kind
,const wxString
& shortHelp
,const wxString
& longHelp
,PyObject
* clientData
) {
1660 wxPyUserData
* udata
= NULL
;
1661 if (clientData
&& clientData
!= Py_None
)
1662 udata
= new wxPyUserData(clientData
);
1663 return self
->InsertTool(pos
, id
, label
, bitmap
, bmpDisabled
, kind
,
1664 shortHelp
, longHelp
, udata
);
1666 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1667 PyObject
* _resultobj
;
1668 wxToolBarToolBase
* _result
;
1669 wxToolBarBase
* _arg0
;
1674 wxBitmap
* _arg5
= (wxBitmap
*) &wxNullBitmap
;
1675 wxItemKind _arg6
= (wxItemKind
) wxITEM_NORMAL
;
1676 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1677 wxString
* _arg8
= (wxString
*) &wxPyEmptyString
;
1678 PyObject
* _arg9
= (PyObject
*) NULL
;
1679 PyObject
* _argo0
= 0;
1680 PyObject
* _obj3
= 0;
1681 PyObject
* _argo4
= 0;
1682 PyObject
* _argo5
= 0;
1683 PyObject
* _obj7
= 0;
1684 PyObject
* _obj8
= 0;
1685 PyObject
* _obj9
= 0;
1686 char *_kwnames
[] = { "self","pos","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL
};
1689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiOO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_argo4
,&_argo5
,&_arg6
,&_obj7
,&_obj8
,&_obj9
))
1692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1699 _arg3
= wxString_in_helper(_obj3
);
1704 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1705 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1711 if (_argo5
== Py_None
) { _arg5
= NULL
; }
1712 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxBitmap_p")) {
1713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1719 _arg7
= wxString_in_helper(_obj7
);
1725 _arg8
= wxString_in_helper(_obj8
);
1734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1735 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,*_arg7
,*_arg8
,_arg9
);
1737 wxPyEndAllowThreads(__tstate
);
1738 if (PyErr_Occurred()) return NULL
;
1739 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1755 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1756 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1757 PyObject
* _resultobj
;
1758 wxToolBarToolBase
* _result
;
1759 wxToolBarBase
* _arg0
;
1761 PyObject
* _argo0
= 0;
1762 PyObject
* _argo1
= 0;
1763 char *_kwnames
[] = { "self","control", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1784 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1786 wxPyEndAllowThreads(__tstate
);
1787 if (PyErr_Occurred()) return NULL
;
1788 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1792 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1793 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1794 PyObject
* _resultobj
;
1795 wxToolBarToolBase
* _result
;
1796 wxToolBarBase
* _arg0
;
1799 PyObject
* _argo0
= 0;
1800 PyObject
* _argo2
= 0;
1801 char *_kwnames
[] = { "self","pos","control", NULL
};
1804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1814 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1815 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1822 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1824 wxPyEndAllowThreads(__tstate
);
1825 if (PyErr_Occurred()) return NULL
;
1826 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1830 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1831 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
* _resultobj
;
1833 wxToolBarToolBase
* _result
;
1834 wxToolBarBase
* _arg0
;
1835 PyObject
* _argo0
= 0;
1836 char *_kwnames
[] = { "self", NULL
};
1839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1850 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1852 wxPyEndAllowThreads(__tstate
);
1853 if (PyErr_Occurred()) return NULL
;
1854 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1858 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1859 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1860 PyObject
* _resultobj
;
1861 wxToolBarToolBase
* _result
;
1862 wxToolBarBase
* _arg0
;
1864 PyObject
* _argo0
= 0;
1865 char *_kwnames
[] = { "self","pos", NULL
};
1868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1879 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1881 wxPyEndAllowThreads(__tstate
);
1882 if (PyErr_Occurred()) return NULL
;
1883 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1887 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1888 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1889 PyObject
* _resultobj
;
1890 wxToolBarToolBase
* _result
;
1891 wxToolBarBase
* _arg0
;
1893 PyObject
* _argo0
= 0;
1894 char *_kwnames
[] = { "self","id", NULL
};
1897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
1900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
1907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1908 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
1910 wxPyEndAllowThreads(__tstate
);
1911 if (PyErr_Occurred()) return NULL
;
1912 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1916 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
1917 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1918 PyObject
* _resultobj
;
1920 wxToolBarBase
* _arg0
;
1922 PyObject
* _argo0
= 0;
1923 char *_kwnames
[] = { "self","pos", NULL
};
1926 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
1929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
1936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1937 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
1939 wxPyEndAllowThreads(__tstate
);
1940 if (PyErr_Occurred()) return NULL
;
1941 } _resultobj
= Py_BuildValue("i",_result
);
1945 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
1946 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1947 PyObject
* _resultobj
;
1949 wxToolBarBase
* _arg0
;
1951 PyObject
* _argo0
= 0;
1952 char *_kwnames
[] = { "self","id", NULL
};
1955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
1958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
1965 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1966 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
1968 wxPyEndAllowThreads(__tstate
);
1969 if (PyErr_Occurred()) return NULL
;
1970 } _resultobj
= Py_BuildValue("i",_result
);
1974 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
1975 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1976 PyObject
* _resultobj
;
1977 wxToolBarBase
* _arg0
;
1978 PyObject
* _argo0
= 0;
1979 char *_kwnames
[] = { "self", NULL
};
1982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
1985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
1992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1993 wxToolBarBase_ClearTools(_arg0
);
1995 wxPyEndAllowThreads(__tstate
);
1996 if (PyErr_Occurred()) return NULL
;
1997 } Py_INCREF(Py_None
);
1998 _resultobj
= Py_None
;
2002 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2003 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
* _resultobj
;
2006 wxToolBarBase
* _arg0
;
2007 PyObject
* _argo0
= 0;
2008 char *_kwnames
[] = { "self", NULL
};
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2021 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2022 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2024 wxPyEndAllowThreads(__tstate
);
2025 if (PyErr_Occurred()) return NULL
;
2026 } _resultobj
= Py_BuildValue("i",_result
);
2030 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2031 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2032 PyObject
* _resultobj
;
2033 wxToolBarBase
* _arg0
;
2036 PyObject
* _argo0
= 0;
2038 char *_kwnames
[] = { "self","id","enable", NULL
};
2041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2050 _arg2
= (bool ) tempbool2
;
2052 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2053 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2055 wxPyEndAllowThreads(__tstate
);
2056 if (PyErr_Occurred()) return NULL
;
2057 } Py_INCREF(Py_None
);
2058 _resultobj
= Py_None
;
2062 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2063 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2064 PyObject
* _resultobj
;
2065 wxToolBarBase
* _arg0
;
2068 PyObject
* _argo0
= 0;
2070 char *_kwnames
[] = { "self","id","toggle", NULL
};
2073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2082 _arg2
= (bool ) tempbool2
;
2084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2085 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2087 wxPyEndAllowThreads(__tstate
);
2088 if (PyErr_Occurred()) return NULL
;
2089 } Py_INCREF(Py_None
);
2090 _resultobj
= Py_None
;
2094 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2095 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2096 PyObject
* _resultobj
;
2097 wxToolBarBase
* _arg0
;
2100 PyObject
* _argo0
= 0;
2102 char *_kwnames
[] = { "self","id","toggle", NULL
};
2105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2114 _arg2
= (bool ) tempbool2
;
2116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2117 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2119 wxPyEndAllowThreads(__tstate
);
2120 if (PyErr_Occurred()) return NULL
;
2121 } Py_INCREF(Py_None
);
2122 _resultobj
= Py_None
;
2126 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int id
) {
2127 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(id
);
2129 Py_INCREF(udata
->m_obj
);
2130 return udata
->m_obj
;
2136 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2137 PyObject
* _resultobj
;
2139 wxToolBarBase
* _arg0
;
2141 PyObject
* _argo0
= 0;
2142 char *_kwnames
[] = { "self","id", NULL
};
2145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2155 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2156 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2158 wxPyEndAllowThreads(__tstate
);
2159 if (PyErr_Occurred()) return NULL
;
2161 _resultobj
= _result
;
2166 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int id
,PyObject
* clientData
) {
2167 self
->SetToolClientData(id
, new wxPyUserData(clientData
));
2169 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
* _resultobj
;
2171 wxToolBarBase
* _arg0
;
2174 PyObject
* _argo0
= 0;
2175 PyObject
* _obj2
= 0;
2176 char *_kwnames
[] = { "self","id","clientData", NULL
};
2179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2193 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2195 wxPyEndAllowThreads(__tstate
);
2196 if (PyErr_Occurred()) return NULL
;
2197 } Py_INCREF(Py_None
);
2198 _resultobj
= Py_None
;
2202 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2203 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
* _resultobj
;
2206 wxToolBarBase
* _arg0
;
2208 PyObject
* _argo0
= 0;
2209 char *_kwnames
[] = { "self","id", NULL
};
2212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2223 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2225 wxPyEndAllowThreads(__tstate
);
2226 if (PyErr_Occurred()) return NULL
;
2227 } _resultobj
= Py_BuildValue("i",_result
);
2231 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2232 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2233 PyObject
* _resultobj
;
2235 wxToolBarBase
* _arg0
;
2237 PyObject
* _argo0
= 0;
2238 char *_kwnames
[] = { "self","id", NULL
};
2241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2252 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2254 wxPyEndAllowThreads(__tstate
);
2255 if (PyErr_Occurred()) return NULL
;
2256 } _resultobj
= Py_BuildValue("i",_result
);
2260 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2261 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2262 PyObject
* _resultobj
;
2263 wxToolBarBase
* _arg0
;
2266 PyObject
* _argo0
= 0;
2267 PyObject
* _obj2
= 0;
2268 char *_kwnames
[] = { "self","id","helpString", NULL
};
2271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2281 _arg2
= wxString_in_helper(_obj2
);
2286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2287 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2289 wxPyEndAllowThreads(__tstate
);
2290 if (PyErr_Occurred()) return NULL
;
2291 } Py_INCREF(Py_None
);
2292 _resultobj
= Py_None
;
2300 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2301 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
* _resultobj
;
2304 wxToolBarBase
* _arg0
;
2306 PyObject
* _argo0
= 0;
2307 char *_kwnames
[] = { "self","id", NULL
};
2310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2321 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2323 wxPyEndAllowThreads(__tstate
);
2324 if (PyErr_Occurred()) return NULL
;
2327 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2329 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2338 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2339 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2340 PyObject
* _resultobj
;
2341 wxToolBarBase
* _arg0
;
2344 PyObject
* _argo0
= 0;
2345 PyObject
* _obj2
= 0;
2346 char *_kwnames
[] = { "self","id","helpString", NULL
};
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2359 _arg2
= wxString_in_helper(_obj2
);
2364 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2365 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2367 wxPyEndAllowThreads(__tstate
);
2368 if (PyErr_Occurred()) return NULL
;
2369 } Py_INCREF(Py_None
);
2370 _resultobj
= Py_None
;
2378 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2379 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2380 PyObject
* _resultobj
;
2382 wxToolBarBase
* _arg0
;
2384 PyObject
* _argo0
= 0;
2385 char *_kwnames
[] = { "self","id", NULL
};
2388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2398 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2399 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2401 wxPyEndAllowThreads(__tstate
);
2402 if (PyErr_Occurred()) return NULL
;
2405 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2407 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2416 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2417 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
* _resultobj
;
2419 wxToolBarBase
* _arg0
;
2422 PyObject
* _argo0
= 0;
2423 char *_kwnames
[] = { "self","x","y", NULL
};
2426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2437 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2439 wxPyEndAllowThreads(__tstate
);
2440 if (PyErr_Occurred()) return NULL
;
2441 } Py_INCREF(Py_None
);
2442 _resultobj
= Py_None
;
2446 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2447 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2448 PyObject
* _resultobj
;
2449 wxToolBarBase
* _arg0
;
2451 PyObject
* _argo0
= 0;
2453 PyObject
* _obj1
= 0;
2454 char *_kwnames
[] = { "self","size", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2468 if (! wxSize_helper(_obj1
, &_arg1
))
2472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2473 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2475 wxPyEndAllowThreads(__tstate
);
2476 if (PyErr_Occurred()) return NULL
;
2477 } Py_INCREF(Py_None
);
2478 _resultobj
= Py_None
;
2482 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2483 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2484 PyObject
* _resultobj
;
2485 wxToolBarBase
* _arg0
;
2487 PyObject
* _argo0
= 0;
2488 char *_kwnames
[] = { "self","packing", NULL
};
2491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) return NULL
;
2506 } Py_INCREF(Py_None
);
2507 _resultobj
= Py_None
;
2511 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2512 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2513 PyObject
* _resultobj
;
2514 wxToolBarBase
* _arg0
;
2516 PyObject
* _argo0
= 0;
2517 char *_kwnames
[] = { "self","separation", NULL
};
2520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) return NULL
;
2535 } Py_INCREF(Py_None
);
2536 _resultobj
= Py_None
;
2540 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2541 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2542 PyObject
* _resultobj
;
2544 wxToolBarBase
* _arg0
;
2545 PyObject
* _argo0
= 0;
2546 char *_kwnames
[] = { "self", NULL
};
2550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2560 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2561 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2563 wxPyEndAllowThreads(__tstate
);
2564 if (PyErr_Occurred()) return NULL
;
2565 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2566 _resultobj
= Py_BuildValue("s",_ptemp
);
2570 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2571 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2572 PyObject
* _resultobj
;
2574 wxToolBarBase
* _arg0
;
2575 PyObject
* _argo0
= 0;
2576 char *_kwnames
[] = { "self", NULL
};
2580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2591 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2593 wxPyEndAllowThreads(__tstate
);
2594 if (PyErr_Occurred()) return NULL
;
2595 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2596 _resultobj
= Py_BuildValue("s",_ptemp
);
2600 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2601 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2602 PyObject
* _resultobj
;
2604 wxToolBarBase
* _arg0
;
2605 PyObject
* _argo0
= 0;
2606 char *_kwnames
[] = { "self", NULL
};
2609 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2612 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2613 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2620 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2622 wxPyEndAllowThreads(__tstate
);
2623 if (PyErr_Occurred()) return NULL
;
2624 } _resultobj
= Py_BuildValue("i",_result
);
2628 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2629 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2630 PyObject
* _resultobj
;
2632 wxToolBarBase
* _arg0
;
2633 PyObject
* _argo0
= 0;
2634 char *_kwnames
[] = { "self", NULL
};
2637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2648 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2650 wxPyEndAllowThreads(__tstate
);
2651 if (PyErr_Occurred()) return NULL
;
2652 } _resultobj
= Py_BuildValue("i",_result
);
2656 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2657 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2658 PyObject
* _resultobj
;
2659 wxToolBarBase
* _arg0
;
2661 PyObject
* _argo0
= 0;
2662 char *_kwnames
[] = { "self","nRows", NULL
};
2665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2676 wxToolBarBase_SetRows(_arg0
,_arg1
);
2678 wxPyEndAllowThreads(__tstate
);
2679 if (PyErr_Occurred()) return NULL
;
2680 } Py_INCREF(Py_None
);
2681 _resultobj
= Py_None
;
2685 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2686 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2687 PyObject
* _resultobj
;
2688 wxToolBarBase
* _arg0
;
2691 PyObject
* _argo0
= 0;
2692 char *_kwnames
[] = { "self","rows","cols", NULL
};
2695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2706 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2708 wxPyEndAllowThreads(__tstate
);
2709 if (PyErr_Occurred()) return NULL
;
2710 } Py_INCREF(Py_None
);
2711 _resultobj
= Py_None
;
2715 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2716 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2717 PyObject
* _resultobj
;
2719 wxToolBarBase
* _arg0
;
2720 PyObject
* _argo0
= 0;
2721 char *_kwnames
[] = { "self", NULL
};
2724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2735 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2737 wxPyEndAllowThreads(__tstate
);
2738 if (PyErr_Occurred()) return NULL
;
2739 } _resultobj
= Py_BuildValue("i",_result
);
2743 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2744 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2745 PyObject
* _resultobj
;
2747 wxToolBarBase
* _arg0
;
2748 PyObject
* _argo0
= 0;
2749 char *_kwnames
[] = { "self", NULL
};
2752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2763 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2765 wxPyEndAllowThreads(__tstate
);
2766 if (PyErr_Occurred()) return NULL
;
2767 } _resultobj
= Py_BuildValue("i",_result
);
2771 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2772 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2773 PyObject
* _resultobj
;
2774 wxToolBarBase
* _arg0
;
2776 PyObject
* _argo0
= 0;
2778 PyObject
* _obj1
= 0;
2779 char *_kwnames
[] = { "self","size", NULL
};
2782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2793 if (! wxSize_helper(_obj1
, &_arg1
))
2797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2798 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2800 wxPyEndAllowThreads(__tstate
);
2801 if (PyErr_Occurred()) return NULL
;
2802 } Py_INCREF(Py_None
);
2803 _resultobj
= Py_None
;
2807 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2808 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2809 PyObject
* _resultobj
;
2811 wxToolBarBase
* _arg0
;
2812 PyObject
* _argo0
= 0;
2813 char *_kwnames
[] = { "self", NULL
};
2817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2828 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2830 wxPyEndAllowThreads(__tstate
);
2831 if (PyErr_Occurred()) return NULL
;
2832 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2833 _resultobj
= Py_BuildValue("s",_ptemp
);
2837 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2838 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
* _resultobj
;
2841 wxToolBarBase
* _arg0
;
2842 PyObject
* _argo0
= 0;
2843 char *_kwnames
[] = { "self", NULL
};
2847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2858 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2860 wxPyEndAllowThreads(__tstate
);
2861 if (PyErr_Occurred()) return NULL
;
2862 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2863 _resultobj
= Py_BuildValue("s",_ptemp
);
2867 #define wxToolBarBase_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
2868 static PyObject
*_wrap_wxToolBarBase_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2869 PyObject
* _resultobj
;
2870 wxToolBarToolBase
* _result
;
2871 wxToolBarBase
* _arg0
;
2874 PyObject
* _argo0
= 0;
2875 char *_kwnames
[] = { "self","x","y", NULL
};
2878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_FindToolForPosition. Expected _wxToolBarBase_p.");
2888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2889 _result
= (wxToolBarToolBase
*)wxToolBarBase_FindToolForPosition(_arg0
,_arg1
,_arg2
);
2891 wxPyEndAllowThreads(__tstate
);
2892 if (PyErr_Occurred()) return NULL
;
2893 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2897 #define wxToolBarBase_IsVertical(_swigobj) (_swigobj->IsVertical())
2898 static PyObject
*_wrap_wxToolBarBase_IsVertical(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2899 PyObject
* _resultobj
;
2901 wxToolBarBase
* _arg0
;
2902 PyObject
* _argo0
= 0;
2903 char *_kwnames
[] = { "self", NULL
};
2906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_IsVertical",_kwnames
,&_argo0
))
2909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_IsVertical. Expected _wxToolBarBase_p.");
2916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2917 _result
= (bool )wxToolBarBase_IsVertical(_arg0
);
2919 wxPyEndAllowThreads(__tstate
);
2920 if (PyErr_Occurred()) return NULL
;
2921 } _resultobj
= Py_BuildValue("i",_result
);
2925 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
2927 wxToolBarBase
*dest
;
2928 src
= (wxToolBar
*) ptr
;
2929 dest
= (wxToolBarBase
*) src
;
2930 return (void *) dest
;
2933 static void *SwigwxToolBarTowxControl(void *ptr
) {
2936 src
= (wxToolBar
*) ptr
;
2937 dest
= (wxControl
*) src
;
2938 return (void *) dest
;
2941 static void *SwigwxToolBarTowxWindow(void *ptr
) {
2944 src
= (wxToolBar
*) ptr
;
2945 dest
= (wxWindow
*) src
;
2946 return (void *) dest
;
2949 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
2952 src
= (wxToolBar
*) ptr
;
2953 dest
= (wxEvtHandler
*) src
;
2954 return (void *) dest
;
2957 static void *SwigwxToolBarTowxObject(void *ptr
) {
2960 src
= (wxToolBar
*) ptr
;
2961 dest
= (wxObject
*) src
;
2962 return (void *) dest
;
2965 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2966 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
* _resultobj
;
2968 wxToolBar
* _result
;
2971 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
2972 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
2973 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
2974 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
2975 PyObject
* _argo0
= 0;
2977 PyObject
* _obj2
= 0;
2979 PyObject
* _obj3
= 0;
2980 PyObject
* _obj5
= 0;
2981 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
2985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
2988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
2997 if (! wxPoint_helper(_obj2
, &_arg2
))
3003 if (! wxSize_helper(_obj3
, &_arg3
))
3008 _arg5
= wxString_in_helper(_obj5
);
3013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3014 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3016 wxPyEndAllowThreads(__tstate
);
3017 if (PyErr_Occurred()) return NULL
;
3019 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3020 _resultobj
= Py_BuildValue("s",_ptemp
);
3023 _resultobj
= Py_None
;
3032 #define new_wxPreToolBar() (new wxToolBar())
3033 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3034 PyObject
* _resultobj
;
3035 wxToolBar
* _result
;
3036 char *_kwnames
[] = { NULL
};
3040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3044 _result
= (wxToolBar
*)new_wxPreToolBar();
3046 wxPyEndAllowThreads(__tstate
);
3047 if (PyErr_Occurred()) return NULL
;
3049 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3050 _resultobj
= Py_BuildValue("s",_ptemp
);
3053 _resultobj
= Py_None
;
3058 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3059 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3060 PyObject
* _resultobj
;
3065 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3066 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3067 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3068 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3069 PyObject
* _argo0
= 0;
3070 PyObject
* _argo1
= 0;
3072 PyObject
* _obj3
= 0;
3074 PyObject
* _obj4
= 0;
3075 PyObject
* _obj6
= 0;
3076 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3079 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3082 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3089 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3090 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3098 if (! wxPoint_helper(_obj3
, &_arg3
))
3104 if (! wxSize_helper(_obj4
, &_arg4
))
3109 _arg6
= wxString_in_helper(_obj6
);
3114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3115 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3117 wxPyEndAllowThreads(__tstate
);
3118 if (PyErr_Occurred()) return NULL
;
3119 } _resultobj
= Py_BuildValue("i",_result
);
3127 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3128 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3130 wxToolBarToolBase
* _result
;
3134 PyObject
* _argo0
= 0;
3135 char *_kwnames
[] = { "self","x","y", NULL
};
3138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3149 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3151 wxPyEndAllowThreads(__tstate
);
3152 if (PyErr_Occurred()) return NULL
;
3153 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3157 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3158 wxToolBarSimple
*src
;
3159 wxToolBarBase
*dest
;
3160 src
= (wxToolBarSimple
*) ptr
;
3161 dest
= (wxToolBarBase
*) src
;
3162 return (void *) dest
;
3165 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3166 wxToolBarSimple
*src
;
3168 src
= (wxToolBarSimple
*) ptr
;
3169 dest
= (wxControl
*) src
;
3170 return (void *) dest
;
3173 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3174 wxToolBarSimple
*src
;
3176 src
= (wxToolBarSimple
*) ptr
;
3177 dest
= (wxWindow
*) src
;
3178 return (void *) dest
;
3181 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3182 wxToolBarSimple
*src
;
3184 src
= (wxToolBarSimple
*) ptr
;
3185 dest
= (wxEvtHandler
*) src
;
3186 return (void *) dest
;
3189 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3190 wxToolBarSimple
*src
;
3192 src
= (wxToolBarSimple
*) ptr
;
3193 dest
= (wxObject
*) src
;
3194 return (void *) dest
;
3197 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3198 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3199 PyObject
* _resultobj
;
3200 wxToolBarSimple
* _result
;
3203 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3204 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3205 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3206 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
3207 PyObject
* _argo0
= 0;
3209 PyObject
* _obj2
= 0;
3211 PyObject
* _obj3
= 0;
3212 PyObject
* _obj5
= 0;
3213 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
3220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3229 if (! wxPoint_helper(_obj2
, &_arg2
))
3235 if (! wxSize_helper(_obj3
, &_arg3
))
3240 _arg5
= wxString_in_helper(_obj5
);
3245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3246 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3248 wxPyEndAllowThreads(__tstate
);
3249 if (PyErr_Occurred()) return NULL
;
3251 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3252 _resultobj
= Py_BuildValue("s",_ptemp
);
3255 _resultobj
= Py_None
;
3264 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3265 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3266 PyObject
* _resultobj
;
3267 wxToolBarSimple
* _result
;
3268 char *_kwnames
[] = { NULL
};
3272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3276 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3278 wxPyEndAllowThreads(__tstate
);
3279 if (PyErr_Occurred()) return NULL
;
3281 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3282 _resultobj
= Py_BuildValue("s",_ptemp
);
3285 _resultobj
= Py_None
;
3290 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3291 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3292 PyObject
* _resultobj
;
3294 wxToolBarSimple
* _arg0
;
3297 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3298 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3299 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3300 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3301 PyObject
* _argo0
= 0;
3302 PyObject
* _argo1
= 0;
3304 PyObject
* _obj3
= 0;
3306 PyObject
* _obj4
= 0;
3307 PyObject
* _obj6
= 0;
3308 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3321 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3322 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3330 if (! wxPoint_helper(_obj3
, &_arg3
))
3336 if (! wxSize_helper(_obj4
, &_arg4
))
3341 _arg6
= wxString_in_helper(_obj6
);
3346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3347 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3349 wxPyEndAllowThreads(__tstate
);
3350 if (PyErr_Occurred()) return NULL
;
3351 } _resultobj
= Py_BuildValue("i",_result
);
3359 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3360 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3361 PyObject
* _resultobj
;
3362 wxToolBarToolBase
* _result
;
3363 wxToolBarSimple
* _arg0
;
3366 PyObject
* _argo0
= 0;
3367 char *_kwnames
[] = { "self","x","y", NULL
};
3370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3381 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3383 wxPyEndAllowThreads(__tstate
);
3384 if (PyErr_Occurred()) return NULL
;
3385 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3389 static PyMethodDef stattoolcMethods
[] = {
3390 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3391 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3392 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3393 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3394 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3395 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3396 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3397 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3398 { "wxToolBarBase_IsVertical", (PyCFunction
) _wrap_wxToolBarBase_IsVertical
, METH_VARARGS
| METH_KEYWORDS
},
3399 { "wxToolBarBase_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarBase_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3400 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3401 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3402 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3403 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3404 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3405 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3406 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3407 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3408 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3409 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3410 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3411 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3412 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3413 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3414 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3415 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3416 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3417 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3418 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3419 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3420 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3421 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3422 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3423 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3424 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3425 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3426 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3427 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3428 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3429 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3430 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxToolBarBase_DoAddTool", (PyCFunction
) _wrap_wxToolBarBase_DoAddTool
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxToolBarToolBase_SetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxToolBarToolBase_SetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxToolBarToolBase_SetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxToolBarToolBase_GetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxToolBarToolBase_GetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxToolBarToolBase_GetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxToolBarToolBase_GetKind", (PyCFunction
) _wrap_wxToolBarToolBase_GetKind
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3485 * This table is used by the pointer type-checker
3487 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3488 { "_signed_long","_long",0},
3489 { "_wxPrintQuality","_wxCoord",0},
3490 { "_wxPrintQuality","_int",0},
3491 { "_wxPrintQuality","_signed_int",0},
3492 { "_wxPrintQuality","_unsigned_int",0},
3493 { "_wxPrintQuality","_wxWindowID",0},
3494 { "_wxPrintQuality","_uint",0},
3495 { "_wxPrintQuality","_EBool",0},
3496 { "_wxPrintQuality","_size_t",0},
3497 { "_wxPrintQuality","_time_t",0},
3498 { "_byte","_unsigned_char",0},
3499 { "_long","_unsigned_long",0},
3500 { "_long","_signed_long",0},
3501 { "_size_t","_wxCoord",0},
3502 { "_size_t","_wxPrintQuality",0},
3503 { "_size_t","_time_t",0},
3504 { "_size_t","_unsigned_int",0},
3505 { "_size_t","_int",0},
3506 { "_size_t","_wxWindowID",0},
3507 { "_size_t","_uint",0},
3508 { "_uint","_wxCoord",0},
3509 { "_uint","_wxPrintQuality",0},
3510 { "_uint","_time_t",0},
3511 { "_uint","_size_t",0},
3512 { "_uint","_unsigned_int",0},
3513 { "_uint","_int",0},
3514 { "_uint","_wxWindowID",0},
3515 { "_wxChar","_char",0},
3516 { "_char","_wxChar",0},
3517 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3518 { "_EBool","_wxCoord",0},
3519 { "_EBool","_wxPrintQuality",0},
3520 { "_EBool","_signed_int",0},
3521 { "_EBool","_int",0},
3522 { "_EBool","_wxWindowID",0},
3523 { "_unsigned_long","_long",0},
3524 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3525 { "_signed_int","_wxCoord",0},
3526 { "_signed_int","_wxPrintQuality",0},
3527 { "_signed_int","_EBool",0},
3528 { "_signed_int","_wxWindowID",0},
3529 { "_signed_int","_int",0},
3530 { "_WXTYPE","_short",0},
3531 { "_WXTYPE","_signed_short",0},
3532 { "_WXTYPE","_unsigned_short",0},
3533 { "_unsigned_short","_WXTYPE",0},
3534 { "_unsigned_short","_short",0},
3535 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3536 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3537 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3538 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3539 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3540 { "_signed_short","_WXTYPE",0},
3541 { "_signed_short","_short",0},
3542 { "_unsigned_char","_byte",0},
3543 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3544 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3545 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3546 { "_unsigned_int","_wxCoord",0},
3547 { "_unsigned_int","_wxPrintQuality",0},
3548 { "_unsigned_int","_time_t",0},
3549 { "_unsigned_int","_size_t",0},
3550 { "_unsigned_int","_uint",0},
3551 { "_unsigned_int","_wxWindowID",0},
3552 { "_unsigned_int","_int",0},
3553 { "_short","_WXTYPE",0},
3554 { "_short","_unsigned_short",0},
3555 { "_short","_signed_short",0},
3556 { "_wxWindowID","_wxCoord",0},
3557 { "_wxWindowID","_wxPrintQuality",0},
3558 { "_wxWindowID","_time_t",0},
3559 { "_wxWindowID","_size_t",0},
3560 { "_wxWindowID","_EBool",0},
3561 { "_wxWindowID","_uint",0},
3562 { "_wxWindowID","_int",0},
3563 { "_wxWindowID","_signed_int",0},
3564 { "_wxWindowID","_unsigned_int",0},
3565 { "_int","_wxCoord",0},
3566 { "_int","_wxPrintQuality",0},
3567 { "_int","_time_t",0},
3568 { "_int","_size_t",0},
3569 { "_int","_EBool",0},
3570 { "_int","_uint",0},
3571 { "_int","_wxWindowID",0},
3572 { "_int","_unsigned_int",0},
3573 { "_int","_signed_int",0},
3574 { "_time_t","_wxCoord",0},
3575 { "_time_t","_wxPrintQuality",0},
3576 { "_time_t","_unsigned_int",0},
3577 { "_time_t","_int",0},
3578 { "_time_t","_wxWindowID",0},
3579 { "_time_t","_uint",0},
3580 { "_time_t","_size_t",0},
3581 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3582 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3583 { "_wxCoord","_int",0},
3584 { "_wxCoord","_signed_int",0},
3585 { "_wxCoord","_unsigned_int",0},
3586 { "_wxCoord","_wxWindowID",0},
3587 { "_wxCoord","_uint",0},
3588 { "_wxCoord","_EBool",0},
3589 { "_wxCoord","_size_t",0},
3590 { "_wxCoord","_time_t",0},
3591 { "_wxCoord","_wxPrintQuality",0},
3592 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3593 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3594 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3595 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3596 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3597 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3598 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3599 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3602 static PyObject
*SWIG_globals
;
3606 SWIGEXPORT(void) initstattoolc() {
3608 SWIG_globals
= SWIG_newvarlink();
3609 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3610 d
= PyModule_GetDict(m
);
3611 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3612 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3613 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3616 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3617 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);