2 * FILE : src/gtk/stattool.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initstattoolc
56 #define SWIG_name "stattoolc"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
97 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
100 src
= (wxStatusBar
*) ptr
;
101 dest
= (wxWindow
*) src
;
102 return (void *) dest
;
105 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
108 src
= (wxStatusBar
*) ptr
;
109 dest
= (wxEvtHandler
*) src
;
110 return (void *) dest
;
113 static void *SwigwxStatusBarTowxObject(void *ptr
) {
116 src
= (wxStatusBar
*) ptr
;
117 dest
= (wxObject
*) src
;
118 return (void *) dest
;
121 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
122 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
123 PyObject
* _resultobj
;
124 wxStatusBar
* _result
;
126 wxWindowID _arg1
= (wxWindowID
) -1;
127 long _arg2
= (long ) wxST_SIZEGRIP
;
128 char * _arg3
= (char *) "statusBar";
129 PyObject
* _argo0
= 0;
130 char *_kwnames
[] = { "parent","id","style","name", NULL
};
134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ils:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
145 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,_arg3
);
147 wxPyEndAllowThreads(__tstate
);
148 if (PyErr_Occurred()) return NULL
;
150 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
151 _resultobj
= Py_BuildValue("s",_ptemp
);
154 _resultobj
= Py_None
;
159 #define new_wxPreStatusBar() (new wxStatusBar())
160 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
161 PyObject
* _resultobj
;
162 wxStatusBar
* _result
;
163 char *_kwnames
[] = { NULL
};
167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
171 _result
= (wxStatusBar
*)new_wxPreStatusBar();
173 wxPyEndAllowThreads(__tstate
);
174 if (PyErr_Occurred()) return NULL
;
176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
177 _resultobj
= Py_BuildValue("s",_ptemp
);
180 _resultobj
= Py_None
;
185 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
186 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
187 PyObject
* _resultobj
;
192 long _arg3
= (long ) wxST_SIZEGRIP
;
193 char * _arg4
= (char *) "statusBar";
194 PyObject
* _argo0
= 0;
195 PyObject
* _argo1
= 0;
196 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
209 if (_argo1
== Py_None
) { _arg1
= NULL
; }
210 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
217 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
219 wxPyEndAllowThreads(__tstate
);
220 if (PyErr_Occurred()) return NULL
;
221 } _resultobj
= Py_BuildValue("i",_result
);
225 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
226 wxRect
* rect
= new wxRect
;
227 self
->GetFieldRect(item
, *rect
);
230 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
235 PyObject
* _argo0
= 0;
236 char *_kwnames
[] = { "self","item", NULL
};
240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
251 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
253 wxPyEndAllowThreads(__tstate
);
254 if (PyErr_Occurred()) return NULL
;
256 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
257 _resultobj
= Py_BuildValue("s",_ptemp
);
260 _resultobj
= Py_None
;
265 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
266 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
267 PyObject
* _resultobj
;
270 PyObject
* _argo0
= 0;
271 char *_kwnames
[] = { "self", NULL
};
274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
285 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
287 wxPyEndAllowThreads(__tstate
);
288 if (PyErr_Occurred()) return NULL
;
289 } _resultobj
= Py_BuildValue("i",_result
);
293 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
294 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
295 PyObject
* _resultobj
;
298 int _arg1
= (int ) 0;
299 PyObject
* _argo0
= 0;
300 char *_kwnames
[] = { "self","ir", NULL
};
303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
314 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
316 wxPyEndAllowThreads(__tstate
);
317 if (PyErr_Occurred()) return NULL
;
319 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
327 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
328 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
329 PyObject
* _resultobj
;
332 PyObject
* _argo0
= 0;
333 char *_kwnames
[] = { "self", NULL
};
336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
347 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
349 wxPyEndAllowThreads(__tstate
);
350 if (PyErr_Occurred()) return NULL
;
351 } _resultobj
= Py_BuildValue("i",_result
);
355 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
356 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
357 PyObject
* _resultobj
;
360 PyObject
* _argo0
= 0;
361 char *_kwnames
[] = { "self", NULL
};
364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
375 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
377 wxPyEndAllowThreads(__tstate
);
378 if (PyErr_Occurred()) return NULL
;
379 } _resultobj
= Py_BuildValue("i",_result
);
383 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
384 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
385 PyObject
* _resultobj
;
387 int _arg1
= (int ) 1;
388 PyObject
* _argo0
= 0;
389 char *_kwnames
[] = { "self","number", NULL
};
392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
403 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
405 wxPyEndAllowThreads(__tstate
);
406 if (PyErr_Occurred()) return NULL
;
407 } Py_INCREF(Py_None
);
408 _resultobj
= Py_None
;
412 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
413 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
414 PyObject
* _resultobj
;
417 int _arg2
= (int ) 0;
418 PyObject
* _argo0
= 0;
419 PyObject
* _obj1
= 0;
420 char *_kwnames
[] = { "self","text","i", NULL
};
423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
433 #if PYTHON_API_VERSION >= 1009
434 char* tmpPtr
; int tmpSize
;
435 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
436 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
439 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
441 _arg1
= new wxString(tmpPtr
, tmpSize
);
443 if (!PyString_Check(_obj1
)) {
444 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
447 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
452 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
454 wxPyEndAllowThreads(__tstate
);
455 if (PyErr_Occurred()) return NULL
;
456 } Py_INCREF(Py_None
);
457 _resultobj
= Py_None
;
465 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
466 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
467 PyObject
* _resultobj
;
471 PyObject
* _argo0
= 0;
472 PyObject
* _obj2
= 0;
473 char *_kwnames
[] = { "self","choices", NULL
};
476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
487 _arg2
= int_LIST_helper(_obj2
);
494 _arg1
= PyList_Size(_obj2
);
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 } Py_INCREF(Py_None
);
507 _resultobj
= Py_None
;
514 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
515 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
519 PyObject
* _argo0
= 0;
520 char *_kwnames
[] = { "self","height", NULL
};
523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
534 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
536 wxPyEndAllowThreads(__tstate
);
537 if (PyErr_Occurred()) return NULL
;
538 } Py_INCREF(Py_None
);
539 _resultobj
= Py_None
;
543 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
544 wxToolBarToolBase
*src
;
546 src
= (wxToolBarToolBase
*) ptr
;
547 dest
= (wxObject
*) src
;
548 return (void *) dest
;
551 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
552 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
554 wxToolBarToolBase
* _arg0
;
555 PyObject
* _argo0
= 0;
556 char *_kwnames
[] = { "self", NULL
};
559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
570 wxToolBarToolBase_Destroy(_arg0
);
572 wxPyEndAllowThreads(__tstate
);
573 if (PyErr_Occurred()) return NULL
;
574 } Py_INCREF(Py_None
);
575 _resultobj
= Py_None
;
579 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
580 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
583 wxToolBarToolBase
* _arg0
;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "self", NULL
};
588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
603 } _resultobj
= Py_BuildValue("i",_result
);
607 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
608 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
609 PyObject
* _resultobj
;
611 wxToolBarToolBase
* _arg0
;
612 PyObject
* _argo0
= 0;
613 char *_kwnames
[] = { "self", NULL
};
616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
627 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
629 wxPyEndAllowThreads(__tstate
);
630 if (PyErr_Occurred()) return NULL
;
631 }{ _resultobj
= wxPyMake_wxObject(_result
); }
635 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
636 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
637 PyObject
* _resultobj
;
638 wxToolBarBase
* _result
;
639 wxToolBarToolBase
* _arg0
;
640 PyObject
* _argo0
= 0;
641 char *_kwnames
[] = { "self", NULL
};
644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
655 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
657 wxPyEndAllowThreads(__tstate
);
658 if (PyErr_Occurred()) return NULL
;
659 }{ _resultobj
= wxPyMake_wxObject(_result
); }
663 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
664 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
665 PyObject
* _resultobj
;
667 wxToolBarToolBase
* _arg0
;
668 PyObject
* _argo0
= 0;
669 char *_kwnames
[] = { "self", NULL
};
672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
683 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
685 wxPyEndAllowThreads(__tstate
);
686 if (PyErr_Occurred()) return NULL
;
687 } _resultobj
= Py_BuildValue("i",_result
);
691 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
692 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
693 PyObject
* _resultobj
;
695 wxToolBarToolBase
* _arg0
;
696 PyObject
* _argo0
= 0;
697 char *_kwnames
[] = { "self", NULL
};
700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
711 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
713 wxPyEndAllowThreads(__tstate
);
714 if (PyErr_Occurred()) return NULL
;
715 } _resultobj
= Py_BuildValue("i",_result
);
719 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
720 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
721 PyObject
* _resultobj
;
723 wxToolBarToolBase
* _arg0
;
724 PyObject
* _argo0
= 0;
725 char *_kwnames
[] = { "self", NULL
};
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
739 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
741 wxPyEndAllowThreads(__tstate
);
742 if (PyErr_Occurred()) return NULL
;
743 } _resultobj
= Py_BuildValue("i",_result
);
747 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
748 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
749 PyObject
* _resultobj
;
751 wxToolBarToolBase
* _arg0
;
752 PyObject
* _argo0
= 0;
753 char *_kwnames
[] = { "self", NULL
};
756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
767 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
769 wxPyEndAllowThreads(__tstate
);
770 if (PyErr_Occurred()) return NULL
;
771 } _resultobj
= Py_BuildValue("i",_result
);
775 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
776 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
777 PyObject
* _resultobj
;
779 wxToolBarToolBase
* _arg0
;
780 PyObject
* _argo0
= 0;
781 char *_kwnames
[] = { "self", NULL
};
784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
795 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
797 wxPyEndAllowThreads(__tstate
);
798 if (PyErr_Occurred()) return NULL
;
799 } _resultobj
= Py_BuildValue("i",_result
);
803 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
804 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
805 PyObject
* _resultobj
;
807 wxToolBarToolBase
* _arg0
;
808 PyObject
* _argo0
= 0;
809 char *_kwnames
[] = { "self", NULL
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
823 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
825 wxPyEndAllowThreads(__tstate
);
826 if (PyErr_Occurred()) return NULL
;
827 } _resultobj
= Py_BuildValue("i",_result
);
831 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
832 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
833 PyObject
* _resultobj
;
835 wxToolBarToolBase
* _arg0
;
836 PyObject
* _argo0
= 0;
837 char *_kwnames
[] = { "self", NULL
};
840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
851 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
853 wxPyEndAllowThreads(__tstate
);
854 if (PyErr_Occurred()) return NULL
;
855 } _resultobj
= Py_BuildValue("i",_result
);
859 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
860 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
861 PyObject
* _resultobj
;
863 wxToolBarToolBase
* _arg0
;
864 PyObject
* _argo0
= 0;
865 char *_kwnames
[] = { "self", NULL
};
869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
880 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap1(_arg0
));
882 wxPyEndAllowThreads(__tstate
);
883 if (PyErr_Occurred()) return NULL
;
884 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
885 _resultobj
= Py_BuildValue("s",_ptemp
);
889 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
890 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
891 PyObject
* _resultobj
;
893 wxToolBarToolBase
* _arg0
;
894 PyObject
* _argo0
= 0;
895 char *_kwnames
[] = { "self", NULL
};
899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
910 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap2(_arg0
));
912 wxPyEndAllowThreads(__tstate
);
913 if (PyErr_Occurred()) return NULL
;
914 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
915 _resultobj
= Py_BuildValue("s",_ptemp
);
919 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
920 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
921 PyObject
* _resultobj
;
923 wxToolBarToolBase
* _arg0
;
924 PyObject
* _argo0
= 0;
925 char *_kwnames
[] = { "self", NULL
};
929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
939 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
940 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
942 wxPyEndAllowThreads(__tstate
);
943 if (PyErr_Occurred()) return NULL
;
944 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
945 _resultobj
= Py_BuildValue("s",_ptemp
);
949 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
950 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
951 PyObject
* _resultobj
;
953 wxToolBarToolBase
* _arg0
;
954 PyObject
* _argo0
= 0;
955 char *_kwnames
[] = { "self", NULL
};
958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
968 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
969 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
971 wxPyEndAllowThreads(__tstate
);
972 if (PyErr_Occurred()) return NULL
;
974 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
982 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
983 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
984 PyObject
* _resultobj
;
986 wxToolBarToolBase
* _arg0
;
987 PyObject
* _argo0
= 0;
988 char *_kwnames
[] = { "self", NULL
};
991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1001 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1002 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1004 wxPyEndAllowThreads(__tstate
);
1005 if (PyErr_Occurred()) return NULL
;
1007 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1015 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1016 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1017 PyObject
* _resultobj
;
1019 wxToolBarToolBase
* _arg0
;
1021 PyObject
* _argo0
= 0;
1023 char *_kwnames
[] = { "self","enable", NULL
};
1026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1035 _arg1
= (bool ) tempbool1
;
1037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1038 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1040 wxPyEndAllowThreads(__tstate
);
1041 if (PyErr_Occurred()) return NULL
;
1042 } _resultobj
= Py_BuildValue("i",_result
);
1046 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1047 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1048 PyObject
* _resultobj
;
1050 wxToolBarToolBase
* _arg0
;
1052 PyObject
* _argo0
= 0;
1054 char *_kwnames
[] = { "self","toggle", NULL
};
1057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1066 _arg1
= (bool ) tempbool1
;
1068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1069 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1071 wxPyEndAllowThreads(__tstate
);
1072 if (PyErr_Occurred()) return NULL
;
1073 } _resultobj
= Py_BuildValue("i",_result
);
1077 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1078 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1079 PyObject
* _resultobj
;
1081 wxToolBarToolBase
* _arg0
;
1083 PyObject
* _argo0
= 0;
1085 char *_kwnames
[] = { "self","toggle", NULL
};
1088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1097 _arg1
= (bool ) tempbool1
;
1099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1100 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1102 wxPyEndAllowThreads(__tstate
);
1103 if (PyErr_Occurred()) return NULL
;
1104 } _resultobj
= Py_BuildValue("i",_result
);
1108 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1109 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1110 PyObject
* _resultobj
;
1112 wxToolBarToolBase
* _arg0
;
1114 PyObject
* _argo0
= 0;
1115 PyObject
* _obj1
= 0;
1116 char *_kwnames
[] = { "self","help", NULL
};
1119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1129 #if PYTHON_API_VERSION >= 1009
1130 char* tmpPtr
; int tmpSize
;
1131 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1132 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1135 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1137 _arg1
= new wxString(tmpPtr
, tmpSize
);
1139 if (!PyString_Check(_obj1
)) {
1140 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1143 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1147 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1148 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1150 wxPyEndAllowThreads(__tstate
);
1151 if (PyErr_Occurred()) return NULL
;
1152 } _resultobj
= Py_BuildValue("i",_result
);
1160 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1161 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1162 PyObject
* _resultobj
;
1164 wxToolBarToolBase
* _arg0
;
1166 PyObject
* _argo0
= 0;
1167 PyObject
* _obj1
= 0;
1168 char *_kwnames
[] = { "self","help", NULL
};
1171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1181 #if PYTHON_API_VERSION >= 1009
1182 char* tmpPtr
; int tmpSize
;
1183 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1184 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1187 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1189 _arg1
= new wxString(tmpPtr
, tmpSize
);
1191 if (!PyString_Check(_obj1
)) {
1192 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1195 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1200 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1202 wxPyEndAllowThreads(__tstate
);
1203 if (PyErr_Occurred()) return NULL
;
1204 } _resultobj
= Py_BuildValue("i",_result
);
1212 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1213 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1214 PyObject
* _resultobj
;
1215 wxToolBarToolBase
* _arg0
;
1217 PyObject
* _argo0
= 0;
1218 PyObject
* _argo1
= 0;
1219 char *_kwnames
[] = { "self","bmp", NULL
};
1222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
1225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1232 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1233 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1240 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1242 wxPyEndAllowThreads(__tstate
);
1243 if (PyErr_Occurred()) return NULL
;
1244 } Py_INCREF(Py_None
);
1245 _resultobj
= Py_None
;
1249 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1250 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1251 PyObject
* _resultobj
;
1252 wxToolBarToolBase
* _arg0
;
1254 PyObject
* _argo0
= 0;
1255 PyObject
* _argo1
= 0;
1256 char *_kwnames
[] = { "self","bmp", NULL
};
1259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1269 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1270 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1276 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1277 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1279 wxPyEndAllowThreads(__tstate
);
1280 if (PyErr_Occurred()) return NULL
;
1281 } Py_INCREF(Py_None
);
1282 _resultobj
= Py_None
;
1286 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1287 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1288 PyObject
* _resultobj
;
1289 wxToolBarToolBase
* _arg0
;
1290 PyObject
* _argo0
= 0;
1291 char *_kwnames
[] = { "self", NULL
};
1294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1305 wxToolBarToolBase_Detach(_arg0
);
1307 wxPyEndAllowThreads(__tstate
);
1308 if (PyErr_Occurred()) return NULL
;
1309 } Py_INCREF(Py_None
);
1310 _resultobj
= Py_None
;
1314 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1315 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1316 PyObject
* _resultobj
;
1317 wxToolBarToolBase
* _arg0
;
1318 wxToolBarBase
* _arg1
;
1319 PyObject
* _argo0
= 0;
1320 PyObject
* _argo1
= 0;
1321 char *_kwnames
[] = { "self","tbar", NULL
};
1324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1334 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1335 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1342 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1344 wxPyEndAllowThreads(__tstate
);
1345 if (PyErr_Occurred()) return NULL
;
1346 } Py_INCREF(Py_None
);
1347 _resultobj
= Py_None
;
1351 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1352 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1354 Py_INCREF(udata
->m_obj
);
1355 return udata
->m_obj
;
1361 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1362 PyObject
* _resultobj
;
1364 wxToolBarToolBase
* _arg0
;
1365 PyObject
* _argo0
= 0;
1366 char *_kwnames
[] = { "self", NULL
};
1369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1380 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1382 wxPyEndAllowThreads(__tstate
);
1383 if (PyErr_Occurred()) return NULL
;
1385 _resultobj
= _result
;
1390 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1391 self
->SetClientData(new wxPyUserData(clientData
));
1393 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1395 wxToolBarToolBase
* _arg0
;
1397 PyObject
* _argo0
= 0;
1398 PyObject
* _obj1
= 0;
1399 char *_kwnames
[] = { "self","clientData", NULL
};
1402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1416 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1418 wxPyEndAllowThreads(__tstate
);
1419 if (PyErr_Occurred()) return NULL
;
1420 } Py_INCREF(Py_None
);
1421 _resultobj
= Py_None
;
1425 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1428 src
= (wxToolBarBase
*) ptr
;
1429 dest
= (wxControl
*) src
;
1430 return (void *) dest
;
1433 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1436 src
= (wxToolBarBase
*) ptr
;
1437 dest
= (wxWindow
*) src
;
1438 return (void *) dest
;
1441 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1444 src
= (wxToolBarBase
*) ptr
;
1445 dest
= (wxEvtHandler
*) src
;
1446 return (void *) dest
;
1449 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1452 src
= (wxToolBarBase
*) ptr
;
1453 dest
= (wxObject
*) src
;
1454 return (void *) dest
;
1457 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1458 wxPyUserData
* udata
= NULL
;
1460 udata
= new wxPyUserData(clientData
);
1461 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1462 udata
, shortHelpString
, longHelpString
);
1464 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1465 PyObject
* _resultobj
;
1466 wxToolBarToolBase
* _result
;
1467 wxToolBarBase
* _arg0
;
1470 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1471 int _arg4
= (int ) FALSE
;
1472 PyObject
* _arg5
= (PyObject
*) NULL
;
1473 wxString
* _arg6
= (wxString
*) &wxEmptyString
;
1474 wxString
* _arg7
= (wxString
*) &wxEmptyString
;
1475 PyObject
* _argo0
= 0;
1476 PyObject
* _argo2
= 0;
1477 PyObject
* _argo3
= 0;
1478 PyObject
* _obj5
= 0;
1479 PyObject
* _obj6
= 0;
1480 PyObject
* _obj7
= 0;
1481 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1494 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1495 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1501 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1502 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1513 #if PYTHON_API_VERSION >= 1009
1514 char* tmpPtr
; int tmpSize
;
1515 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1516 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1519 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1521 _arg6
= new wxString(tmpPtr
, tmpSize
);
1523 if (!PyString_Check(_obj6
)) {
1524 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1527 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1532 #if PYTHON_API_VERSION >= 1009
1533 char* tmpPtr
; int tmpSize
;
1534 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1535 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1538 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1540 _arg7
= new wxString(tmpPtr
, tmpSize
);
1542 if (!PyString_Check(_obj7
)) {
1543 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1546 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1550 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1551 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1553 wxPyEndAllowThreads(__tstate
);
1554 if (PyErr_Occurred()) return NULL
;
1555 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1567 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1568 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1569 shortHelpString
, longHelpString
);
1571 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1572 PyObject
* _resultobj
;
1573 wxToolBarToolBase
* _result
;
1574 wxToolBarBase
* _arg0
;
1577 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
1578 wxString
* _arg4
= (wxString
*) &wxEmptyString
;
1579 int _arg5
= (int ) FALSE
;
1580 PyObject
* _argo0
= 0;
1581 PyObject
* _argo2
= 0;
1582 PyObject
* _obj3
= 0;
1583 PyObject
* _obj4
= 0;
1584 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1597 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1598 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1605 #if PYTHON_API_VERSION >= 1009
1606 char* tmpPtr
; int tmpSize
;
1607 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1608 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1611 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1613 _arg3
= new wxString(tmpPtr
, tmpSize
);
1615 if (!PyString_Check(_obj3
)) {
1616 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1619 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1624 #if PYTHON_API_VERSION >= 1009
1625 char* tmpPtr
; int tmpSize
;
1626 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1627 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1630 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1632 _arg4
= new wxString(tmpPtr
, tmpSize
);
1634 if (!PyString_Check(_obj4
)) {
1635 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1638 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1643 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1645 wxPyEndAllowThreads(__tstate
);
1646 if (PyErr_Occurred()) return NULL
;
1647 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1659 static wxToolBarToolBase
* wxToolBarBase_InsertTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1660 wxPyUserData
* udata
= NULL
;
1662 udata
= new wxPyUserData(clientData
);
1663 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1664 udata
, shortHelpString
, longHelpString
);
1666 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1667 PyObject
* _resultobj
;
1668 wxToolBarToolBase
* _result
;
1669 wxToolBarBase
* _arg0
;
1673 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1674 int _arg5
= (int ) FALSE
;
1675 PyObject
* _arg6
= (PyObject
*) NULL
;
1676 wxString
* _arg7
= (wxString
*) &wxEmptyString
;
1677 wxString
* _arg8
= (wxString
*) &wxEmptyString
;
1678 PyObject
* _argo0
= 0;
1679 PyObject
* _argo3
= 0;
1680 PyObject
* _argo4
= 0;
1681 PyObject
* _obj6
= 0;
1682 PyObject
* _obj7
= 0;
1683 PyObject
* _obj8
= 0;
1684 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1697 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1698 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1704 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1705 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1716 #if PYTHON_API_VERSION >= 1009
1717 char* tmpPtr
; int tmpSize
;
1718 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1719 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1722 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1724 _arg7
= new wxString(tmpPtr
, tmpSize
);
1726 if (!PyString_Check(_obj7
)) {
1727 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1730 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1735 #if PYTHON_API_VERSION >= 1009
1736 char* tmpPtr
; int tmpSize
;
1737 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1738 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1741 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1743 _arg8
= new wxString(tmpPtr
, tmpSize
);
1745 if (!PyString_Check(_obj8
)) {
1746 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1749 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1754 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1756 wxPyEndAllowThreads(__tstate
);
1757 if (PyErr_Occurred()) return NULL
;
1758 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1770 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1771 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1772 shortHelpString
, longHelpString
);
1774 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1775 PyObject
* _resultobj
;
1776 wxToolBarToolBase
* _result
;
1777 wxToolBarBase
* _arg0
;
1781 wxString
* _arg4
= (wxString
*) &wxEmptyString
;
1782 wxString
* _arg5
= (wxString
*) &wxEmptyString
;
1783 int _arg6
= (int ) FALSE
;
1784 PyObject
* _argo0
= 0;
1785 PyObject
* _argo3
= 0;
1786 PyObject
* _obj4
= 0;
1787 PyObject
* _obj5
= 0;
1788 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1801 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1802 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1809 #if PYTHON_API_VERSION >= 1009
1810 char* tmpPtr
; int tmpSize
;
1811 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1812 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1815 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1817 _arg4
= new wxString(tmpPtr
, tmpSize
);
1819 if (!PyString_Check(_obj4
)) {
1820 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1823 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1828 #if PYTHON_API_VERSION >= 1009
1829 char* tmpPtr
; int tmpSize
;
1830 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1834 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1836 _arg5
= new wxString(tmpPtr
, tmpSize
);
1838 if (!PyString_Check(_obj5
)) {
1839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1842 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1847 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1849 wxPyEndAllowThreads(__tstate
);
1850 if (PyErr_Occurred()) return NULL
;
1851 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1863 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1864 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1865 PyObject
* _resultobj
;
1866 wxToolBarToolBase
* _result
;
1867 wxToolBarBase
* _arg0
;
1869 PyObject
* _argo0
= 0;
1870 PyObject
* _argo1
= 0;
1871 char *_kwnames
[] = { "self","control", NULL
};
1874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1884 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1885 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1892 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1894 wxPyEndAllowThreads(__tstate
);
1895 if (PyErr_Occurred()) return NULL
;
1896 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1900 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1901 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
* _resultobj
;
1903 wxToolBarToolBase
* _result
;
1904 wxToolBarBase
* _arg0
;
1907 PyObject
* _argo0
= 0;
1908 PyObject
* _argo2
= 0;
1909 char *_kwnames
[] = { "self","pos","control", NULL
};
1912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1922 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1923 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1930 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1932 wxPyEndAllowThreads(__tstate
);
1933 if (PyErr_Occurred()) return NULL
;
1934 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1938 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1939 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1941 wxToolBarToolBase
* _result
;
1942 wxToolBarBase
* _arg0
;
1943 PyObject
* _argo0
= 0;
1944 char *_kwnames
[] = { "self", NULL
};
1947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1958 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1960 wxPyEndAllowThreads(__tstate
);
1961 if (PyErr_Occurred()) return NULL
;
1962 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1966 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1967 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1968 PyObject
* _resultobj
;
1969 wxToolBarToolBase
* _result
;
1970 wxToolBarBase
* _arg0
;
1972 PyObject
* _argo0
= 0;
1973 char *_kwnames
[] = { "self","pos", NULL
};
1976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1987 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1989 wxPyEndAllowThreads(__tstate
);
1990 if (PyErr_Occurred()) return NULL
;
1991 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1995 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1996 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1997 PyObject
* _resultobj
;
1998 wxToolBarToolBase
* _result
;
1999 wxToolBarBase
* _arg0
;
2001 PyObject
* _argo0
= 0;
2002 char *_kwnames
[] = { "self","id", NULL
};
2005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2016 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2018 wxPyEndAllowThreads(__tstate
);
2019 if (PyErr_Occurred()) return NULL
;
2020 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2024 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2025 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2026 PyObject
* _resultobj
;
2028 wxToolBarBase
* _arg0
;
2030 PyObject
* _argo0
= 0;
2031 char *_kwnames
[] = { "self","pos", NULL
};
2034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2044 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2045 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2047 wxPyEndAllowThreads(__tstate
);
2048 if (PyErr_Occurred()) return NULL
;
2049 } _resultobj
= Py_BuildValue("i",_result
);
2053 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2054 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2055 PyObject
* _resultobj
;
2057 wxToolBarBase
* _arg0
;
2059 PyObject
* _argo0
= 0;
2060 char *_kwnames
[] = { "self","id", NULL
};
2063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2074 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2076 wxPyEndAllowThreads(__tstate
);
2077 if (PyErr_Occurred()) return NULL
;
2078 } _resultobj
= Py_BuildValue("i",_result
);
2082 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2083 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2084 PyObject
* _resultobj
;
2085 wxToolBarBase
* _arg0
;
2086 PyObject
* _argo0
= 0;
2087 char *_kwnames
[] = { "self", NULL
};
2090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2101 wxToolBarBase_ClearTools(_arg0
);
2103 wxPyEndAllowThreads(__tstate
);
2104 if (PyErr_Occurred()) return NULL
;
2105 } Py_INCREF(Py_None
);
2106 _resultobj
= Py_None
;
2110 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2111 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2112 PyObject
* _resultobj
;
2114 wxToolBarBase
* _arg0
;
2115 PyObject
* _argo0
= 0;
2116 char *_kwnames
[] = { "self", NULL
};
2119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2130 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2132 wxPyEndAllowThreads(__tstate
);
2133 if (PyErr_Occurred()) return NULL
;
2134 } _resultobj
= Py_BuildValue("i",_result
);
2138 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2139 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2140 PyObject
* _resultobj
;
2141 wxToolBarBase
* _arg0
;
2144 PyObject
* _argo0
= 0;
2146 char *_kwnames
[] = { "self","id","enable", NULL
};
2149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2158 _arg2
= (bool ) tempbool2
;
2160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2161 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2163 wxPyEndAllowThreads(__tstate
);
2164 if (PyErr_Occurred()) return NULL
;
2165 } Py_INCREF(Py_None
);
2166 _resultobj
= Py_None
;
2170 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2171 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2173 wxToolBarBase
* _arg0
;
2176 PyObject
* _argo0
= 0;
2178 char *_kwnames
[] = { "self","id","toggle", NULL
};
2181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2190 _arg2
= (bool ) tempbool2
;
2192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2193 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2195 wxPyEndAllowThreads(__tstate
);
2196 if (PyErr_Occurred()) return NULL
;
2197 } Py_INCREF(Py_None
);
2198 _resultobj
= Py_None
;
2202 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2203 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
* _resultobj
;
2205 wxToolBarBase
* _arg0
;
2208 PyObject
* _argo0
= 0;
2210 char *_kwnames
[] = { "self","id","toggle", NULL
};
2213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2222 _arg2
= (bool ) tempbool2
;
2224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2225 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2227 wxPyEndAllowThreads(__tstate
);
2228 if (PyErr_Occurred()) return NULL
;
2229 } Py_INCREF(Py_None
);
2230 _resultobj
= Py_None
;
2234 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2235 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2237 Py_INCREF(udata
->m_obj
);
2238 return udata
->m_obj
;
2244 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2245 PyObject
* _resultobj
;
2247 wxToolBarBase
* _arg0
;
2249 PyObject
* _argo0
= 0;
2250 char *_kwnames
[] = { "self","index", NULL
};
2253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2263 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2264 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2266 wxPyEndAllowThreads(__tstate
);
2267 if (PyErr_Occurred()) return NULL
;
2269 _resultobj
= _result
;
2274 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2275 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2277 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2279 wxToolBarBase
* _arg0
;
2282 PyObject
* _argo0
= 0;
2283 PyObject
* _obj2
= 0;
2284 char *_kwnames
[] = { "self","index","clientData", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2301 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2303 wxPyEndAllowThreads(__tstate
);
2304 if (PyErr_Occurred()) return NULL
;
2305 } Py_INCREF(Py_None
);
2306 _resultobj
= Py_None
;
2310 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2311 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2312 PyObject
* _resultobj
;
2314 wxToolBarBase
* _arg0
;
2316 PyObject
* _argo0
= 0;
2317 char *_kwnames
[] = { "self","id", NULL
};
2320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2331 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2333 wxPyEndAllowThreads(__tstate
);
2334 if (PyErr_Occurred()) return NULL
;
2335 } _resultobj
= Py_BuildValue("i",_result
);
2339 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2340 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2341 PyObject
* _resultobj
;
2343 wxToolBarBase
* _arg0
;
2345 PyObject
* _argo0
= 0;
2346 char *_kwnames
[] = { "self","id", NULL
};
2349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2360 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2362 wxPyEndAllowThreads(__tstate
);
2363 if (PyErr_Occurred()) return NULL
;
2364 } _resultobj
= Py_BuildValue("i",_result
);
2368 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2369 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2370 PyObject
* _resultobj
;
2371 wxToolBarBase
* _arg0
;
2374 PyObject
* _argo0
= 0;
2375 PyObject
* _obj2
= 0;
2376 char *_kwnames
[] = { "self","id","helpString", NULL
};
2379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2389 #if PYTHON_API_VERSION >= 1009
2390 char* tmpPtr
; int tmpSize
;
2391 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2392 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2395 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2397 _arg2
= new wxString(tmpPtr
, tmpSize
);
2399 if (!PyString_Check(_obj2
)) {
2400 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2403 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2408 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2410 wxPyEndAllowThreads(__tstate
);
2411 if (PyErr_Occurred()) return NULL
;
2412 } Py_INCREF(Py_None
);
2413 _resultobj
= Py_None
;
2421 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2422 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2423 PyObject
* _resultobj
;
2425 wxToolBarBase
* _arg0
;
2427 PyObject
* _argo0
= 0;
2428 char *_kwnames
[] = { "self","id", NULL
};
2431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2442 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2444 wxPyEndAllowThreads(__tstate
);
2445 if (PyErr_Occurred()) return NULL
;
2447 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2455 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2456 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2457 PyObject
* _resultobj
;
2458 wxToolBarBase
* _arg0
;
2461 PyObject
* _argo0
= 0;
2462 PyObject
* _obj2
= 0;
2463 char *_kwnames
[] = { "self","id","helpString", NULL
};
2466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2476 #if PYTHON_API_VERSION >= 1009
2477 char* tmpPtr
; int tmpSize
;
2478 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2479 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2482 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2484 _arg2
= new wxString(tmpPtr
, tmpSize
);
2486 if (!PyString_Check(_obj2
)) {
2487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2490 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2495 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2497 wxPyEndAllowThreads(__tstate
);
2498 if (PyErr_Occurred()) return NULL
;
2499 } Py_INCREF(Py_None
);
2500 _resultobj
= Py_None
;
2508 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2509 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2510 PyObject
* _resultobj
;
2512 wxToolBarBase
* _arg0
;
2514 PyObject
* _argo0
= 0;
2515 char *_kwnames
[] = { "self","id", NULL
};
2518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2529 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2531 wxPyEndAllowThreads(__tstate
);
2532 if (PyErr_Occurred()) return NULL
;
2534 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2542 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2543 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2544 PyObject
* _resultobj
;
2545 wxToolBarBase
* _arg0
;
2548 PyObject
* _argo0
= 0;
2549 char *_kwnames
[] = { "self","x","y", NULL
};
2552 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2562 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2563 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2565 wxPyEndAllowThreads(__tstate
);
2566 if (PyErr_Occurred()) return NULL
;
2567 } Py_INCREF(Py_None
);
2568 _resultobj
= Py_None
;
2572 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2573 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2574 PyObject
* _resultobj
;
2575 wxToolBarBase
* _arg0
;
2577 PyObject
* _argo0
= 0;
2579 PyObject
* _obj1
= 0;
2580 char *_kwnames
[] = { "self","size", NULL
};
2583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2594 if (! wxSize_helper(_obj1
, &_arg1
))
2598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2599 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2601 wxPyEndAllowThreads(__tstate
);
2602 if (PyErr_Occurred()) return NULL
;
2603 } Py_INCREF(Py_None
);
2604 _resultobj
= Py_None
;
2608 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2609 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2611 wxToolBarBase
* _arg0
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self","packing", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2628 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2630 wxPyEndAllowThreads(__tstate
);
2631 if (PyErr_Occurred()) return NULL
;
2632 } Py_INCREF(Py_None
);
2633 _resultobj
= Py_None
;
2637 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2638 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2639 PyObject
* _resultobj
;
2640 wxToolBarBase
* _arg0
;
2642 PyObject
* _argo0
= 0;
2643 char *_kwnames
[] = { "self","separation", NULL
};
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2657 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2659 wxPyEndAllowThreads(__tstate
);
2660 if (PyErr_Occurred()) return NULL
;
2661 } Py_INCREF(Py_None
);
2662 _resultobj
= Py_None
;
2666 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2667 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2668 PyObject
* _resultobj
;
2670 wxToolBarBase
* _arg0
;
2671 PyObject
* _argo0
= 0;
2672 char *_kwnames
[] = { "self", NULL
};
2676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2687 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2689 wxPyEndAllowThreads(__tstate
);
2690 if (PyErr_Occurred()) return NULL
;
2691 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2692 _resultobj
= Py_BuildValue("s",_ptemp
);
2696 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2697 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2698 PyObject
* _resultobj
;
2700 wxToolBarBase
* _arg0
;
2701 PyObject
* _argo0
= 0;
2702 char *_kwnames
[] = { "self", NULL
};
2706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2716 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2717 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2719 wxPyEndAllowThreads(__tstate
);
2720 if (PyErr_Occurred()) return NULL
;
2721 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2722 _resultobj
= Py_BuildValue("s",_ptemp
);
2726 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2727 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2728 PyObject
* _resultobj
;
2730 wxToolBarBase
* _arg0
;
2731 PyObject
* _argo0
= 0;
2732 char *_kwnames
[] = { "self", NULL
};
2735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2746 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2748 wxPyEndAllowThreads(__tstate
);
2749 if (PyErr_Occurred()) return NULL
;
2750 } _resultobj
= Py_BuildValue("i",_result
);
2754 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2755 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2756 PyObject
* _resultobj
;
2758 wxToolBarBase
* _arg0
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self", NULL
};
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2774 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2776 wxPyEndAllowThreads(__tstate
);
2777 if (PyErr_Occurred()) return NULL
;
2778 } _resultobj
= Py_BuildValue("i",_result
);
2782 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2783 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2784 PyObject
* _resultobj
;
2785 wxToolBarBase
* _arg0
;
2787 PyObject
* _argo0
= 0;
2788 char *_kwnames
[] = { "self","nRows", NULL
};
2791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2802 wxToolBarBase_SetRows(_arg0
,_arg1
);
2804 wxPyEndAllowThreads(__tstate
);
2805 if (PyErr_Occurred()) return NULL
;
2806 } Py_INCREF(Py_None
);
2807 _resultobj
= Py_None
;
2811 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2812 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2813 PyObject
* _resultobj
;
2814 wxToolBarBase
* _arg0
;
2817 PyObject
* _argo0
= 0;
2818 char *_kwnames
[] = { "self","rows","cols", NULL
};
2821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2832 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2834 wxPyEndAllowThreads(__tstate
);
2835 if (PyErr_Occurred()) return NULL
;
2836 } Py_INCREF(Py_None
);
2837 _resultobj
= Py_None
;
2841 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2842 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2845 wxToolBarBase
* _arg0
;
2846 PyObject
* _argo0
= 0;
2847 char *_kwnames
[] = { "self", NULL
};
2850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2860 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2861 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2863 wxPyEndAllowThreads(__tstate
);
2864 if (PyErr_Occurred()) return NULL
;
2865 } _resultobj
= Py_BuildValue("i",_result
);
2869 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2870 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2871 PyObject
* _resultobj
;
2873 wxToolBarBase
* _arg0
;
2874 PyObject
* _argo0
= 0;
2875 char *_kwnames
[] = { "self", NULL
};
2878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2888 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2889 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2891 wxPyEndAllowThreads(__tstate
);
2892 if (PyErr_Occurred()) return NULL
;
2893 } _resultobj
= Py_BuildValue("i",_result
);
2897 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2898 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2899 PyObject
* _resultobj
;
2900 wxToolBarBase
* _arg0
;
2902 PyObject
* _argo0
= 0;
2904 PyObject
* _obj1
= 0;
2905 char *_kwnames
[] = { "self","size", NULL
};
2908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
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_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2919 if (! wxSize_helper(_obj1
, &_arg1
))
2923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2924 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2926 wxPyEndAllowThreads(__tstate
);
2927 if (PyErr_Occurred()) return NULL
;
2928 } Py_INCREF(Py_None
);
2929 _resultobj
= Py_None
;
2933 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2934 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2935 PyObject
* _resultobj
;
2937 wxToolBarBase
* _arg0
;
2938 PyObject
* _argo0
= 0;
2939 char *_kwnames
[] = { "self", NULL
};
2943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2954 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2956 wxPyEndAllowThreads(__tstate
);
2957 if (PyErr_Occurred()) return NULL
;
2958 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2959 _resultobj
= Py_BuildValue("s",_ptemp
);
2963 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2964 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2965 PyObject
* _resultobj
;
2967 wxToolBarBase
* _arg0
;
2968 PyObject
* _argo0
= 0;
2969 char *_kwnames
[] = { "self", NULL
};
2973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2984 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2986 wxPyEndAllowThreads(__tstate
);
2987 if (PyErr_Occurred()) return NULL
;
2988 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2989 _resultobj
= Py_BuildValue("s",_ptemp
);
2993 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
2995 wxToolBarBase
*dest
;
2996 src
= (wxToolBar
*) ptr
;
2997 dest
= (wxToolBarBase
*) src
;
2998 return (void *) dest
;
3001 static void *SwigwxToolBarTowxControl(void *ptr
) {
3004 src
= (wxToolBar
*) ptr
;
3005 dest
= (wxControl
*) src
;
3006 return (void *) dest
;
3009 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3012 src
= (wxToolBar
*) ptr
;
3013 dest
= (wxWindow
*) src
;
3014 return (void *) dest
;
3017 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3020 src
= (wxToolBar
*) ptr
;
3021 dest
= (wxEvtHandler
*) src
;
3022 return (void *) dest
;
3025 static void *SwigwxToolBarTowxObject(void *ptr
) {
3028 src
= (wxToolBar
*) ptr
;
3029 dest
= (wxObject
*) src
;
3030 return (void *) dest
;
3033 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3034 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3035 PyObject
* _resultobj
;
3036 wxToolBar
* _result
;
3039 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3040 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3041 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3042 char * _arg5
= (char *) wxToolBarNameStr
;
3043 PyObject
* _argo0
= 0;
3045 PyObject
* _obj2
= 0;
3047 PyObject
* _obj3
= 0;
3048 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3064 if (! wxPoint_helper(_obj2
, &_arg2
))
3070 if (! wxSize_helper(_obj3
, &_arg3
))
3074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3075 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3077 wxPyEndAllowThreads(__tstate
);
3078 if (PyErr_Occurred()) return NULL
;
3080 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3081 _resultobj
= Py_BuildValue("s",_ptemp
);
3084 _resultobj
= Py_None
;
3089 #define new_wxPreToolBar() (new wxToolBar())
3090 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3091 PyObject
* _resultobj
;
3092 wxToolBar
* _result
;
3093 char *_kwnames
[] = { NULL
};
3097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3101 _result
= (wxToolBar
*)new_wxPreToolBar();
3103 wxPyEndAllowThreads(__tstate
);
3104 if (PyErr_Occurred()) return NULL
;
3106 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3107 _resultobj
= Py_BuildValue("s",_ptemp
);
3110 _resultobj
= Py_None
;
3115 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3116 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3117 PyObject
* _resultobj
;
3122 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3123 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3124 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3125 char * _arg6
= (char *) wxToolBarNameStr
;
3126 PyObject
* _argo0
= 0;
3127 PyObject
* _argo1
= 0;
3129 PyObject
* _obj3
= 0;
3131 PyObject
* _obj4
= 0;
3132 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3145 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3146 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3154 if (! wxPoint_helper(_obj3
, &_arg3
))
3160 if (! wxSize_helper(_obj4
, &_arg4
))
3164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3165 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3167 wxPyEndAllowThreads(__tstate
);
3168 if (PyErr_Occurred()) return NULL
;
3169 } _resultobj
= Py_BuildValue("i",_result
);
3173 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3174 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3175 PyObject
* _resultobj
;
3176 wxToolBarToolBase
* _result
;
3180 PyObject
* _argo0
= 0;
3181 char *_kwnames
[] = { "self","x","y", NULL
};
3184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3195 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3197 wxPyEndAllowThreads(__tstate
);
3198 if (PyErr_Occurred()) return NULL
;
3199 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3203 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3204 wxToolBarSimple
*src
;
3205 wxToolBarBase
*dest
;
3206 src
= (wxToolBarSimple
*) ptr
;
3207 dest
= (wxToolBarBase
*) src
;
3208 return (void *) dest
;
3211 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3212 wxToolBarSimple
*src
;
3214 src
= (wxToolBarSimple
*) ptr
;
3215 dest
= (wxControl
*) src
;
3216 return (void *) dest
;
3219 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3220 wxToolBarSimple
*src
;
3222 src
= (wxToolBarSimple
*) ptr
;
3223 dest
= (wxWindow
*) src
;
3224 return (void *) dest
;
3227 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3228 wxToolBarSimple
*src
;
3230 src
= (wxToolBarSimple
*) ptr
;
3231 dest
= (wxEvtHandler
*) src
;
3232 return (void *) dest
;
3235 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3236 wxToolBarSimple
*src
;
3238 src
= (wxToolBarSimple
*) ptr
;
3239 dest
= (wxObject
*) src
;
3240 return (void *) dest
;
3243 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3244 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3245 PyObject
* _resultobj
;
3246 wxToolBarSimple
* _result
;
3249 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3250 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3251 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3252 char * _arg5
= (char *) wxToolBarNameStr
;
3253 PyObject
* _argo0
= 0;
3255 PyObject
* _obj2
= 0;
3257 PyObject
* _obj3
= 0;
3258 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3274 if (! wxPoint_helper(_obj2
, &_arg2
))
3280 if (! wxSize_helper(_obj3
, &_arg3
))
3284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3285 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3287 wxPyEndAllowThreads(__tstate
);
3288 if (PyErr_Occurred()) return NULL
;
3290 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3291 _resultobj
= Py_BuildValue("s",_ptemp
);
3294 _resultobj
= Py_None
;
3299 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3300 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3301 PyObject
* _resultobj
;
3302 wxToolBarSimple
* _result
;
3303 char *_kwnames
[] = { NULL
};
3307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3311 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) return NULL
;
3316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3317 _resultobj
= Py_BuildValue("s",_ptemp
);
3320 _resultobj
= Py_None
;
3325 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3326 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3327 PyObject
* _resultobj
;
3329 wxToolBarSimple
* _arg0
;
3332 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3333 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3334 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3335 char * _arg6
= (char *) wxToolBarNameStr
;
3336 PyObject
* _argo0
= 0;
3337 PyObject
* _argo1
= 0;
3339 PyObject
* _obj3
= 0;
3341 PyObject
* _obj4
= 0;
3342 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3355 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3356 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3364 if (! wxPoint_helper(_obj3
, &_arg3
))
3370 if (! wxSize_helper(_obj4
, &_arg4
))
3374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3375 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3377 wxPyEndAllowThreads(__tstate
);
3378 if (PyErr_Occurred()) return NULL
;
3379 } _resultobj
= Py_BuildValue("i",_result
);
3383 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3384 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3385 PyObject
* _resultobj
;
3386 wxToolBarToolBase
* _result
;
3387 wxToolBarSimple
* _arg0
;
3390 PyObject
* _argo0
= 0;
3391 char *_kwnames
[] = { "self","x","y", NULL
};
3394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3405 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3407 wxPyEndAllowThreads(__tstate
);
3408 if (PyErr_Occurred()) return NULL
;
3409 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3413 static PyMethodDef stattoolcMethods
[] = {
3414 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3415 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3416 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3417 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3418 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3419 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3420 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3421 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3422 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3423 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3424 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3425 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3426 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3427 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3428 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3429 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3430 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3506 * This table is used by the pointer type-checker
3508 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3509 { "_signed_long","_long",0},
3510 { "_wxPrintQuality","_wxCoord",0},
3511 { "_wxPrintQuality","_int",0},
3512 { "_wxPrintQuality","_signed_int",0},
3513 { "_wxPrintQuality","_unsigned_int",0},
3514 { "_wxPrintQuality","_wxWindowID",0},
3515 { "_wxPrintQuality","_uint",0},
3516 { "_wxPrintQuality","_EBool",0},
3517 { "_wxPrintQuality","_size_t",0},
3518 { "_wxPrintQuality","_time_t",0},
3519 { "_byte","_unsigned_char",0},
3520 { "_long","_unsigned_long",0},
3521 { "_long","_signed_long",0},
3522 { "_size_t","_wxCoord",0},
3523 { "_size_t","_wxPrintQuality",0},
3524 { "_size_t","_time_t",0},
3525 { "_size_t","_unsigned_int",0},
3526 { "_size_t","_int",0},
3527 { "_size_t","_wxWindowID",0},
3528 { "_size_t","_uint",0},
3529 { "_uint","_wxCoord",0},
3530 { "_uint","_wxPrintQuality",0},
3531 { "_uint","_time_t",0},
3532 { "_uint","_size_t",0},
3533 { "_uint","_unsigned_int",0},
3534 { "_uint","_int",0},
3535 { "_uint","_wxWindowID",0},
3536 { "_wxChar","_char",0},
3537 { "_char","_wxChar",0},
3538 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3539 { "_EBool","_wxCoord",0},
3540 { "_EBool","_wxPrintQuality",0},
3541 { "_EBool","_signed_int",0},
3542 { "_EBool","_int",0},
3543 { "_EBool","_wxWindowID",0},
3544 { "_unsigned_long","_long",0},
3545 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3546 { "_signed_int","_wxCoord",0},
3547 { "_signed_int","_wxPrintQuality",0},
3548 { "_signed_int","_EBool",0},
3549 { "_signed_int","_wxWindowID",0},
3550 { "_signed_int","_int",0},
3551 { "_WXTYPE","_short",0},
3552 { "_WXTYPE","_signed_short",0},
3553 { "_WXTYPE","_unsigned_short",0},
3554 { "_unsigned_short","_WXTYPE",0},
3555 { "_unsigned_short","_short",0},
3556 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3557 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3558 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3559 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3560 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3561 { "_signed_short","_WXTYPE",0},
3562 { "_signed_short","_short",0},
3563 { "_unsigned_char","_byte",0},
3564 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3565 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3566 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3567 { "_unsigned_int","_wxCoord",0},
3568 { "_unsigned_int","_wxPrintQuality",0},
3569 { "_unsigned_int","_time_t",0},
3570 { "_unsigned_int","_size_t",0},
3571 { "_unsigned_int","_uint",0},
3572 { "_unsigned_int","_wxWindowID",0},
3573 { "_unsigned_int","_int",0},
3574 { "_short","_WXTYPE",0},
3575 { "_short","_unsigned_short",0},
3576 { "_short","_signed_short",0},
3577 { "_wxWindowID","_wxCoord",0},
3578 { "_wxWindowID","_wxPrintQuality",0},
3579 { "_wxWindowID","_time_t",0},
3580 { "_wxWindowID","_size_t",0},
3581 { "_wxWindowID","_EBool",0},
3582 { "_wxWindowID","_uint",0},
3583 { "_wxWindowID","_int",0},
3584 { "_wxWindowID","_signed_int",0},
3585 { "_wxWindowID","_unsigned_int",0},
3586 { "_int","_wxCoord",0},
3587 { "_int","_wxPrintQuality",0},
3588 { "_int","_time_t",0},
3589 { "_int","_size_t",0},
3590 { "_int","_EBool",0},
3591 { "_int","_uint",0},
3592 { "_int","_wxWindowID",0},
3593 { "_int","_unsigned_int",0},
3594 { "_int","_signed_int",0},
3595 { "_time_t","_wxCoord",0},
3596 { "_time_t","_wxPrintQuality",0},
3597 { "_time_t","_unsigned_int",0},
3598 { "_time_t","_int",0},
3599 { "_time_t","_wxWindowID",0},
3600 { "_time_t","_uint",0},
3601 { "_time_t","_size_t",0},
3602 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3603 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3604 { "_wxCoord","_int",0},
3605 { "_wxCoord","_signed_int",0},
3606 { "_wxCoord","_unsigned_int",0},
3607 { "_wxCoord","_wxWindowID",0},
3608 { "_wxCoord","_uint",0},
3609 { "_wxCoord","_EBool",0},
3610 { "_wxCoord","_size_t",0},
3611 { "_wxCoord","_time_t",0},
3612 { "_wxCoord","_wxPrintQuality",0},
3613 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3614 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3615 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3616 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3617 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3618 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3619 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3620 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3623 static PyObject
*SWIG_globals
;
3627 SWIGEXPORT(void) initstattoolc() {
3629 SWIG_globals
= SWIG_newvarlink();
3630 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3631 d
= PyModule_GetDict(m
);
3632 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3633 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3634 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3637 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3638 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);