2 * FILE : src/msw/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 */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initstattoolc
55 #define SWIG_name "stattoolc"
58 #include <wx/toolbar.h>
59 #include <wx/tbarsmpl.h>
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 // Put some wx default wxChar* values into wxStrings.
89 DECLARE_DEF_STRING(StatusLineNameStr
);
90 DECLARE_DEF_STRING(ToolBarNameStr
);
91 static const wxString
wxPyEmptyString(wxT(""));
95 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
98 src
= (wxStatusBar
*) ptr
;
99 dest
= (wxWindow
*) src
;
100 return (void *) dest
;
103 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
106 src
= (wxStatusBar
*) ptr
;
107 dest
= (wxEvtHandler
*) src
;
108 return (void *) dest
;
111 static void *SwigwxStatusBarTowxObject(void *ptr
) {
114 src
= (wxStatusBar
*) ptr
;
115 dest
= (wxObject
*) src
;
116 return (void *) dest
;
119 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
120 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
121 PyObject
* _resultobj
;
122 wxStatusBar
* _result
;
124 wxWindowID _arg1
= (wxWindowID
) -1;
125 long _arg2
= (long ) wxST_SIZEGRIP
;
126 wxString
* _arg3
= (wxString
*) &wxPyStatusLineNameStr
;
127 PyObject
* _argo0
= 0;
128 PyObject
* _obj3
= 0;
129 char *_kwnames
[] = { "parent","id","style","name", NULL
};
133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilO:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
144 _arg3
= wxString_in_helper(_obj3
);
149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
150 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,*_arg3
);
152 wxPyEndAllowThreads(__tstate
);
153 if (PyErr_Occurred()) return NULL
;
155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
156 _resultobj
= Py_BuildValue("s",_ptemp
);
159 _resultobj
= Py_None
;
168 #define new_wxPreStatusBar() (new wxStatusBar())
169 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
170 PyObject
* _resultobj
;
171 wxStatusBar
* _result
;
172 char *_kwnames
[] = { NULL
};
176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
180 _result
= (wxStatusBar
*)new_wxPreStatusBar();
182 wxPyEndAllowThreads(__tstate
);
183 if (PyErr_Occurred()) return NULL
;
185 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
186 _resultobj
= Py_BuildValue("s",_ptemp
);
189 _resultobj
= Py_None
;
194 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
195 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
196 PyObject
* _resultobj
;
201 long _arg3
= (long ) wxST_SIZEGRIP
;
202 wxString
* _arg4
= (wxString
*) &wxPyStatusLineNameStr
;
203 PyObject
* _argo0
= 0;
204 PyObject
* _argo1
= 0;
205 PyObject
* _obj4
= 0;
206 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|lO:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_obj4
))
212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
219 if (_argo1
== Py_None
) { _arg1
= NULL
; }
220 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
227 _arg4
= wxString_in_helper(_obj4
);
232 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
233 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,*_arg4
);
235 wxPyEndAllowThreads(__tstate
);
236 if (PyErr_Occurred()) return NULL
;
237 } _resultobj
= Py_BuildValue("i",_result
);
245 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
246 wxRect
* rect
= new wxRect
;
247 self
->GetFieldRect(item
, *rect
);
250 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
251 PyObject
* _resultobj
;
255 PyObject
* _argo0
= 0;
256 char *_kwnames
[] = { "self","item", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
271 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
273 wxPyEndAllowThreads(__tstate
);
274 if (PyErr_Occurred()) return NULL
;
276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
277 _resultobj
= Py_BuildValue("s",_ptemp
);
280 _resultobj
= Py_None
;
285 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
286 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
287 PyObject
* _resultobj
;
290 PyObject
* _argo0
= 0;
291 char *_kwnames
[] = { "self", NULL
};
294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
305 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
307 wxPyEndAllowThreads(__tstate
);
308 if (PyErr_Occurred()) return NULL
;
309 } _resultobj
= Py_BuildValue("i",_result
);
313 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
314 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
318 int _arg1
= (int ) 0;
319 PyObject
* _argo0
= 0;
320 char *_kwnames
[] = { "self","ir", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
334 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
336 wxPyEndAllowThreads(__tstate
);
337 if (PyErr_Occurred()) return NULL
;
340 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
342 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
351 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
352 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
353 PyObject
* _resultobj
;
356 PyObject
* _argo0
= 0;
357 char *_kwnames
[] = { "self", NULL
};
360 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
363 if (_argo0
== Py_None
) { _arg0
= NULL
; }
364 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
371 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
373 wxPyEndAllowThreads(__tstate
);
374 if (PyErr_Occurred()) return NULL
;
375 } _resultobj
= Py_BuildValue("i",_result
);
379 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
380 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
381 PyObject
* _resultobj
;
384 PyObject
* _argo0
= 0;
385 char *_kwnames
[] = { "self", NULL
};
388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
398 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
399 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
401 wxPyEndAllowThreads(__tstate
);
402 if (PyErr_Occurred()) return NULL
;
403 } _resultobj
= Py_BuildValue("i",_result
);
407 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
408 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
409 PyObject
* _resultobj
;
411 int _arg1
= (int ) 1;
412 PyObject
* _argo0
= 0;
413 char *_kwnames
[] = { "self","number", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
426 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
427 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
429 wxPyEndAllowThreads(__tstate
);
430 if (PyErr_Occurred()) return NULL
;
431 } Py_INCREF(Py_None
);
432 _resultobj
= Py_None
;
436 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
437 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
438 PyObject
* _resultobj
;
441 int _arg2
= (int ) 0;
442 PyObject
* _argo0
= 0;
443 PyObject
* _obj1
= 0;
444 char *_kwnames
[] = { "self","text","i", NULL
};
447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
457 _arg1
= wxString_in_helper(_obj1
);
462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
463 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
465 wxPyEndAllowThreads(__tstate
);
466 if (PyErr_Occurred()) return NULL
;
467 } Py_INCREF(Py_None
);
468 _resultobj
= Py_None
;
476 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
477 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
478 PyObject
* _resultobj
;
482 PyObject
* _argo0
= 0;
483 PyObject
* _obj2
= 0;
484 char *_kwnames
[] = { "self","choices", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
498 _arg2
= int_LIST_helper(_obj2
);
505 _arg1
= PyList_Size(_obj2
);
512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
513 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
515 wxPyEndAllowThreads(__tstate
);
516 if (PyErr_Occurred()) return NULL
;
517 } Py_INCREF(Py_None
);
518 _resultobj
= Py_None
;
525 #define wxStatusBar_PushStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->PushStatusText(_swigarg0,_swigarg1))
526 static PyObject
*_wrap_wxStatusBar_PushStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
527 PyObject
* _resultobj
;
530 int _arg2
= (int ) 0;
531 PyObject
* _argo0
= 0;
532 PyObject
* _obj1
= 0;
533 char *_kwnames
[] = { "self","text","number", NULL
};
536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_PushStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_PushStatusText. Expected _wxStatusBar_p.");
546 _arg1
= wxString_in_helper(_obj1
);
551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
552 wxStatusBar_PushStatusText(_arg0
,*_arg1
,_arg2
);
554 wxPyEndAllowThreads(__tstate
);
555 if (PyErr_Occurred()) return NULL
;
556 } Py_INCREF(Py_None
);
557 _resultobj
= Py_None
;
565 #define wxStatusBar_PopStatusText(_swigobj,_swigarg0) (_swigobj->PopStatusText(_swigarg0))
566 static PyObject
*_wrap_wxStatusBar_PopStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
567 PyObject
* _resultobj
;
569 int _arg1
= (int ) 0;
570 PyObject
* _argo0
= 0;
571 char *_kwnames
[] = { "self","number", NULL
};
574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_PopStatusText",_kwnames
,&_argo0
,&_arg1
))
577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_PopStatusText. Expected _wxStatusBar_p.");
584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
585 wxStatusBar_PopStatusText(_arg0
,_arg1
);
587 wxPyEndAllowThreads(__tstate
);
588 if (PyErr_Occurred()) return NULL
;
589 } Py_INCREF(Py_None
);
590 _resultobj
= Py_None
;
594 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
595 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
596 PyObject
* _resultobj
;
599 PyObject
* _argo0
= 0;
600 char *_kwnames
[] = { "self","height", NULL
};
603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
614 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
616 wxPyEndAllowThreads(__tstate
);
617 if (PyErr_Occurred()) return NULL
;
618 } Py_INCREF(Py_None
);
619 _resultobj
= Py_None
;
623 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
624 wxToolBarToolBase
*src
;
626 src
= (wxToolBarToolBase
*) ptr
;
627 dest
= (wxObject
*) src
;
628 return (void *) dest
;
631 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
632 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
634 wxToolBarToolBase
* _arg0
;
635 PyObject
* _argo0
= 0;
636 char *_kwnames
[] = { "self", NULL
};
639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
650 wxToolBarToolBase_Destroy(_arg0
);
652 wxPyEndAllowThreads(__tstate
);
653 if (PyErr_Occurred()) return NULL
;
654 } Py_INCREF(Py_None
);
655 _resultobj
= Py_None
;
659 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
660 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
663 wxToolBarToolBase
* _arg0
;
664 PyObject
* _argo0
= 0;
665 char *_kwnames
[] = { "self", NULL
};
668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
679 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
681 wxPyEndAllowThreads(__tstate
);
682 if (PyErr_Occurred()) return NULL
;
683 } _resultobj
= Py_BuildValue("i",_result
);
687 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
688 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
689 PyObject
* _resultobj
;
691 wxToolBarToolBase
* _arg0
;
692 PyObject
* _argo0
= 0;
693 char *_kwnames
[] = { "self", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
707 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
709 wxPyEndAllowThreads(__tstate
);
710 if (PyErr_Occurred()) return NULL
;
711 }{ _resultobj
= wxPyMake_wxObject(_result
); }
715 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
716 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
717 PyObject
* _resultobj
;
718 wxToolBarBase
* _result
;
719 wxToolBarToolBase
* _arg0
;
720 PyObject
* _argo0
= 0;
721 char *_kwnames
[] = { "self", NULL
};
724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
735 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
737 wxPyEndAllowThreads(__tstate
);
738 if (PyErr_Occurred()) return NULL
;
739 }{ _resultobj
= wxPyMake_wxObject(_result
); }
743 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
744 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
745 PyObject
* _resultobj
;
747 wxToolBarToolBase
* _arg0
;
748 PyObject
* _argo0
= 0;
749 char *_kwnames
[] = { "self", NULL
};
752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
763 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
765 wxPyEndAllowThreads(__tstate
);
766 if (PyErr_Occurred()) return NULL
;
767 } _resultobj
= Py_BuildValue("i",_result
);
771 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
772 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
773 PyObject
* _resultobj
;
775 wxToolBarToolBase
* _arg0
;
776 PyObject
* _argo0
= 0;
777 char *_kwnames
[] = { "self", NULL
};
780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
791 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
793 wxPyEndAllowThreads(__tstate
);
794 if (PyErr_Occurred()) return NULL
;
795 } _resultobj
= Py_BuildValue("i",_result
);
799 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
800 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
801 PyObject
* _resultobj
;
803 wxToolBarToolBase
* _arg0
;
804 PyObject
* _argo0
= 0;
805 char *_kwnames
[] = { "self", NULL
};
808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
819 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
821 wxPyEndAllowThreads(__tstate
);
822 if (PyErr_Occurred()) return NULL
;
823 } _resultobj
= Py_BuildValue("i",_result
);
827 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
828 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
829 PyObject
* _resultobj
;
831 wxToolBarToolBase
* _arg0
;
832 PyObject
* _argo0
= 0;
833 char *_kwnames
[] = { "self", NULL
};
836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
847 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
849 wxPyEndAllowThreads(__tstate
);
850 if (PyErr_Occurred()) return NULL
;
851 } _resultobj
= Py_BuildValue("i",_result
);
855 #define wxToolBarToolBase_GetKind(_swigobj) (_swigobj->GetKind())
856 static PyObject
*_wrap_wxToolBarToolBase_GetKind(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
857 PyObject
* _resultobj
;
859 wxToolBarToolBase
* _arg0
;
860 PyObject
* _argo0
= 0;
861 char *_kwnames
[] = { "self", NULL
};
864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetKind",_kwnames
,&_argo0
))
867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetKind. Expected _wxToolBarToolBase_p.");
874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
875 _result
= (wxItemKind
)wxToolBarToolBase_GetKind(_arg0
);
877 wxPyEndAllowThreads(__tstate
);
878 if (PyErr_Occurred()) return NULL
;
879 } _resultobj
= Py_BuildValue("i",_result
);
883 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
884 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
885 PyObject
* _resultobj
;
887 wxToolBarToolBase
* _arg0
;
888 PyObject
* _argo0
= 0;
889 char *_kwnames
[] = { "self", NULL
};
892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
903 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
905 wxPyEndAllowThreads(__tstate
);
906 if (PyErr_Occurred()) return NULL
;
907 } _resultobj
= Py_BuildValue("i",_result
);
911 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
912 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
913 PyObject
* _resultobj
;
915 wxToolBarToolBase
* _arg0
;
916 PyObject
* _argo0
= 0;
917 char *_kwnames
[] = { "self", NULL
};
920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
931 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
933 wxPyEndAllowThreads(__tstate
);
934 if (PyErr_Occurred()) return NULL
;
935 } _resultobj
= Py_BuildValue("i",_result
);
939 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
940 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
941 PyObject
* _resultobj
;
943 wxToolBarToolBase
* _arg0
;
944 PyObject
* _argo0
= 0;
945 char *_kwnames
[] = { "self", NULL
};
948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
959 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
961 wxPyEndAllowThreads(__tstate
);
962 if (PyErr_Occurred()) return NULL
;
963 } _resultobj
= Py_BuildValue("i",_result
);
967 #define wxToolBarToolBase_GetNormalBitmap(_swigobj) (_swigobj->GetNormalBitmap())
968 static PyObject
*_wrap_wxToolBarToolBase_GetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
969 PyObject
* _resultobj
;
971 wxToolBarToolBase
* _arg0
;
972 PyObject
* _argo0
= 0;
973 char *_kwnames
[] = { "self", NULL
};
977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetNormalBitmap",_kwnames
,&_argo0
))
980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetNormalBitmap. Expected _wxToolBarToolBase_p.");
987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
988 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetNormalBitmap(_arg0
);
989 _result
= (wxBitmap
*) &_result_ref
;
991 wxPyEndAllowThreads(__tstate
);
992 if (PyErr_Occurred()) return NULL
;
994 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
995 _resultobj
= Py_BuildValue("s",_ptemp
);
998 _resultobj
= Py_None
;
1003 #define wxToolBarToolBase_GetDisabledBitmap(_swigobj) (_swigobj->GetDisabledBitmap())
1004 static PyObject
*_wrap_wxToolBarToolBase_GetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1005 PyObject
* _resultobj
;
1007 wxToolBarToolBase
* _arg0
;
1008 PyObject
* _argo0
= 0;
1009 char *_kwnames
[] = { "self", NULL
};
1013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetDisabledBitmap",_kwnames
,&_argo0
))
1016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1024 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetDisabledBitmap(_arg0
);
1025 _result
= (wxBitmap
*) &_result_ref
;
1027 wxPyEndAllowThreads(__tstate
);
1028 if (PyErr_Occurred()) return NULL
;
1030 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
1031 _resultobj
= Py_BuildValue("s",_ptemp
);
1034 _resultobj
= Py_None
;
1039 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1040 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1041 PyObject
* _resultobj
;
1043 wxToolBarToolBase
* _arg0
;
1044 PyObject
* _argo0
= 0;
1045 char *_kwnames
[] = { "self", NULL
};
1049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
1052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
1059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1060 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
1062 wxPyEndAllowThreads(__tstate
);
1063 if (PyErr_Occurred()) return NULL
;
1064 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1065 _resultobj
= Py_BuildValue("s",_ptemp
);
1069 #define wxToolBarToolBase_GetLabel(_swigobj) (_swigobj->GetLabel())
1070 static PyObject
*_wrap_wxToolBarToolBase_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1071 PyObject
* _resultobj
;
1073 wxToolBarToolBase
* _arg0
;
1074 PyObject
* _argo0
= 0;
1075 char *_kwnames
[] = { "self", NULL
};
1078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLabel",_kwnames
,&_argo0
))
1081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLabel. Expected _wxToolBarToolBase_p.");
1088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1089 _result
= new wxString (wxToolBarToolBase_GetLabel(_arg0
));
1091 wxPyEndAllowThreads(__tstate
);
1092 if (PyErr_Occurred()) return NULL
;
1095 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1097 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1106 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
1107 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1108 PyObject
* _resultobj
;
1110 wxToolBarToolBase
* _arg0
;
1111 PyObject
* _argo0
= 0;
1112 char *_kwnames
[] = { "self", NULL
};
1115 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
1118 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1119 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1126 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1128 wxPyEndAllowThreads(__tstate
);
1129 if (PyErr_Occurred()) return NULL
;
1132 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1134 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1143 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1144 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1145 PyObject
* _resultobj
;
1147 wxToolBarToolBase
* _arg0
;
1148 PyObject
* _argo0
= 0;
1149 char *_kwnames
[] = { "self", NULL
};
1152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1163 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1165 wxPyEndAllowThreads(__tstate
);
1166 if (PyErr_Occurred()) return NULL
;
1169 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1171 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1180 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1181 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1182 PyObject
* _resultobj
;
1184 wxToolBarToolBase
* _arg0
;
1186 PyObject
* _argo0
= 0;
1188 char *_kwnames
[] = { "self","enable", NULL
};
1191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1200 _arg1
= (bool ) tempbool1
;
1202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1203 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1205 wxPyEndAllowThreads(__tstate
);
1206 if (PyErr_Occurred()) return NULL
;
1207 } _resultobj
= Py_BuildValue("i",_result
);
1211 #define wxToolBarToolBase_Toggle(_swigobj) (_swigobj->Toggle())
1212 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1213 PyObject
* _resultobj
;
1214 wxToolBarToolBase
* _arg0
;
1215 PyObject
* _argo0
= 0;
1216 char *_kwnames
[] = { "self", NULL
};
1219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
))
1222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1230 wxToolBarToolBase_Toggle(_arg0
);
1232 wxPyEndAllowThreads(__tstate
);
1233 if (PyErr_Occurred()) return NULL
;
1234 } Py_INCREF(Py_None
);
1235 _resultobj
= Py_None
;
1239 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1240 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1241 PyObject
* _resultobj
;
1243 wxToolBarToolBase
* _arg0
;
1245 PyObject
* _argo0
= 0;
1247 char *_kwnames
[] = { "self","toggle", NULL
};
1250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1259 _arg1
= (bool ) tempbool1
;
1261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1262 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1264 wxPyEndAllowThreads(__tstate
);
1265 if (PyErr_Occurred()) return NULL
;
1266 } _resultobj
= Py_BuildValue("i",_result
);
1270 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1271 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1272 PyObject
* _resultobj
;
1274 wxToolBarToolBase
* _arg0
;
1276 PyObject
* _argo0
= 0;
1277 PyObject
* _obj1
= 0;
1278 char *_kwnames
[] = { "self","help", NULL
};
1281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1291 _arg1
= wxString_in_helper(_obj1
);
1296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1297 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1299 wxPyEndAllowThreads(__tstate
);
1300 if (PyErr_Occurred()) return NULL
;
1301 } _resultobj
= Py_BuildValue("i",_result
);
1309 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1310 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1311 PyObject
* _resultobj
;
1313 wxToolBarToolBase
* _arg0
;
1315 PyObject
* _argo0
= 0;
1316 PyObject
* _obj1
= 0;
1317 char *_kwnames
[] = { "self","help", NULL
};
1320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1330 _arg1
= wxString_in_helper(_obj1
);
1335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1336 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1338 wxPyEndAllowThreads(__tstate
);
1339 if (PyErr_Occurred()) return NULL
;
1340 } _resultobj
= Py_BuildValue("i",_result
);
1348 #define wxToolBarToolBase_SetNormalBitmap(_swigobj,_swigarg0) (_swigobj->SetNormalBitmap(_swigarg0))
1349 static PyObject
*_wrap_wxToolBarToolBase_SetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1350 PyObject
* _resultobj
;
1351 wxToolBarToolBase
* _arg0
;
1353 PyObject
* _argo0
= 0;
1354 PyObject
* _argo1
= 0;
1355 char *_kwnames
[] = { "self","bmp", NULL
};
1358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetNormalBitmap",_kwnames
,&_argo0
,&_argo1
))
1361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetNormalBitmap. Expected _wxToolBarToolBase_p.");
1368 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetNormalBitmap. Expected _wxBitmap_p.");
1374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1375 wxToolBarToolBase_SetNormalBitmap(_arg0
,*_arg1
);
1377 wxPyEndAllowThreads(__tstate
);
1378 if (PyErr_Occurred()) return NULL
;
1379 } Py_INCREF(Py_None
);
1380 _resultobj
= Py_None
;
1384 #define wxToolBarToolBase_SetDisabledBitmap(_swigobj,_swigarg0) (_swigobj->SetDisabledBitmap(_swigarg0))
1385 static PyObject
*_wrap_wxToolBarToolBase_SetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1386 PyObject
* _resultobj
;
1387 wxToolBarToolBase
* _arg0
;
1389 PyObject
* _argo0
= 0;
1390 PyObject
* _argo1
= 0;
1391 char *_kwnames
[] = { "self","bmp", NULL
};
1394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetDisabledBitmap",_kwnames
,&_argo0
,&_argo1
))
1397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1404 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxBitmap_p.");
1410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1411 wxToolBarToolBase_SetDisabledBitmap(_arg0
,*_arg1
);
1413 wxPyEndAllowThreads(__tstate
);
1414 if (PyErr_Occurred()) return NULL
;
1415 } Py_INCREF(Py_None
);
1416 _resultobj
= Py_None
;
1420 #define wxToolBarToolBase_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1421 static PyObject
*_wrap_wxToolBarToolBase_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1422 PyObject
* _resultobj
;
1423 wxToolBarToolBase
* _arg0
;
1425 PyObject
* _argo0
= 0;
1426 PyObject
* _obj1
= 0;
1427 char *_kwnames
[] = { "self","label", NULL
};
1430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLabel. Expected _wxToolBarToolBase_p.");
1440 _arg1
= wxString_in_helper(_obj1
);
1445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1446 wxToolBarToolBase_SetLabel(_arg0
,*_arg1
);
1448 wxPyEndAllowThreads(__tstate
);
1449 if (PyErr_Occurred()) return NULL
;
1450 } Py_INCREF(Py_None
);
1451 _resultobj
= Py_None
;
1459 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1460 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1461 PyObject
* _resultobj
;
1462 wxToolBarToolBase
* _arg0
;
1463 PyObject
* _argo0
= 0;
1464 char *_kwnames
[] = { "self", NULL
};
1467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1478 wxToolBarToolBase_Detach(_arg0
);
1480 wxPyEndAllowThreads(__tstate
);
1481 if (PyErr_Occurred()) return NULL
;
1482 } Py_INCREF(Py_None
);
1483 _resultobj
= Py_None
;
1487 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1488 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1489 PyObject
* _resultobj
;
1490 wxToolBarToolBase
* _arg0
;
1491 wxToolBarBase
* _arg1
;
1492 PyObject
* _argo0
= 0;
1493 PyObject
* _argo1
= 0;
1494 char *_kwnames
[] = { "self","tbar", NULL
};
1497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1507 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1508 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1515 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1517 wxPyEndAllowThreads(__tstate
);
1518 if (PyErr_Occurred()) return NULL
;
1519 } Py_INCREF(Py_None
);
1520 _resultobj
= Py_None
;
1524 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1525 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1527 Py_INCREF(udata
->m_obj
);
1528 return udata
->m_obj
;
1534 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1535 PyObject
* _resultobj
;
1537 wxToolBarToolBase
* _arg0
;
1538 PyObject
* _argo0
= 0;
1539 char *_kwnames
[] = { "self", NULL
};
1542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1553 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1555 wxPyEndAllowThreads(__tstate
);
1556 if (PyErr_Occurred()) return NULL
;
1558 _resultobj
= _result
;
1563 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1564 self
->SetClientData(new wxPyUserData(clientData
));
1566 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1567 PyObject
* _resultobj
;
1568 wxToolBarToolBase
* _arg0
;
1570 PyObject
* _argo0
= 0;
1571 PyObject
* _obj1
= 0;
1572 char *_kwnames
[] = { "self","clientData", NULL
};
1575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1589 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1591 wxPyEndAllowThreads(__tstate
);
1592 if (PyErr_Occurred()) return NULL
;
1593 } Py_INCREF(Py_None
);
1594 _resultobj
= Py_None
;
1598 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1601 src
= (wxToolBarBase
*) ptr
;
1602 dest
= (wxControl
*) src
;
1603 return (void *) dest
;
1606 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1609 src
= (wxToolBarBase
*) ptr
;
1610 dest
= (wxWindow
*) src
;
1611 return (void *) dest
;
1614 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1617 src
= (wxToolBarBase
*) ptr
;
1618 dest
= (wxEvtHandler
*) src
;
1619 return (void *) dest
;
1622 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1625 src
= (wxToolBarBase
*) ptr
;
1626 dest
= (wxObject
*) src
;
1627 return (void *) dest
;
1630 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
) {
1631 wxPyUserData
* udata
= NULL
;
1632 if (clientData
&& clientData
!= Py_None
)
1633 udata
= new wxPyUserData(clientData
);
1634 return self
->AddTool(id
, label
, bitmap
, bmpDisabled
, kind
,
1635 shortHelp
, longHelp
, udata
);
1637 static PyObject
*_wrap_wxToolBarBase_DoAddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1638 PyObject
* _resultobj
;
1639 wxToolBarToolBase
* _result
;
1640 wxToolBarBase
* _arg0
;
1644 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1645 wxItemKind _arg5
= (wxItemKind
) wxITEM_NORMAL
;
1646 wxString
* _arg6
= (wxString
*) &wxPyEmptyString
;
1647 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1648 PyObject
* _arg8
= (PyObject
*) NULL
;
1649 PyObject
* _argo0
= 0;
1650 PyObject
* _obj2
= 0;
1651 PyObject
* _argo3
= 0;
1652 PyObject
* _argo4
= 0;
1653 PyObject
* _obj6
= 0;
1654 PyObject
* _obj7
= 0;
1655 PyObject
* _obj8
= 0;
1656 char *_kwnames
[] = { "self","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL
};
1659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|OiOOO:wxToolBarBase_DoAddTool",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DoAddTool. Expected _wxToolBarBase_p.");
1669 _arg2
= wxString_in_helper(_obj2
);
1674 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_DoAddTool. Expected _wxBitmap_p.");
1680 if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_DoAddTool. Expected _wxBitmap_p.");
1687 _arg6
= wxString_in_helper(_obj6
);
1693 _arg7
= wxString_in_helper(_obj7
);
1702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1703 _result
= (wxToolBarToolBase
*)wxToolBarBase_DoAddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
,*_arg7
,_arg8
);
1705 wxPyEndAllowThreads(__tstate
);
1706 if (PyErr_Occurred()) return NULL
;
1707 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1723 static wxToolBarToolBase
* wxToolBarBase_DoInsertTool(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
) {
1724 wxPyUserData
* udata
= NULL
;
1725 if (clientData
&& clientData
!= Py_None
)
1726 udata
= new wxPyUserData(clientData
);
1727 return self
->InsertTool(pos
, id
, label
, bitmap
, bmpDisabled
, kind
,
1728 shortHelp
, longHelp
, udata
);
1730 static PyObject
*_wrap_wxToolBarBase_DoInsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1732 wxToolBarToolBase
* _result
;
1733 wxToolBarBase
* _arg0
;
1738 wxBitmap
* _arg5
= (wxBitmap
*) &wxNullBitmap
;
1739 wxItemKind _arg6
= (wxItemKind
) wxITEM_NORMAL
;
1740 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1741 wxString
* _arg8
= (wxString
*) &wxPyEmptyString
;
1742 PyObject
* _arg9
= (PyObject
*) NULL
;
1743 PyObject
* _argo0
= 0;
1744 PyObject
* _obj3
= 0;
1745 PyObject
* _argo4
= 0;
1746 PyObject
* _argo5
= 0;
1747 PyObject
* _obj7
= 0;
1748 PyObject
* _obj8
= 0;
1749 PyObject
* _obj9
= 0;
1750 char *_kwnames
[] = { "self","pos","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL
};
1753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiOO|OiOOO:wxToolBarBase_DoInsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
,&_argo4
,&_argo5
,&_arg6
,&_obj7
,&_obj8
,&_obj9
))
1756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DoInsertTool. Expected _wxToolBarBase_p.");
1763 _arg3
= wxString_in_helper(_obj3
);
1768 if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_DoInsertTool. Expected _wxBitmap_p.");
1774 if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxBitmap_p")) {
1775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of wxToolBarBase_DoInsertTool. Expected _wxBitmap_p.");
1781 _arg7
= wxString_in_helper(_obj7
);
1787 _arg8
= wxString_in_helper(_obj8
);
1796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1797 _result
= (wxToolBarToolBase
*)wxToolBarBase_DoInsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
,*_arg7
,*_arg8
,_arg9
);
1799 wxPyEndAllowThreads(__tstate
);
1800 if (PyErr_Occurred()) return NULL
;
1801 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1817 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1818 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1819 PyObject
* _resultobj
;
1820 wxToolBarToolBase
* _result
;
1821 wxToolBarBase
* _arg0
;
1823 PyObject
* _argo0
= 0;
1824 PyObject
* _argo1
= 0;
1825 char *_kwnames
[] = { "self","control", NULL
};
1828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1838 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1839 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1846 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1848 wxPyEndAllowThreads(__tstate
);
1849 if (PyErr_Occurred()) return NULL
;
1850 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1854 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1855 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1856 PyObject
* _resultobj
;
1857 wxToolBarToolBase
* _result
;
1858 wxToolBarBase
* _arg0
;
1861 PyObject
* _argo0
= 0;
1862 PyObject
* _argo2
= 0;
1863 char *_kwnames
[] = { "self","pos","control", NULL
};
1866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1876 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1877 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1884 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1886 wxPyEndAllowThreads(__tstate
);
1887 if (PyErr_Occurred()) return NULL
;
1888 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1892 #define wxToolBarBase_FindControl(_swigobj,_swigarg0) (_swigobj->FindControl(_swigarg0))
1893 static PyObject
*_wrap_wxToolBarBase_FindControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1894 PyObject
* _resultobj
;
1895 wxControl
* _result
;
1896 wxToolBarBase
* _arg0
;
1898 PyObject
* _argo0
= 0;
1899 char *_kwnames
[] = { "self","id", NULL
};
1902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_FindControl",_kwnames
,&_argo0
,&_arg1
))
1905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_FindControl. Expected _wxToolBarBase_p.");
1912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1913 _result
= (wxControl
*)wxToolBarBase_FindControl(_arg0
,_arg1
);
1915 wxPyEndAllowThreads(__tstate
);
1916 if (PyErr_Occurred()) return NULL
;
1917 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1921 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1922 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1923 PyObject
* _resultobj
;
1924 wxToolBarToolBase
* _result
;
1925 wxToolBarBase
* _arg0
;
1926 PyObject
* _argo0
= 0;
1927 char *_kwnames
[] = { "self", NULL
};
1930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) return NULL
;
1945 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1949 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1950 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1952 wxToolBarToolBase
* _result
;
1953 wxToolBarBase
* _arg0
;
1955 PyObject
* _argo0
= 0;
1956 char *_kwnames
[] = { "self","pos", NULL
};
1959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1970 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1972 wxPyEndAllowThreads(__tstate
);
1973 if (PyErr_Occurred()) return NULL
;
1974 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1978 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1979 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1980 PyObject
* _resultobj
;
1981 wxToolBarToolBase
* _result
;
1982 wxToolBarBase
* _arg0
;
1984 PyObject
* _argo0
= 0;
1985 char *_kwnames
[] = { "self","id", NULL
};
1988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
1991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
1998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1999 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2001 wxPyEndAllowThreads(__tstate
);
2002 if (PyErr_Occurred()) return NULL
;
2003 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2007 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2008 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2009 PyObject
* _resultobj
;
2011 wxToolBarBase
* _arg0
;
2013 PyObject
* _argo0
= 0;
2014 char *_kwnames
[] = { "self","pos", NULL
};
2017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2030 wxPyEndAllowThreads(__tstate
);
2031 if (PyErr_Occurred()) return NULL
;
2032 } _resultobj
= Py_BuildValue("i",_result
);
2036 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2037 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2038 PyObject
* _resultobj
;
2040 wxToolBarBase
* _arg0
;
2042 PyObject
* _argo0
= 0;
2043 char *_kwnames
[] = { "self","id", NULL
};
2046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2057 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2059 wxPyEndAllowThreads(__tstate
);
2060 if (PyErr_Occurred()) return NULL
;
2061 } _resultobj
= Py_BuildValue("i",_result
);
2065 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2066 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2067 PyObject
* _resultobj
;
2068 wxToolBarBase
* _arg0
;
2069 PyObject
* _argo0
= 0;
2070 char *_kwnames
[] = { "self", NULL
};
2073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
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_ClearTools. Expected _wxToolBarBase_p.");
2083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2084 wxToolBarBase_ClearTools(_arg0
);
2086 wxPyEndAllowThreads(__tstate
);
2087 if (PyErr_Occurred()) return NULL
;
2088 } Py_INCREF(Py_None
);
2089 _resultobj
= Py_None
;
2093 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2094 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2095 PyObject
* _resultobj
;
2097 wxToolBarBase
* _arg0
;
2098 PyObject
* _argo0
= 0;
2099 char *_kwnames
[] = { "self", NULL
};
2102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2113 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2115 wxPyEndAllowThreads(__tstate
);
2116 if (PyErr_Occurred()) return NULL
;
2117 } _resultobj
= Py_BuildValue("i",_result
);
2121 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2122 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2123 PyObject
* _resultobj
;
2124 wxToolBarBase
* _arg0
;
2127 PyObject
* _argo0
= 0;
2129 char *_kwnames
[] = { "self","id","enable", NULL
};
2132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2141 _arg2
= (bool ) tempbool2
;
2143 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2144 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2146 wxPyEndAllowThreads(__tstate
);
2147 if (PyErr_Occurred()) return NULL
;
2148 } Py_INCREF(Py_None
);
2149 _resultobj
= Py_None
;
2153 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2154 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2156 wxToolBarBase
* _arg0
;
2159 PyObject
* _argo0
= 0;
2161 char *_kwnames
[] = { "self","id","toggle", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2173 _arg2
= (bool ) tempbool2
;
2175 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2176 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2178 wxPyEndAllowThreads(__tstate
);
2179 if (PyErr_Occurred()) return NULL
;
2180 } Py_INCREF(Py_None
);
2181 _resultobj
= Py_None
;
2185 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2186 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2187 PyObject
* _resultobj
;
2188 wxToolBarBase
* _arg0
;
2191 PyObject
* _argo0
= 0;
2193 char *_kwnames
[] = { "self","id","toggle", NULL
};
2196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2205 _arg2
= (bool ) tempbool2
;
2207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2208 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2210 wxPyEndAllowThreads(__tstate
);
2211 if (PyErr_Occurred()) return NULL
;
2212 } Py_INCREF(Py_None
);
2213 _resultobj
= Py_None
;
2217 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int id
) {
2218 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(id
);
2220 Py_INCREF(udata
->m_obj
);
2221 return udata
->m_obj
;
2227 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
* _resultobj
;
2230 wxToolBarBase
* _arg0
;
2232 PyObject
* _argo0
= 0;
2233 char *_kwnames
[] = { "self","id", NULL
};
2236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2247 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2249 wxPyEndAllowThreads(__tstate
);
2250 if (PyErr_Occurred()) return NULL
;
2252 _resultobj
= _result
;
2257 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int id
,PyObject
* clientData
) {
2258 self
->SetToolClientData(id
, new wxPyUserData(clientData
));
2260 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2261 PyObject
* _resultobj
;
2262 wxToolBarBase
* _arg0
;
2265 PyObject
* _argo0
= 0;
2266 PyObject
* _obj2
= 0;
2267 char *_kwnames
[] = { "self","id","clientData", NULL
};
2270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2284 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2286 wxPyEndAllowThreads(__tstate
);
2287 if (PyErr_Occurred()) return NULL
;
2288 } Py_INCREF(Py_None
);
2289 _resultobj
= Py_None
;
2293 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2294 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2295 PyObject
* _resultobj
;
2297 wxToolBarBase
* _arg0
;
2299 PyObject
* _argo0
= 0;
2300 char *_kwnames
[] = { "self","id", NULL
};
2303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2314 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2316 wxPyEndAllowThreads(__tstate
);
2317 if (PyErr_Occurred()) return NULL
;
2318 } _resultobj
= Py_BuildValue("i",_result
);
2322 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2323 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2324 PyObject
* _resultobj
;
2326 wxToolBarBase
* _arg0
;
2328 PyObject
* _argo0
= 0;
2329 char *_kwnames
[] = { "self","id", NULL
};
2332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2343 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2345 wxPyEndAllowThreads(__tstate
);
2346 if (PyErr_Occurred()) return NULL
;
2347 } _resultobj
= Py_BuildValue("i",_result
);
2351 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2352 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2353 PyObject
* _resultobj
;
2354 wxToolBarBase
* _arg0
;
2357 PyObject
* _argo0
= 0;
2358 PyObject
* _obj2
= 0;
2359 char *_kwnames
[] = { "self","id","helpString", NULL
};
2362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2372 _arg2
= wxString_in_helper(_obj2
);
2377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2378 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2380 wxPyEndAllowThreads(__tstate
);
2381 if (PyErr_Occurred()) return NULL
;
2382 } Py_INCREF(Py_None
);
2383 _resultobj
= Py_None
;
2391 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2392 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2393 PyObject
* _resultobj
;
2395 wxToolBarBase
* _arg0
;
2397 PyObject
* _argo0
= 0;
2398 char *_kwnames
[] = { "self","id", NULL
};
2401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2412 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2414 wxPyEndAllowThreads(__tstate
);
2415 if (PyErr_Occurred()) return NULL
;
2418 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2420 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2429 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2430 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2431 PyObject
* _resultobj
;
2432 wxToolBarBase
* _arg0
;
2435 PyObject
* _argo0
= 0;
2436 PyObject
* _obj2
= 0;
2437 char *_kwnames
[] = { "self","id","helpString", NULL
};
2440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2450 _arg2
= wxString_in_helper(_obj2
);
2455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2456 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2458 wxPyEndAllowThreads(__tstate
);
2459 if (PyErr_Occurred()) return NULL
;
2460 } Py_INCREF(Py_None
);
2461 _resultobj
= Py_None
;
2469 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2470 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2471 PyObject
* _resultobj
;
2473 wxToolBarBase
* _arg0
;
2475 PyObject
* _argo0
= 0;
2476 char *_kwnames
[] = { "self","id", NULL
};
2479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2490 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2492 wxPyEndAllowThreads(__tstate
);
2493 if (PyErr_Occurred()) return NULL
;
2496 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
2498 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2507 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2508 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2509 PyObject
* _resultobj
;
2510 wxToolBarBase
* _arg0
;
2513 PyObject
* _argo0
= 0;
2514 char *_kwnames
[] = { "self","x","y", NULL
};
2517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2528 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2530 wxPyEndAllowThreads(__tstate
);
2531 if (PyErr_Occurred()) return NULL
;
2532 } Py_INCREF(Py_None
);
2533 _resultobj
= Py_None
;
2537 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2538 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2539 PyObject
* _resultobj
;
2540 wxToolBarBase
* _arg0
;
2542 PyObject
* _argo0
= 0;
2544 PyObject
* _obj1
= 0;
2545 char *_kwnames
[] = { "self","size", NULL
};
2548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2559 if (! wxSize_helper(_obj1
, &_arg1
))
2563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2564 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2566 wxPyEndAllowThreads(__tstate
);
2567 if (PyErr_Occurred()) return NULL
;
2568 } Py_INCREF(Py_None
);
2569 _resultobj
= Py_None
;
2573 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2574 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2575 PyObject
* _resultobj
;
2576 wxToolBarBase
* _arg0
;
2578 PyObject
* _argo0
= 0;
2579 char *_kwnames
[] = { "self","packing", NULL
};
2582 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2585 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2586 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2587 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2592 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2593 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2595 wxPyEndAllowThreads(__tstate
);
2596 if (PyErr_Occurred()) return NULL
;
2597 } Py_INCREF(Py_None
);
2598 _resultobj
= Py_None
;
2602 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2603 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2604 PyObject
* _resultobj
;
2605 wxToolBarBase
* _arg0
;
2607 PyObject
* _argo0
= 0;
2608 char *_kwnames
[] = { "self","separation", NULL
};
2611 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2614 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2615 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2616 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2622 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2624 wxPyEndAllowThreads(__tstate
);
2625 if (PyErr_Occurred()) return NULL
;
2626 } Py_INCREF(Py_None
);
2627 _resultobj
= Py_None
;
2631 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2632 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2633 PyObject
* _resultobj
;
2635 wxToolBarBase
* _arg0
;
2636 PyObject
* _argo0
= 0;
2637 char *_kwnames
[] = { "self", NULL
};
2641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2644 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2645 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2646 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2652 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2654 wxPyEndAllowThreads(__tstate
);
2655 if (PyErr_Occurred()) return NULL
;
2656 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2657 _resultobj
= Py_BuildValue("s",_ptemp
);
2661 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2662 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2663 PyObject
* _resultobj
;
2665 wxToolBarBase
* _arg0
;
2666 PyObject
* _argo0
= 0;
2667 char *_kwnames
[] = { "self", NULL
};
2671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2682 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2684 wxPyEndAllowThreads(__tstate
);
2685 if (PyErr_Occurred()) return NULL
;
2686 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2687 _resultobj
= Py_BuildValue("s",_ptemp
);
2691 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2692 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2693 PyObject
* _resultobj
;
2695 wxToolBarBase
* _arg0
;
2696 PyObject
* _argo0
= 0;
2697 char *_kwnames
[] = { "self", NULL
};
2700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2711 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2713 wxPyEndAllowThreads(__tstate
);
2714 if (PyErr_Occurred()) return NULL
;
2715 } _resultobj
= Py_BuildValue("i",_result
);
2719 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2720 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2721 PyObject
* _resultobj
;
2723 wxToolBarBase
* _arg0
;
2724 PyObject
* _argo0
= 0;
2725 char *_kwnames
[] = { "self", NULL
};
2728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2739 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2741 wxPyEndAllowThreads(__tstate
);
2742 if (PyErr_Occurred()) return NULL
;
2743 } _resultobj
= Py_BuildValue("i",_result
);
2747 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2748 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2749 PyObject
* _resultobj
;
2750 wxToolBarBase
* _arg0
;
2752 PyObject
* _argo0
= 0;
2753 char *_kwnames
[] = { "self","nRows", NULL
};
2756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2767 wxToolBarBase_SetRows(_arg0
,_arg1
);
2769 wxPyEndAllowThreads(__tstate
);
2770 if (PyErr_Occurred()) return NULL
;
2771 } Py_INCREF(Py_None
);
2772 _resultobj
= Py_None
;
2776 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2777 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2778 PyObject
* _resultobj
;
2779 wxToolBarBase
* _arg0
;
2782 PyObject
* _argo0
= 0;
2783 char *_kwnames
[] = { "self","rows","cols", NULL
};
2786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2797 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2799 wxPyEndAllowThreads(__tstate
);
2800 if (PyErr_Occurred()) return NULL
;
2801 } Py_INCREF(Py_None
);
2802 _resultobj
= Py_None
;
2806 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2807 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2808 PyObject
* _resultobj
;
2810 wxToolBarBase
* _arg0
;
2811 PyObject
* _argo0
= 0;
2812 char *_kwnames
[] = { "self", NULL
};
2815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2826 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2828 wxPyEndAllowThreads(__tstate
);
2829 if (PyErr_Occurred()) return NULL
;
2830 } _resultobj
= Py_BuildValue("i",_result
);
2834 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2835 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2836 PyObject
* _resultobj
;
2838 wxToolBarBase
* _arg0
;
2839 PyObject
* _argo0
= 0;
2840 char *_kwnames
[] = { "self", NULL
};
2843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2854 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2856 wxPyEndAllowThreads(__tstate
);
2857 if (PyErr_Occurred()) return NULL
;
2858 } _resultobj
= Py_BuildValue("i",_result
);
2862 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2863 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2864 PyObject
* _resultobj
;
2865 wxToolBarBase
* _arg0
;
2867 PyObject
* _argo0
= 0;
2869 PyObject
* _obj1
= 0;
2870 char *_kwnames
[] = { "self","size", NULL
};
2873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2884 if (! wxSize_helper(_obj1
, &_arg1
))
2888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2889 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2891 wxPyEndAllowThreads(__tstate
);
2892 if (PyErr_Occurred()) return NULL
;
2893 } Py_INCREF(Py_None
);
2894 _resultobj
= Py_None
;
2898 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2899 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2900 PyObject
* _resultobj
;
2902 wxToolBarBase
* _arg0
;
2903 PyObject
* _argo0
= 0;
2904 char *_kwnames
[] = { "self", NULL
};
2908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2919 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2921 wxPyEndAllowThreads(__tstate
);
2922 if (PyErr_Occurred()) return NULL
;
2923 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2924 _resultobj
= Py_BuildValue("s",_ptemp
);
2928 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2929 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2930 PyObject
* _resultobj
;
2932 wxToolBarBase
* _arg0
;
2933 PyObject
* _argo0
= 0;
2934 char *_kwnames
[] = { "self", NULL
};
2938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2948 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2949 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2951 wxPyEndAllowThreads(__tstate
);
2952 if (PyErr_Occurred()) return NULL
;
2953 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2954 _resultobj
= Py_BuildValue("s",_ptemp
);
2958 #define wxToolBarBase_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
2959 static PyObject
*_wrap_wxToolBarBase_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2960 PyObject
* _resultobj
;
2961 wxToolBarToolBase
* _result
;
2962 wxToolBarBase
* _arg0
;
2965 PyObject
* _argo0
= 0;
2966 char *_kwnames
[] = { "self","x","y", NULL
};
2969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_FindToolForPosition. Expected _wxToolBarBase_p.");
2979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2980 _result
= (wxToolBarToolBase
*)wxToolBarBase_FindToolForPosition(_arg0
,_arg1
,_arg2
);
2982 wxPyEndAllowThreads(__tstate
);
2983 if (PyErr_Occurred()) return NULL
;
2984 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2988 #define wxToolBarBase_IsVertical(_swigobj) (_swigobj->IsVertical())
2989 static PyObject
*_wrap_wxToolBarBase_IsVertical(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2992 wxToolBarBase
* _arg0
;
2993 PyObject
* _argo0
= 0;
2994 char *_kwnames
[] = { "self", NULL
};
2997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_IsVertical",_kwnames
,&_argo0
))
3000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_IsVertical. Expected _wxToolBarBase_p.");
3007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3008 _result
= (bool )wxToolBarBase_IsVertical(_arg0
);
3010 wxPyEndAllowThreads(__tstate
);
3011 if (PyErr_Occurred()) return NULL
;
3012 } _resultobj
= Py_BuildValue("i",_result
);
3016 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3018 wxToolBarBase
*dest
;
3019 src
= (wxToolBar
*) ptr
;
3020 dest
= (wxToolBarBase
*) src
;
3021 return (void *) dest
;
3024 static void *SwigwxToolBarTowxControl(void *ptr
) {
3027 src
= (wxToolBar
*) ptr
;
3028 dest
= (wxControl
*) src
;
3029 return (void *) dest
;
3032 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3035 src
= (wxToolBar
*) ptr
;
3036 dest
= (wxWindow
*) src
;
3037 return (void *) dest
;
3040 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3043 src
= (wxToolBar
*) ptr
;
3044 dest
= (wxEvtHandler
*) src
;
3045 return (void *) dest
;
3048 static void *SwigwxToolBarTowxObject(void *ptr
) {
3051 src
= (wxToolBar
*) ptr
;
3052 dest
= (wxObject
*) src
;
3053 return (void *) dest
;
3056 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3057 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3058 PyObject
* _resultobj
;
3059 wxToolBar
* _result
;
3062 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3063 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3064 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3065 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
3066 PyObject
* _argo0
= 0;
3068 PyObject
* _obj2
= 0;
3070 PyObject
* _obj3
= 0;
3071 PyObject
* _obj5
= 0;
3072 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
3079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3088 if (! wxPoint_helper(_obj2
, &_arg2
))
3094 if (! wxSize_helper(_obj3
, &_arg3
))
3099 _arg5
= wxString_in_helper(_obj5
);
3104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3105 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3107 wxPyEndAllowThreads(__tstate
);
3108 if (PyErr_Occurred()) return NULL
;
3110 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3111 _resultobj
= Py_BuildValue("s",_ptemp
);
3114 _resultobj
= Py_None
;
3123 #define new_wxPreToolBar() (new wxToolBar())
3124 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3125 PyObject
* _resultobj
;
3126 wxToolBar
* _result
;
3127 char *_kwnames
[] = { NULL
};
3131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3135 _result
= (wxToolBar
*)new_wxPreToolBar();
3137 wxPyEndAllowThreads(__tstate
);
3138 if (PyErr_Occurred()) return NULL
;
3140 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3141 _resultobj
= Py_BuildValue("s",_ptemp
);
3144 _resultobj
= Py_None
;
3149 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3150 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3151 PyObject
* _resultobj
;
3156 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3157 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3158 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3159 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3160 PyObject
* _argo0
= 0;
3161 PyObject
* _argo1
= 0;
3163 PyObject
* _obj3
= 0;
3165 PyObject
* _obj4
= 0;
3166 PyObject
* _obj6
= 0;
3167 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3180 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3181 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3189 if (! wxPoint_helper(_obj3
, &_arg3
))
3195 if (! wxSize_helper(_obj4
, &_arg4
))
3200 _arg6
= wxString_in_helper(_obj6
);
3205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3206 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3208 wxPyEndAllowThreads(__tstate
);
3209 if (PyErr_Occurred()) return NULL
;
3210 } _resultobj
= Py_BuildValue("i",_result
);
3218 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3219 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3220 PyObject
* _resultobj
;
3221 wxToolBarToolBase
* _result
;
3225 PyObject
* _argo0
= 0;
3226 char *_kwnames
[] = { "self","x","y", NULL
};
3229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3240 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3242 wxPyEndAllowThreads(__tstate
);
3243 if (PyErr_Occurred()) return NULL
;
3244 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3248 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3249 wxToolBarSimple
*src
;
3250 wxToolBarBase
*dest
;
3251 src
= (wxToolBarSimple
*) ptr
;
3252 dest
= (wxToolBarBase
*) src
;
3253 return (void *) dest
;
3256 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3257 wxToolBarSimple
*src
;
3259 src
= (wxToolBarSimple
*) ptr
;
3260 dest
= (wxControl
*) src
;
3261 return (void *) dest
;
3264 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3265 wxToolBarSimple
*src
;
3267 src
= (wxToolBarSimple
*) ptr
;
3268 dest
= (wxWindow
*) src
;
3269 return (void *) dest
;
3272 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3273 wxToolBarSimple
*src
;
3275 src
= (wxToolBarSimple
*) ptr
;
3276 dest
= (wxEvtHandler
*) src
;
3277 return (void *) dest
;
3280 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3281 wxToolBarSimple
*src
;
3283 src
= (wxToolBarSimple
*) ptr
;
3284 dest
= (wxObject
*) src
;
3285 return (void *) dest
;
3288 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3289 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3290 PyObject
* _resultobj
;
3291 wxToolBarSimple
* _result
;
3294 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3295 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3296 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3297 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
3298 PyObject
* _argo0
= 0;
3300 PyObject
* _obj2
= 0;
3302 PyObject
* _obj3
= 0;
3303 PyObject
* _obj5
= 0;
3304 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
3311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3320 if (! wxPoint_helper(_obj2
, &_arg2
))
3326 if (! wxSize_helper(_obj3
, &_arg3
))
3331 _arg5
= wxString_in_helper(_obj5
);
3336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3337 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3339 wxPyEndAllowThreads(__tstate
);
3340 if (PyErr_Occurred()) return NULL
;
3342 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3343 _resultobj
= Py_BuildValue("s",_ptemp
);
3346 _resultobj
= Py_None
;
3355 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3356 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
* _resultobj
;
3358 wxToolBarSimple
* _result
;
3359 char *_kwnames
[] = { NULL
};
3363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3367 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3369 wxPyEndAllowThreads(__tstate
);
3370 if (PyErr_Occurred()) return NULL
;
3372 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3373 _resultobj
= Py_BuildValue("s",_ptemp
);
3376 _resultobj
= Py_None
;
3381 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3382 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3383 PyObject
* _resultobj
;
3385 wxToolBarSimple
* _arg0
;
3388 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3389 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3390 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3391 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3392 PyObject
* _argo0
= 0;
3393 PyObject
* _argo1
= 0;
3395 PyObject
* _obj3
= 0;
3397 PyObject
* _obj4
= 0;
3398 PyObject
* _obj6
= 0;
3399 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3412 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3413 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3421 if (! wxPoint_helper(_obj3
, &_arg3
))
3427 if (! wxSize_helper(_obj4
, &_arg4
))
3432 _arg6
= wxString_in_helper(_obj6
);
3437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3438 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3440 wxPyEndAllowThreads(__tstate
);
3441 if (PyErr_Occurred()) return NULL
;
3442 } _resultobj
= Py_BuildValue("i",_result
);
3450 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3451 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3452 PyObject
* _resultobj
;
3453 wxToolBarToolBase
* _result
;
3454 wxToolBarSimple
* _arg0
;
3457 PyObject
* _argo0
= 0;
3458 char *_kwnames
[] = { "self","x","y", NULL
};
3461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3472 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3474 wxPyEndAllowThreads(__tstate
);
3475 if (PyErr_Occurred()) return NULL
;
3476 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3480 static PyMethodDef stattoolcMethods
[] = {
3481 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarBase_IsVertical", (PyCFunction
) _wrap_wxToolBarBase_IsVertical
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxToolBarBase_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarBase_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxToolBarBase_FindControl", (PyCFunction
) _wrap_wxToolBarBase_FindControl
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxToolBarBase_DoInsertTool", (PyCFunction
) _wrap_wxToolBarBase_DoInsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "wxToolBarBase_DoAddTool", (PyCFunction
) _wrap_wxToolBarBase_DoAddTool
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "wxToolBarToolBase_SetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxToolBarToolBase_SetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "wxToolBarToolBase_SetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3538 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3539 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3540 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3541 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "wxToolBarToolBase_GetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxToolBarToolBase_GetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxToolBarToolBase_GetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxToolBarToolBase_GetKind", (PyCFunction
) _wrap_wxToolBarToolBase_GetKind
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxStatusBar_PopStatusText", (PyCFunction
) _wrap_wxStatusBar_PopStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxStatusBar_PushStatusText", (PyCFunction
) _wrap_wxStatusBar_PushStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3579 * This table is used by the pointer type-checker
3581 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3582 { "_signed_long","_long",0},
3583 { "_wxPrintQuality","_wxCoord",0},
3584 { "_wxPrintQuality","_int",0},
3585 { "_wxPrintQuality","_signed_int",0},
3586 { "_wxPrintQuality","_unsigned_int",0},
3587 { "_wxPrintQuality","_wxWindowID",0},
3588 { "_wxPrintQuality","_uint",0},
3589 { "_wxPrintQuality","_EBool",0},
3590 { "_wxPrintQuality","_size_t",0},
3591 { "_wxPrintQuality","_time_t",0},
3592 { "_byte","_unsigned_char",0},
3593 { "_long","_unsigned_long",0},
3594 { "_long","_signed_long",0},
3595 { "_size_t","_wxCoord",0},
3596 { "_size_t","_wxPrintQuality",0},
3597 { "_size_t","_time_t",0},
3598 { "_size_t","_unsigned_int",0},
3599 { "_size_t","_int",0},
3600 { "_size_t","_wxWindowID",0},
3601 { "_size_t","_uint",0},
3602 { "_uint","_wxCoord",0},
3603 { "_uint","_wxPrintQuality",0},
3604 { "_uint","_time_t",0},
3605 { "_uint","_size_t",0},
3606 { "_uint","_unsigned_int",0},
3607 { "_uint","_int",0},
3608 { "_uint","_wxWindowID",0},
3609 { "_wxChar","_char",0},
3610 { "_char","_wxChar",0},
3611 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3612 { "_EBool","_wxCoord",0},
3613 { "_EBool","_wxPrintQuality",0},
3614 { "_EBool","_signed_int",0},
3615 { "_EBool","_int",0},
3616 { "_EBool","_wxWindowID",0},
3617 { "_unsigned_long","_long",0},
3618 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3619 { "_signed_int","_wxCoord",0},
3620 { "_signed_int","_wxPrintQuality",0},
3621 { "_signed_int","_EBool",0},
3622 { "_signed_int","_wxWindowID",0},
3623 { "_signed_int","_int",0},
3624 { "_WXTYPE","_short",0},
3625 { "_WXTYPE","_signed_short",0},
3626 { "_WXTYPE","_unsigned_short",0},
3627 { "_unsigned_short","_WXTYPE",0},
3628 { "_unsigned_short","_short",0},
3629 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3630 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3631 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3632 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3633 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3634 { "_signed_short","_WXTYPE",0},
3635 { "_signed_short","_short",0},
3636 { "_unsigned_char","_byte",0},
3637 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3638 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3639 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3640 { "_unsigned_int","_wxCoord",0},
3641 { "_unsigned_int","_wxPrintQuality",0},
3642 { "_unsigned_int","_time_t",0},
3643 { "_unsigned_int","_size_t",0},
3644 { "_unsigned_int","_uint",0},
3645 { "_unsigned_int","_wxWindowID",0},
3646 { "_unsigned_int","_int",0},
3647 { "_short","_WXTYPE",0},
3648 { "_short","_unsigned_short",0},
3649 { "_short","_signed_short",0},
3650 { "_wxWindowID","_wxCoord",0},
3651 { "_wxWindowID","_wxPrintQuality",0},
3652 { "_wxWindowID","_time_t",0},
3653 { "_wxWindowID","_size_t",0},
3654 { "_wxWindowID","_EBool",0},
3655 { "_wxWindowID","_uint",0},
3656 { "_wxWindowID","_int",0},
3657 { "_wxWindowID","_signed_int",0},
3658 { "_wxWindowID","_unsigned_int",0},
3659 { "_int","_wxCoord",0},
3660 { "_int","_wxPrintQuality",0},
3661 { "_int","_time_t",0},
3662 { "_int","_size_t",0},
3663 { "_int","_EBool",0},
3664 { "_int","_uint",0},
3665 { "_int","_wxWindowID",0},
3666 { "_int","_unsigned_int",0},
3667 { "_int","_signed_int",0},
3668 { "_time_t","_wxCoord",0},
3669 { "_time_t","_wxPrintQuality",0},
3670 { "_time_t","_unsigned_int",0},
3671 { "_time_t","_int",0},
3672 { "_time_t","_wxWindowID",0},
3673 { "_time_t","_uint",0},
3674 { "_time_t","_size_t",0},
3675 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3676 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3677 { "_wxCoord","_int",0},
3678 { "_wxCoord","_signed_int",0},
3679 { "_wxCoord","_unsigned_int",0},
3680 { "_wxCoord","_wxWindowID",0},
3681 { "_wxCoord","_uint",0},
3682 { "_wxCoord","_EBool",0},
3683 { "_wxCoord","_size_t",0},
3684 { "_wxCoord","_time_t",0},
3685 { "_wxCoord","_wxPrintQuality",0},
3686 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3687 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3688 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3689 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3690 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3691 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3692 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3693 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3696 static PyObject
*SWIG_globals
;
3700 SWIGEXPORT(void) initstattoolc() {
3702 SWIG_globals
= SWIG_newvarlink();
3703 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3704 d
= PyModule_GetDict(m
);
3705 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3706 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3707 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3710 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3711 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);