]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/stattool.cpp
Added typemap for wxArrayString
[wxWidgets.git] / wxPython / src / gtk / stattool.cpp
CommitLineData
b26e2dc4 1/*
c368d904 2 * FILE : src/gtk/stattool.cpp
b26e2dc4
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
2cd2fac8 6 * Version 1.1 (Build 883)
b26e2dc4
RD
7 *
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.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
2d091820 27# define SWIGEXPORT(a) __declspec(dllexport) a
b26e2dc4
RD
28# else
29# if defined(__BORLANDC__)
3bcd5e1c 30# define SWIGEXPORT(a) a _export
b26e2dc4 31# else
3bcd5e1c 32# define SWIGEXPORT(a) a
b26e2dc4
RD
33# endif
34# endif
35#else
3bcd5e1c 36# define SWIGEXPORT(a) a
b26e2dc4
RD
37#endif
38
3bcd5e1c
RD
39#include "Python.h"
40
b26e2dc4
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
3bcd5e1c 44
b26e2dc4
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
b26e2dc4
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
b26e2dc4
RD
54#define SWIG_init initstattoolc
55
56#define SWIG_name "stattoolc"
57
58#include "helpers.h"
59#include <wx/toolbar.h>
60#include <wx/tbarsmpl.h>
61
b26e2dc4
RD
62
63static PyObject* t_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66
3bcd5e1c 67 if (!target) {
b26e2dc4 68 target = o;
3bcd5e1c 69 } else if (target == Py_None) {
b26e2dc4
RD
70 Py_DECREF(Py_None);
71 target = o;
3bcd5e1c 72 } else {
b26e2dc4
RD
73 if (!PyTuple_Check(target)) {
74 o2 = target;
75 target = PyTuple_New(1);
76 PyTuple_SetItem(target, 0, o2);
77 }
3bcd5e1c
RD
78 o3 = PyTuple_New(1);
79 PyTuple_SetItem(o3, 0, o);
b26e2dc4
RD
80
81 o2 = target;
3bcd5e1c
RD
82 target = PySequence_Concat(o2, o3);
83 Py_DECREF(o2);
b26e2dc4
RD
84 Py_DECREF(o3);
85 }
86 return target;
87}
88
7a446686
RD
89#if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg = "String or Unicode type required";
91#else
0220cbc1 92 static char* wxStringErrorMsg = "String type required";
7a446686 93#endif
b68dc582
RD
94
95 static wxString wxPyEmptyStr("");
2d091820
RD
96#ifdef __cplusplus
97extern "C" {
98#endif
b26e2dc4
RD
99static void *SwigwxStatusBarTowxWindow(void *ptr) {
100 wxStatusBar *src;
101 wxWindow *dest;
102 src = (wxStatusBar *) ptr;
103 dest = (wxWindow *) src;
104 return (void *) dest;
105}
106
107static void *SwigwxStatusBarTowxEvtHandler(void *ptr) {
108 wxStatusBar *src;
109 wxEvtHandler *dest;
110 src = (wxStatusBar *) ptr;
111 dest = (wxEvtHandler *) src;
112 return (void *) dest;
113}
114
9df61a29
RD
115static void *SwigwxStatusBarTowxObject(void *ptr) {
116 wxStatusBar *src;
117 wxObject *dest;
118 src = (wxStatusBar *) ptr;
119 dest = (wxObject *) src;
120 return (void *) dest;
121}
122
3bcd5e1c 123#define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
107e4716 124static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
125 PyObject * _resultobj;
126 wxStatusBar * _result;
127 wxWindow * _arg0;
3bcd5e1c
RD
128 wxWindowID _arg1 = (wxWindowID ) -1;
129 long _arg2 = (long ) wxST_SIZEGRIP;
130 char * _arg3 = (char *) "statusBar";
2d091820 131 PyObject * _argo0 = 0;
3bcd5e1c 132 char *_kwnames[] = { "parent","id","style","name", NULL };
b26e2dc4
RD
133 char _ptemp[128];
134
135 self = self;
3bcd5e1c 136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ils:new_wxStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
b26e2dc4 137 return NULL;
2d091820
RD
138 if (_argo0) {
139 if (_argo0 == Py_None) { _arg0 = NULL; }
140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
b26e2dc4
RD
141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
142 return NULL;
143 }
144 }
ab9bc19b
RD
145{
146 wxPy_BEGIN_ALLOW_THREADS;
3bcd5e1c 147 _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,_arg2,_arg3);
ab9bc19b
RD
148
149 wxPy_END_ALLOW_THREADS;
4dfaa61e 150 if (PyErr_Occurred()) return NULL;
2d091820
RD
151} if (_result) {
152 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
153 _resultobj = Py_BuildValue("s",_ptemp);
154 } else {
155 Py_INCREF(Py_None);
156 _resultobj = Py_None;
157 }
b26e2dc4
RD
158 return _resultobj;
159}
160
aa2a5b86
RD
161#define new_wxPreStatusBar() (new wxStatusBar())
162static PyObject *_wrap_new_wxPreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
163 PyObject * _resultobj;
164 wxStatusBar * _result;
165 char *_kwnames[] = { NULL };
166 char _ptemp[128];
167
168 self = self;
169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStatusBar",_kwnames))
170 return NULL;
171{
172 wxPy_BEGIN_ALLOW_THREADS;
173 _result = (wxStatusBar *)new_wxPreStatusBar();
174
175 wxPy_END_ALLOW_THREADS;
176 if (PyErr_Occurred()) return NULL;
177} if (_result) {
178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
179 _resultobj = Py_BuildValue("s",_ptemp);
180 } else {
181 Py_INCREF(Py_None);
182 _resultobj = Py_None;
183 }
184 return _resultobj;
185}
186
187#define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
188static PyObject *_wrap_wxStatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
189 PyObject * _resultobj;
190 bool _result;
191 wxStatusBar * _arg0;
192 wxWindow * _arg1;
193 wxWindowID _arg2;
194 long _arg3 = (long ) wxST_SIZEGRIP;
195 char * _arg4 = (char *) "statusBar";
196 PyObject * _argo0 = 0;
197 PyObject * _argo1 = 0;
198 char *_kwnames[] = { "self","parent","id","style","name", NULL };
199
200 self = self;
201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|ls:wxStatusBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
202 return NULL;
203 if (_argo0) {
204 if (_argo0 == Py_None) { _arg0 = NULL; }
205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
207 return NULL;
208 }
209 }
210 if (_argo1) {
211 if (_argo1 == Py_None) { _arg1 = NULL; }
212 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
213 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
214 return NULL;
215 }
216 }
217{
218 wxPy_BEGIN_ALLOW_THREADS;
219 _result = (bool )wxStatusBar_Create(_arg0,_arg1,_arg2,_arg3,_arg4);
220
221 wxPy_END_ALLOW_THREADS;
222 if (PyErr_Occurred()) return NULL;
223} _resultobj = Py_BuildValue("i",_result);
224 return _resultobj;
225}
226
b26e2dc4
RD
227static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) {
228 wxRect* rect= new wxRect;
229 self->GetFieldRect(item, *rect);
230 return rect;
231 }
107e4716 232static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
233 PyObject * _resultobj;
234 wxRect * _result;
235 wxStatusBar * _arg0;
236 long _arg1;
2d091820 237 PyObject * _argo0 = 0;
107e4716 238 char *_kwnames[] = { "self","item", NULL };
b26e2dc4
RD
239 char _ptemp[128];
240
241 self = self;
107e4716 242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxStatusBar_GetFieldRect",_kwnames,&_argo0,&_arg1))
b26e2dc4 243 return NULL;
2d091820
RD
244 if (_argo0) {
245 if (_argo0 == Py_None) { _arg0 = NULL; }
246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
248 return NULL;
249 }
250 }
ab9bc19b
RD
251{
252 wxPy_BEGIN_ALLOW_THREADS;
253 _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1);
254
255 wxPy_END_ALLOW_THREADS;
4dfaa61e 256 if (PyErr_Occurred()) return NULL;
2d091820
RD
257} if (_result) {
258 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
259 _resultobj = Py_BuildValue("s",_ptemp);
260 } else {
261 Py_INCREF(Py_None);
262 _resultobj = Py_None;
263 }
b26e2dc4
RD
264 return _resultobj;
265}
266
267#define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
107e4716 268static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
269 PyObject * _resultobj;
270 int _result;
271 wxStatusBar * _arg0;
2d091820 272 PyObject * _argo0 = 0;
107e4716 273 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
274
275 self = self;
107e4716 276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetFieldsCount",_kwnames,&_argo0))
b26e2dc4 277 return NULL;
2d091820
RD
278 if (_argo0) {
279 if (_argo0 == Py_None) { _arg0 = NULL; }
280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
282 return NULL;
283 }
284 }
ab9bc19b
RD
285{
286 wxPy_BEGIN_ALLOW_THREADS;
287 _result = (int )wxStatusBar_GetFieldsCount(_arg0);
288
289 wxPy_END_ALLOW_THREADS;
4dfaa61e 290 if (PyErr_Occurred()) return NULL;
ab9bc19b 291} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
292 return _resultobj;
293}
294
295#define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
107e4716 296static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
297 PyObject * _resultobj;
298 wxString * _result;
299 wxStatusBar * _arg0;
2d091820
RD
300 int _arg1 = (int ) 0;
301 PyObject * _argo0 = 0;
107e4716 302 char *_kwnames[] = { "self","ir", NULL };
b26e2dc4
RD
303
304 self = self;
107e4716 305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_GetStatusText",_kwnames,&_argo0,&_arg1))
b26e2dc4 306 return NULL;
2d091820
RD
307 if (_argo0) {
308 if (_argo0 == Py_None) { _arg0 = NULL; }
309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
311 return NULL;
312 }
313 }
b26e2dc4 314{
ab9bc19b
RD
315 wxPy_BEGIN_ALLOW_THREADS;
316 _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1));
317
318 wxPy_END_ALLOW_THREADS;
4dfaa61e 319 if (PyErr_Occurred()) return NULL;
ab9bc19b 320}{
e02c03a4 321 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
b26e2dc4
RD
322}
323{
324 delete _result;
325}
326 return _resultobj;
327}
328
2fc99549
RD
329#define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
330static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 331 PyObject * _resultobj;
2fc99549 332 int _result;
b26e2dc4 333 wxStatusBar * _arg0;
2d091820 334 PyObject * _argo0 = 0;
2fc99549 335 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
336
337 self = self;
2fc99549 338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0))
b26e2dc4 339 return NULL;
2d091820
RD
340 if (_argo0) {
341 if (_argo0 == Py_None) { _arg0 = NULL; }
342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
2fc99549 343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
b26e2dc4
RD
344 return NULL;
345 }
346 }
ab9bc19b
RD
347{
348 wxPy_BEGIN_ALLOW_THREADS;
2fc99549 349 _result = (int )wxStatusBar_GetBorderX(_arg0);
ab9bc19b
RD
350
351 wxPy_END_ALLOW_THREADS;
4dfaa61e 352 if (PyErr_Occurred()) return NULL;
2fc99549 353} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
354 return _resultobj;
355}
356
2fc99549
RD
357#define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
358static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 359 PyObject * _resultobj;
2fc99549 360 int _result;
b26e2dc4 361 wxStatusBar * _arg0;
2d091820 362 PyObject * _argo0 = 0;
107e4716 363 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
364
365 self = self;
2fc99549 366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0))
b26e2dc4 367 return NULL;
2d091820
RD
368 if (_argo0) {
369 if (_argo0 == Py_None) { _arg0 = NULL; }
370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
2fc99549 371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
b26e2dc4
RD
372 return NULL;
373 }
374 }
ab9bc19b
RD
375{
376 wxPy_BEGIN_ALLOW_THREADS;
2fc99549 377 _result = (int )wxStatusBar_GetBorderY(_arg0);
ab9bc19b
RD
378
379 wxPy_END_ALLOW_THREADS;
4dfaa61e 380 if (PyErr_Occurred()) return NULL;
2fc99549 381} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
382 return _resultobj;
383}
384
385#define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
107e4716 386static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
387 PyObject * _resultobj;
388 wxStatusBar * _arg0;
2d091820
RD
389 int _arg1 = (int ) 1;
390 PyObject * _argo0 = 0;
107e4716 391 char *_kwnames[] = { "self","number", NULL };
b26e2dc4
RD
392
393 self = self;
107e4716 394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_SetFieldsCount",_kwnames,&_argo0,&_arg1))
b26e2dc4 395 return NULL;
2d091820
RD
396 if (_argo0) {
397 if (_argo0 == Py_None) { _arg0 = NULL; }
398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
400 return NULL;
401 }
402 }
ab9bc19b
RD
403{
404 wxPy_BEGIN_ALLOW_THREADS;
405 wxStatusBar_SetFieldsCount(_arg0,_arg1);
406
407 wxPy_END_ALLOW_THREADS;
4dfaa61e 408 if (PyErr_Occurred()) return NULL;
ab9bc19b 409} Py_INCREF(Py_None);
b26e2dc4
RD
410 _resultobj = Py_None;
411 return _resultobj;
412}
413
414#define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
107e4716 415static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
416 PyObject * _resultobj;
417 wxStatusBar * _arg0;
418 wxString * _arg1;
2d091820
RD
419 int _arg2 = (int ) 0;
420 PyObject * _argo0 = 0;
b26e2dc4 421 PyObject * _obj1 = 0;
107e4716 422 char *_kwnames[] = { "self","text","i", NULL };
b26e2dc4
RD
423
424 self = self;
107e4716 425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxStatusBar_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2))
b26e2dc4 426 return NULL;
2d091820
RD
427 if (_argo0) {
428 if (_argo0 == Py_None) { _arg0 = NULL; }
429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
431 return NULL;
432 }
433 }
434{
2cd2fac8
RD
435#if PYTHON_API_VERSION >= 1009
436 char* tmpPtr; int tmpSize;
437 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 438 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
439 return NULL;
440 }
441 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
442 return NULL;
443 _arg1 = new wxString(tmpPtr, tmpSize);
444#else
b26e2dc4
RD
445 if (!PyString_Check(_obj1)) {
446 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
447 return NULL;
448 }
2cd2fac8
RD
449 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
450#endif
b26e2dc4 451}
ab9bc19b
RD
452{
453 wxPy_BEGIN_ALLOW_THREADS;
454 wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2);
455
456 wxPy_END_ALLOW_THREADS;
4dfaa61e 457 if (PyErr_Occurred()) return NULL;
ab9bc19b 458} Py_INCREF(Py_None);
b26e2dc4
RD
459 _resultobj = Py_None;
460{
461 if (_obj1)
462 delete _arg1;
463}
464 return _resultobj;
465}
466
467#define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
107e4716 468static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
469 PyObject * _resultobj;
470 wxStatusBar * _arg0;
471 int _arg1;
472 int * _arg2;
2d091820 473 PyObject * _argo0 = 0;
b26e2dc4 474 PyObject * _obj2 = 0;
e02c03a4 475 char *_kwnames[] = { "self","choices", NULL };
b26e2dc4
RD
476
477 self = self;
107e4716 478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStatusBar_SetStatusWidths",_kwnames,&_argo0,&_obj2))
b26e2dc4 479 return NULL;
2d091820
RD
480 if (_argo0) {
481 if (_argo0 == Py_None) { _arg0 = NULL; }
482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
b26e2dc4
RD
483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
484 return NULL;
485 }
486 }
487 if (_obj2)
488{
489 _arg2 = int_LIST_helper(_obj2);
490 if (_arg2 == NULL) {
491 return NULL;
492 }
493}
494{
ab9bc19b
RD
495 if (_obj2) {
496 _arg1 = PyList_Size(_obj2);
497 }
498 else {
499 _arg1 = 0;
500 }
b26e2dc4 501}
ab9bc19b
RD
502{
503 wxPy_BEGIN_ALLOW_THREADS;
504 wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2);
505
506 wxPy_END_ALLOW_THREADS;
4dfaa61e 507 if (PyErr_Occurred()) return NULL;
ab9bc19b 508} Py_INCREF(Py_None);
b26e2dc4
RD
509 _resultobj = Py_None;
510{
511 delete [] _arg2;
512}
513 return _resultobj;
514}
515
2fc99549
RD
516#define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
517static PyObject *_wrap_wxStatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
518 PyObject * _resultobj;
519 wxStatusBar * _arg0;
520 int _arg1;
521 PyObject * _argo0 = 0;
522 char *_kwnames[] = { "self","height", NULL };
523
524 self = self;
525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStatusBar_SetMinHeight",_kwnames,&_argo0,&_arg1))
526 return NULL;
527 if (_argo0) {
528 if (_argo0 == Py_None) { _arg0 = NULL; }
529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
531 return NULL;
532 }
533 }
534{
535 wxPy_BEGIN_ALLOW_THREADS;
536 wxStatusBar_SetMinHeight(_arg0,_arg1);
537
538 wxPy_END_ALLOW_THREADS;
4dfaa61e 539 if (PyErr_Occurred()) return NULL;
2fc99549
RD
540} Py_INCREF(Py_None);
541 _resultobj = Py_None;
542 return _resultobj;
543}
544
9df61a29
RD
545static void *SwigwxToolBarToolBaseTowxObject(void *ptr) {
546 wxToolBarToolBase *src;
547 wxObject *dest;
548 src = (wxToolBarToolBase *) ptr;
549 dest = (wxObject *) src;
550 return (void *) dest;
551}
552
ab2208b5
RD
553static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
554static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 555 PyObject * _resultobj;
ab2208b5 556 wxToolBarToolBase * _arg0;
2d091820 557 PyObject * _argo0 = 0;
107e4716 558 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
559
560 self = self;
ab2208b5 561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Destroy",_kwnames,&_argo0))
56f5d962
RD
562 return NULL;
563 if (_argo0) {
564 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
56f5d962
RD
567 return NULL;
568 }
569 }
570{
571 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 572 wxToolBarToolBase_Destroy(_arg0);
56f5d962
RD
573
574 wxPy_END_ALLOW_THREADS;
4dfaa61e 575 if (PyErr_Occurred()) return NULL;
56f5d962
RD
576} Py_INCREF(Py_None);
577 _resultobj = Py_None;
578 return _resultobj;
579}
580
ab2208b5
RD
581#define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
582static PyObject *_wrap_wxToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 583 PyObject * _resultobj;
ab2208b5
RD
584 int _result;
585 wxToolBarToolBase * _arg0;
56f5d962
RD
586 PyObject * _argo0 = 0;
587 char *_kwnames[] = { "self", NULL };
588
589 self = self;
ab2208b5 590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetId",_kwnames,&_argo0))
56f5d962
RD
591 return NULL;
592 if (_argo0) {
593 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
56f5d962
RD
596 return NULL;
597 }
598 }
599{
600 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 601 _result = (int )wxToolBarToolBase_GetId(_arg0);
56f5d962
RD
602
603 wxPy_END_ALLOW_THREADS;
4dfaa61e 604 if (PyErr_Occurred()) return NULL;
ab2208b5 605} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
606 return _resultobj;
607}
608
ab2208b5
RD
609#define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
610static PyObject *_wrap_wxToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 611 PyObject * _resultobj;
ab2208b5
RD
612 wxControl * _result;
613 wxToolBarToolBase * _arg0;
56f5d962
RD
614 PyObject * _argo0 = 0;
615 char *_kwnames[] = { "self", NULL };
616
617 self = self;
ab2208b5 618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetControl",_kwnames,&_argo0))
56f5d962
RD
619 return NULL;
620 if (_argo0) {
621 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
56f5d962
RD
624 return NULL;
625 }
626 }
627{
628 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 629 _result = (wxControl *)wxToolBarToolBase_GetControl(_arg0);
56f5d962
RD
630
631 wxPy_END_ALLOW_THREADS;
4dfaa61e 632 if (PyErr_Occurred()) return NULL;
9df61a29 633}{ _resultobj = wxPyMake_wxObject(_result); }
56f5d962
RD
634 return _resultobj;
635}
636
ab2208b5
RD
637#define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
638static PyObject *_wrap_wxToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 639 PyObject * _resultobj;
ab2208b5
RD
640 wxToolBarBase * _result;
641 wxToolBarToolBase * _arg0;
56f5d962
RD
642 PyObject * _argo0 = 0;
643 char *_kwnames[] = { "self", NULL };
56f5d962
RD
644
645 self = self;
ab2208b5 646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetToolBar",_kwnames,&_argo0))
56f5d962
RD
647 return NULL;
648 if (_argo0) {
649 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
56f5d962
RD
652 return NULL;
653 }
654 }
655{
656 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 657 _result = (wxToolBarBase *)wxToolBarToolBase_GetToolBar(_arg0);
56f5d962
RD
658
659 wxPy_END_ALLOW_THREADS;
4dfaa61e 660 if (PyErr_Occurred()) return NULL;
9df61a29 661}{ _resultobj = wxPyMake_wxObject(_result); }
56f5d962
RD
662 return _resultobj;
663}
664
ab2208b5
RD
665#define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
666static PyObject *_wrap_wxToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
667 PyObject * _resultobj;
668 int _result;
ab2208b5 669 wxToolBarToolBase * _arg0;
2d091820 670 PyObject * _argo0 = 0;
ab2208b5 671 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
672
673 self = self;
ab2208b5 674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsButton",_kwnames,&_argo0))
21f8d7ea 675 return NULL;
2d091820
RD
676 if (_argo0) {
677 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
680 return NULL;
681 }
682 }
ab9bc19b
RD
683{
684 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 685 _result = (int )wxToolBarToolBase_IsButton(_arg0);
ab9bc19b
RD
686
687 wxPy_END_ALLOW_THREADS;
4dfaa61e 688 if (PyErr_Occurred()) return NULL;
ab9bc19b 689} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
690 return _resultobj;
691}
692
ab2208b5
RD
693#define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
694static PyObject *_wrap_wxToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
695 PyObject * _resultobj;
696 int _result;
ab2208b5 697 wxToolBarToolBase * _arg0;
2d091820 698 PyObject * _argo0 = 0;
107e4716 699 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
700
701 self = self;
ab2208b5 702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsControl",_kwnames,&_argo0))
b26e2dc4 703 return NULL;
2d091820
RD
704 if (_argo0) {
705 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
708 return NULL;
709 }
710 }
ab9bc19b
RD
711{
712 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 713 _result = (int )wxToolBarToolBase_IsControl(_arg0);
ab9bc19b
RD
714
715 wxPy_END_ALLOW_THREADS;
4dfaa61e 716 if (PyErr_Occurred()) return NULL;
ab9bc19b 717} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
718 return _resultobj;
719}
720
ab2208b5
RD
721#define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
722static PyObject *_wrap_wxToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 723 PyObject * _resultobj;
ab2208b5
RD
724 int _result;
725 wxToolBarToolBase * _arg0;
2d091820 726 PyObject * _argo0 = 0;
107e4716 727 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
728
729 self = self;
ab2208b5 730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsSeparator",_kwnames,&_argo0))
b26e2dc4 731 return NULL;
2d091820
RD
732 if (_argo0) {
733 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
736 return NULL;
737 }
738 }
ab9bc19b
RD
739{
740 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 741 _result = (int )wxToolBarToolBase_IsSeparator(_arg0);
ab9bc19b
RD
742
743 wxPy_END_ALLOW_THREADS;
4dfaa61e 744 if (PyErr_Occurred()) return NULL;
ab2208b5 745} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
746 return _resultobj;
747}
748
ab2208b5
RD
749#define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
750static PyObject *_wrap_wxToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
751 PyObject * _resultobj;
752 int _result;
ab2208b5 753 wxToolBarToolBase * _arg0;
2d091820 754 PyObject * _argo0 = 0;
ab2208b5 755 char *_kwnames[] = { "self", NULL };
21f8d7ea
RD
756
757 self = self;
ab2208b5 758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetStyle",_kwnames,&_argo0))
21f8d7ea 759 return NULL;
2d091820
RD
760 if (_argo0) {
761 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
764 return NULL;
765 }
766 }
ab9bc19b
RD
767{
768 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 769 _result = (int )wxToolBarToolBase_GetStyle(_arg0);
ab9bc19b
RD
770
771 wxPy_END_ALLOW_THREADS;
4dfaa61e 772 if (PyErr_Occurred()) return NULL;
ab9bc19b 773} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
774 return _resultobj;
775}
776
ab2208b5
RD
777#define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
778static PyObject *_wrap_wxToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 779 PyObject * _resultobj;
ab2208b5
RD
780 bool _result;
781 wxToolBarToolBase * _arg0;
2d091820 782 PyObject * _argo0 = 0;
107e4716 783 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
784
785 self = self;
ab2208b5 786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsEnabled",_kwnames,&_argo0))
b26e2dc4 787 return NULL;
2d091820
RD
788 if (_argo0) {
789 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
792 return NULL;
793 }
794 }
ab9bc19b
RD
795{
796 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 797 _result = (bool )wxToolBarToolBase_IsEnabled(_arg0);
ab9bc19b
RD
798
799 wxPy_END_ALLOW_THREADS;
4dfaa61e 800 if (PyErr_Occurred()) return NULL;
ab9bc19b 801} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
802 return _resultobj;
803}
804
ab2208b5
RD
805#define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
806static PyObject *_wrap_wxToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 807 PyObject * _resultobj;
ab2208b5
RD
808 bool _result;
809 wxToolBarToolBase * _arg0;
56f5d962 810 PyObject * _argo0 = 0;
ab2208b5 811 char *_kwnames[] = { "self", NULL };
56f5d962
RD
812
813 self = self;
ab2208b5 814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsToggled",_kwnames,&_argo0))
56f5d962
RD
815 return NULL;
816 if (_argo0) {
817 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
56f5d962
RD
820 return NULL;
821 }
822 }
823{
824 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 825 _result = (bool )wxToolBarToolBase_IsToggled(_arg0);
56f5d962
RD
826
827 wxPy_END_ALLOW_THREADS;
4dfaa61e 828 if (PyErr_Occurred()) return NULL;
ab2208b5 829} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
830 return _resultobj;
831}
832
ab2208b5
RD
833#define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
834static PyObject *_wrap_wxToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 835 PyObject * _resultobj;
ab2208b5
RD
836 bool _result;
837 wxToolBarToolBase * _arg0;
56f5d962
RD
838 PyObject * _argo0 = 0;
839 char *_kwnames[] = { "self", NULL };
840
841 self = self;
ab2208b5 842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_CanBeToggled",_kwnames,&_argo0))
56f5d962
RD
843 return NULL;
844 if (_argo0) {
845 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
56f5d962
RD
848 return NULL;
849 }
850 }
851{
852 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 853 _result = (bool )wxToolBarToolBase_CanBeToggled(_arg0);
56f5d962
RD
854
855 wxPy_END_ALLOW_THREADS;
4dfaa61e 856 if (PyErr_Occurred()) return NULL;
ab2208b5 857} _resultobj = Py_BuildValue("i",_result);
56f5d962
RD
858 return _resultobj;
859}
860
ab2208b5
RD
861#define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
862static PyObject *_wrap_wxToolBarToolBase_GetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 863 PyObject * _resultobj;
ab2208b5
RD
864 wxBitmap * _result;
865 wxToolBarToolBase * _arg0;
56f5d962 866 PyObject * _argo0 = 0;
ab2208b5
RD
867 char *_kwnames[] = { "self", NULL };
868 char _ptemp[128];
56f5d962
RD
869
870 self = self;
ab2208b5 871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap1",_kwnames,&_argo0))
56f5d962
RD
872 return NULL;
873 if (_argo0) {
874 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
56f5d962
RD
877 return NULL;
878 }
879 }
880{
881 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5
RD
882 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap1(_arg0);
883 _result = (wxBitmap *) &_result_ref;
56f5d962
RD
884
885 wxPy_END_ALLOW_THREADS;
4dfaa61e 886 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
887} if (_result) {
888 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
889 _resultobj = Py_BuildValue("s",_ptemp);
890 } else {
891 Py_INCREF(Py_None);
892 _resultobj = Py_None;
893 }
56f5d962
RD
894 return _resultobj;
895}
896
ab2208b5
RD
897#define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
898static PyObject *_wrap_wxToolBarToolBase_GetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 899 PyObject * _resultobj;
ab2208b5
RD
900 wxBitmap * _result;
901 wxToolBarToolBase * _arg0;
56f5d962
RD
902 PyObject * _argo0 = 0;
903 char *_kwnames[] = { "self", NULL };
ab2208b5 904 char _ptemp[128];
56f5d962
RD
905
906 self = self;
ab2208b5 907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap2",_kwnames,&_argo0))
56f5d962
RD
908 return NULL;
909 if (_argo0) {
910 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
56f5d962
RD
913 return NULL;
914 }
915 }
916{
917 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5
RD
918 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap2(_arg0);
919 _result = (wxBitmap *) &_result_ref;
56f5d962
RD
920
921 wxPy_END_ALLOW_THREADS;
4dfaa61e 922 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
923} if (_result) {
924 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
925 _resultobj = Py_BuildValue("s",_ptemp);
926 } else {
927 Py_INCREF(Py_None);
928 _resultobj = Py_None;
929 }
56f5d962
RD
930 return _resultobj;
931}
932
ab2208b5
RD
933#define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
934static PyObject *_wrap_wxToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 935 PyObject * _resultobj;
ab2208b5
RD
936 wxBitmap * _result;
937 wxToolBarToolBase * _arg0;
56f5d962 938 PyObject * _argo0 = 0;
ab2208b5
RD
939 char *_kwnames[] = { "self", NULL };
940 char _ptemp[128];
56f5d962
RD
941
942 self = self;
ab2208b5 943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap",_kwnames,&_argo0))
56f5d962
RD
944 return NULL;
945 if (_argo0) {
946 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
56f5d962
RD
949 return NULL;
950 }
951 }
952{
953 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5
RD
954 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap(_arg0);
955 _result = (wxBitmap *) &_result_ref;
56f5d962
RD
956
957 wxPy_END_ALLOW_THREADS;
4dfaa61e 958 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
959} if (_result) {
960 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
961 _resultobj = Py_BuildValue("s",_ptemp);
962 } else {
963 Py_INCREF(Py_None);
964 _resultobj = Py_None;
965 }
56f5d962
RD
966 return _resultobj;
967}
968
ab2208b5
RD
969#define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
970static PyObject *_wrap_wxToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 971 PyObject * _resultobj;
ab2208b5
RD
972 wxString * _result;
973 wxToolBarToolBase * _arg0;
56f5d962
RD
974 PyObject * _argo0 = 0;
975 char *_kwnames[] = { "self", NULL };
976
977 self = self;
ab2208b5 978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetShortHelp",_kwnames,&_argo0))
56f5d962
RD
979 return NULL;
980 if (_argo0) {
981 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
56f5d962
RD
984 return NULL;
985 }
986 }
987{
988 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 989 _result = new wxString (wxToolBarToolBase_GetShortHelp(_arg0));
56f5d962
RD
990
991 wxPy_END_ALLOW_THREADS;
4dfaa61e 992 if (PyErr_Occurred()) return NULL;
ab2208b5 993}{
e02c03a4 994 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
56f5d962 995}
56f5d962 996{
ab2208b5
RD
997 delete _result;
998}
56f5d962
RD
999 return _resultobj;
1000}
1001
ab2208b5
RD
1002#define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1003static PyObject *_wrap_wxToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 1004 PyObject * _resultobj;
ab2208b5
RD
1005 wxString * _result;
1006 wxToolBarToolBase * _arg0;
56f5d962
RD
1007 PyObject * _argo0 = 0;
1008 char *_kwnames[] = { "self", NULL };
1009
1010 self = self;
ab2208b5 1011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLongHelp",_kwnames,&_argo0))
56f5d962
RD
1012 return NULL;
1013 if (_argo0) {
1014 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
56f5d962
RD
1017 return NULL;
1018 }
1019 }
1020{
1021 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1022 _result = new wxString (wxToolBarToolBase_GetLongHelp(_arg0));
56f5d962
RD
1023
1024 wxPy_END_ALLOW_THREADS;
4dfaa61e 1025 if (PyErr_Occurred()) return NULL;
ab2208b5 1026}{
e02c03a4 1027 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
ab2208b5
RD
1028}
1029{
1030 delete _result;
1031}
56f5d962
RD
1032 return _resultobj;
1033}
1034
ab2208b5
RD
1035#define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1036static PyObject *_wrap_wxToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1037 PyObject * _resultobj;
1038 bool _result;
ab2208b5 1039 wxToolBarToolBase * _arg0;
21f8d7ea 1040 bool _arg1;
2d091820 1041 PyObject * _argo0 = 0;
21f8d7ea 1042 int tempbool1;
ab2208b5 1043 char *_kwnames[] = { "self","enable", NULL };
21f8d7ea
RD
1044
1045 self = self;
ab2208b5 1046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Enable",_kwnames,&_argo0,&tempbool1))
21f8d7ea 1047 return NULL;
2d091820
RD
1048 if (_argo0) {
1049 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1052 return NULL;
1053 }
1054 }
1055 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1056{
1057 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1058 _result = (bool )wxToolBarToolBase_Enable(_arg0,_arg1);
ab9bc19b
RD
1059
1060 wxPy_END_ALLOW_THREADS;
4dfaa61e 1061 if (PyErr_Occurred()) return NULL;
ab9bc19b 1062} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
1063 return _resultobj;
1064}
1065
ab2208b5
RD
1066#define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1067static PyObject *_wrap_wxToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
1068 PyObject * _resultobj;
1069 bool _result;
ab2208b5
RD
1070 wxToolBarToolBase * _arg0;
1071 bool _arg1;
2d091820 1072 PyObject * _argo0 = 0;
ab2208b5
RD
1073 int tempbool1;
1074 char *_kwnames[] = { "self","toggle", NULL };
b26e2dc4
RD
1075
1076 self = self;
ab2208b5 1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Toggle",_kwnames,&_argo0,&tempbool1))
b26e2dc4 1078 return NULL;
2d091820
RD
1079 if (_argo0) {
1080 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1083 return NULL;
1084 }
1085 }
ab2208b5 1086 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1087{
1088 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1089 _result = (bool )wxToolBarToolBase_Toggle(_arg0,_arg1);
ab9bc19b
RD
1090
1091 wxPy_END_ALLOW_THREADS;
4dfaa61e 1092 if (PyErr_Occurred()) return NULL;
ab9bc19b 1093} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
1094 return _resultobj;
1095}
1096
ab2208b5
RD
1097#define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1098static PyObject *_wrap_wxToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1099 PyObject * _resultobj;
1100 bool _result;
ab2208b5 1101 wxToolBarToolBase * _arg0;
21f8d7ea 1102 bool _arg1;
2d091820 1103 PyObject * _argo0 = 0;
21f8d7ea 1104 int tempbool1;
ab2208b5 1105 char *_kwnames[] = { "self","toggle", NULL };
21f8d7ea
RD
1106
1107 self = self;
ab2208b5 1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_SetToggle",_kwnames,&_argo0,&tempbool1))
21f8d7ea 1109 return NULL;
2d091820
RD
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1114 return NULL;
1115 }
1116 }
1117 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1118{
1119 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1120 _result = (bool )wxToolBarToolBase_SetToggle(_arg0,_arg1);
ab9bc19b
RD
1121
1122 wxPy_END_ALLOW_THREADS;
4dfaa61e 1123 if (PyErr_Occurred()) return NULL;
ab9bc19b 1124} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
1125 return _resultobj;
1126}
1127
ab2208b5
RD
1128#define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1129static PyObject *_wrap_wxToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
1130 PyObject * _resultobj;
1131 bool _result;
ab2208b5
RD
1132 wxToolBarToolBase * _arg0;
1133 wxString * _arg1;
2d091820 1134 PyObject * _argo0 = 0;
ab2208b5
RD
1135 PyObject * _obj1 = 0;
1136 char *_kwnames[] = { "self","help", NULL };
b26e2dc4
RD
1137
1138 self = self;
ab2208b5 1139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetShortHelp",_kwnames,&_argo0,&_obj1))
b26e2dc4 1140 return NULL;
2d091820
RD
1141 if (_argo0) {
1142 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1145 return NULL;
1146 }
1147 }
ab2208b5 1148{
2cd2fac8
RD
1149#if PYTHON_API_VERSION >= 1009
1150 char* tmpPtr; int tmpSize;
1151 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1152 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1153 return NULL;
1154 }
1155 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1156 return NULL;
1157 _arg1 = new wxString(tmpPtr, tmpSize);
1158#else
ab2208b5
RD
1159 if (!PyString_Check(_obj1)) {
1160 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1161 return NULL;
1162 }
2cd2fac8
RD
1163 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1164#endif
ab2208b5 1165}
ab9bc19b
RD
1166{
1167 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1168 _result = (bool )wxToolBarToolBase_SetShortHelp(_arg0,*_arg1);
ab9bc19b
RD
1169
1170 wxPy_END_ALLOW_THREADS;
4dfaa61e 1171 if (PyErr_Occurred()) return NULL;
ab9bc19b 1172} _resultobj = Py_BuildValue("i",_result);
ab2208b5
RD
1173{
1174 if (_obj1)
1175 delete _arg1;
1176}
b26e2dc4
RD
1177 return _resultobj;
1178}
1179
ab2208b5
RD
1180#define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1181static PyObject *_wrap_wxToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1182 PyObject * _resultobj;
1183 bool _result;
ab2208b5
RD
1184 wxToolBarToolBase * _arg0;
1185 wxString * _arg1;
2d091820 1186 PyObject * _argo0 = 0;
ab2208b5
RD
1187 PyObject * _obj1 = 0;
1188 char *_kwnames[] = { "self","help", NULL };
21f8d7ea
RD
1189
1190 self = self;
ab2208b5 1191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLongHelp",_kwnames,&_argo0,&_obj1))
21f8d7ea 1192 return NULL;
2d091820
RD
1193 if (_argo0) {
1194 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1197 return NULL;
1198 }
1199 }
ab2208b5 1200{
2cd2fac8
RD
1201#if PYTHON_API_VERSION >= 1009
1202 char* tmpPtr; int tmpSize;
1203 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1204 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1205 return NULL;
1206 }
1207 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1208 return NULL;
1209 _arg1 = new wxString(tmpPtr, tmpSize);
1210#else
ab2208b5
RD
1211 if (!PyString_Check(_obj1)) {
1212 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1213 return NULL;
1214 }
2cd2fac8
RD
1215 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1216#endif
ab2208b5 1217}
ab9bc19b
RD
1218{
1219 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1220 _result = (bool )wxToolBarToolBase_SetLongHelp(_arg0,*_arg1);
ab9bc19b
RD
1221
1222 wxPy_END_ALLOW_THREADS;
4dfaa61e 1223 if (PyErr_Occurred()) return NULL;
ab9bc19b 1224} _resultobj = Py_BuildValue("i",_result);
ab2208b5
RD
1225{
1226 if (_obj1)
1227 delete _arg1;
1228}
21f8d7ea
RD
1229 return _resultobj;
1230}
1231
ab2208b5
RD
1232#define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1233static PyObject *_wrap_wxToolBarToolBase_SetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1234 PyObject * _resultobj;
ab2208b5
RD
1235 wxToolBarToolBase * _arg0;
1236 wxBitmap * _arg1;
2d091820 1237 PyObject * _argo0 = 0;
ab2208b5
RD
1238 PyObject * _argo1 = 0;
1239 char *_kwnames[] = { "self","bmp", NULL };
b26e2dc4
RD
1240
1241 self = self;
ab2208b5 1242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap1",_kwnames,&_argo0,&_argo1))
b26e2dc4 1243 return NULL;
2d091820
RD
1244 if (_argo0) {
1245 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1248 return NULL;
1249 }
1250 }
1251 if (_argo1) {
1252 if (_argo1 == Py_None) { _arg1 = NULL; }
1253 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1254 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
b26e2dc4
RD
1255 return NULL;
1256 }
1257 }
ab9bc19b
RD
1258{
1259 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1260 wxToolBarToolBase_SetBitmap1(_arg0,*_arg1);
ab9bc19b
RD
1261
1262 wxPy_END_ALLOW_THREADS;
4dfaa61e 1263 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1264} Py_INCREF(Py_None);
1265 _resultobj = Py_None;
b26e2dc4
RD
1266 return _resultobj;
1267}
1268
ab2208b5
RD
1269#define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1270static PyObject *_wrap_wxToolBarToolBase_SetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1271 PyObject * _resultobj;
ab2208b5
RD
1272 wxToolBarToolBase * _arg0;
1273 wxBitmap * _arg1;
2d091820 1274 PyObject * _argo0 = 0;
ab2208b5
RD
1275 PyObject * _argo1 = 0;
1276 char *_kwnames[] = { "self","bmp", NULL };
21f8d7ea
RD
1277
1278 self = self;
ab2208b5 1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap2",_kwnames,&_argo0,&_argo1))
21f8d7ea 1280 return NULL;
2d091820
RD
1281 if (_argo0) {
1282 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1285 return NULL;
1286 }
1287 }
1288 if (_argo1) {
1289 if (_argo1 == Py_None) { _arg1 = NULL; }
1290 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1291 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
21f8d7ea
RD
1292 return NULL;
1293 }
1294 }
ab9bc19b
RD
1295{
1296 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1297 wxToolBarToolBase_SetBitmap2(_arg0,*_arg1);
ab9bc19b
RD
1298
1299 wxPy_END_ALLOW_THREADS;
4dfaa61e 1300 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1301} Py_INCREF(Py_None);
1302 _resultobj = Py_None;
21f8d7ea
RD
1303 return _resultobj;
1304}
1305
ab2208b5
RD
1306#define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1307static PyObject *_wrap_wxToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1308 PyObject * _resultobj;
ab2208b5 1309 wxToolBarToolBase * _arg0;
2d091820 1310 PyObject * _argo0 = 0;
107e4716 1311 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1312
1313 self = self;
ab2208b5 1314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Detach",_kwnames,&_argo0))
b26e2dc4 1315 return NULL;
2d091820
RD
1316 if (_argo0) {
1317 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1320 return NULL;
1321 }
1322 }
ab9bc19b
RD
1323{
1324 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1325 wxToolBarToolBase_Detach(_arg0);
ab9bc19b
RD
1326
1327 wxPy_END_ALLOW_THREADS;
4dfaa61e 1328 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1329} Py_INCREF(Py_None);
1330 _resultobj = Py_None;
b26e2dc4
RD
1331 return _resultobj;
1332}
1333
ab2208b5
RD
1334#define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1335static PyObject *_wrap_wxToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1336 PyObject * _resultobj;
ab2208b5
RD
1337 wxToolBarToolBase * _arg0;
1338 wxToolBarBase * _arg1;
2d091820
RD
1339 PyObject * _argo0 = 0;
1340 PyObject * _argo1 = 0;
ab2208b5 1341 char *_kwnames[] = { "self","tbar", NULL };
21f8d7ea
RD
1342
1343 self = self;
ab2208b5 1344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_Attach",_kwnames,&_argo0,&_argo1))
21f8d7ea 1345 return NULL;
2d091820
RD
1346 if (_argo0) {
1347 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1350 return NULL;
1351 }
1352 }
2d091820
RD
1353 if (_argo1) {
1354 if (_argo1 == Py_None) { _arg1 = NULL; }
ab2208b5
RD
1355 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBarBase_p")) {
1356 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1357 return NULL;
1358 }
1359 }
ab9bc19b
RD
1360{
1361 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1362 wxToolBarToolBase_Attach(_arg0,_arg1);
ab9bc19b
RD
1363
1364 wxPy_END_ALLOW_THREADS;
4dfaa61e 1365 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1366} Py_INCREF(Py_None);
1367 _resultobj = Py_None;
21f8d7ea
RD
1368 return _resultobj;
1369}
1370
ab2208b5
RD
1371static PyObject * wxToolBarToolBase_GetClientData(wxToolBarToolBase *self) {
1372 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
1373 if (udata) {
1374 Py_INCREF(udata->m_obj);
1375 return udata->m_obj;
1376 } else {
1377 Py_INCREF(Py_None);
1378 return Py_None;
1379 }
1380 }
1381static PyObject *_wrap_wxToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1382 PyObject * _resultobj;
ab2208b5
RD
1383 PyObject * _result;
1384 wxToolBarToolBase * _arg0;
2d091820 1385 PyObject * _argo0 = 0;
107e4716 1386 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1387
1388 self = self;
ab2208b5 1389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetClientData",_kwnames,&_argo0))
b26e2dc4 1390 return NULL;
2d091820
RD
1391 if (_argo0) {
1392 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1395 return NULL;
1396 }
1397 }
ab9bc19b
RD
1398{
1399 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1400 _result = (PyObject *)wxToolBarToolBase_GetClientData(_arg0);
ab9bc19b
RD
1401
1402 wxPy_END_ALLOW_THREADS;
4dfaa61e 1403 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1404}{
1405 _resultobj = _result;
1406}
b26e2dc4
RD
1407 return _resultobj;
1408}
1409
ab2208b5
RD
1410static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject * clientData) {
1411 self->SetClientData(new wxPyUserData(clientData));
1412 }
1413static PyObject *_wrap_wxToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1414 PyObject * _resultobj;
ab2208b5
RD
1415 wxToolBarToolBase * _arg0;
1416 PyObject * _arg1;
2d091820 1417 PyObject * _argo0 = 0;
ab2208b5
RD
1418 PyObject * _obj1 = 0;
1419 char *_kwnames[] = { "self","clientData", NULL };
1420
1421 self = self;
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetClientData",_kwnames,&_argo0,&_obj1))
1423 return NULL;
1424 if (_argo0) {
1425 if (_argo0 == Py_None) { _arg0 = NULL; }
1426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1428 return NULL;
1429 }
1430 }
1431{
1432 _arg1 = _obj1;
1433}
1434{
1435 wxPy_BEGIN_ALLOW_THREADS;
1436 wxToolBarToolBase_SetClientData(_arg0,_arg1);
1437
1438 wxPy_END_ALLOW_THREADS;
4dfaa61e 1439 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1440} Py_INCREF(Py_None);
1441 _resultobj = Py_None;
1442 return _resultobj;
1443}
1444
1445static void *SwigwxToolBarBaseTowxControl(void *ptr) {
1446 wxToolBarBase *src;
1447 wxControl *dest;
1448 src = (wxToolBarBase *) ptr;
1449 dest = (wxControl *) src;
1450 return (void *) dest;
1451}
1452
1453static void *SwigwxToolBarBaseTowxWindow(void *ptr) {
1454 wxToolBarBase *src;
1455 wxWindow *dest;
1456 src = (wxToolBarBase *) ptr;
1457 dest = (wxWindow *) src;
1458 return (void *) dest;
1459}
1460
1461static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr) {
1462 wxToolBarBase *src;
1463 wxEvtHandler *dest;
1464 src = (wxToolBarBase *) ptr;
1465 dest = (wxEvtHandler *) src;
1466 return (void *) dest;
1467}
1468
9df61a29
RD
1469static void *SwigwxToolBarBaseTowxObject(void *ptr) {
1470 wxToolBarBase *src;
1471 wxObject *dest;
1472 src = (wxToolBarBase *) ptr;
1473 dest = (wxObject *) src;
1474 return (void *) dest;
1475}
1476
c368d904 1477static wxToolBarToolBase * wxToolBarBase_AddTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxBitmap & pushedBitmap,int isToggle,PyObject * clientData,const wxString & shortHelpString,const wxString & longHelpString) {
ab2208b5
RD
1478 wxPyUserData* udata = NULL;
1479 if (clientData)
1480 udata = new wxPyUserData(clientData);
c368d904 1481 return self->AddTool(id, bitmap, pushedBitmap, (bool)isToggle,
ab2208b5
RD
1482 udata, shortHelpString, longHelpString);
1483 }
1484static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1485 PyObject * _resultobj;
1486 wxToolBarToolBase * _result;
1487 wxToolBarBase * _arg0;
1488 int _arg1;
1489 wxBitmap * _arg2;
1490 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
1491 int _arg4 = (int ) FALSE;
1492 PyObject * _arg5 = (PyObject *) NULL;
1493 wxString * _arg6 = (wxString *) &wxPyEmptyStr;
1494 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1495 PyObject * _argo0 = 0;
1496 PyObject * _argo2 = 0;
1497 PyObject * _argo3 = 0;
1498 PyObject * _obj5 = 0;
1499 PyObject * _obj6 = 0;
1500 PyObject * _obj7 = 0;
c368d904 1501 char *_kwnames[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
21f8d7ea
RD
1502
1503 self = self;
ab2208b5 1504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7))
21f8d7ea 1505 return NULL;
2d091820
RD
1506 if (_argo0) {
1507 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1510 return NULL;
1511 }
1512 }
ab2208b5
RD
1513 if (_argo2) {
1514 if (_argo2 == Py_None) { _arg2 = NULL; }
1515 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1516 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
21f8d7ea
RD
1517 return NULL;
1518 }
1519 }
ab2208b5
RD
1520 if (_argo3) {
1521 if (_argo3 == Py_None) { _arg3 = NULL; }
1522 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1523 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1524 return NULL;
1525 }
1526 }
1527 if (_obj5)
1528{
1529 _arg5 = _obj5;
1530}
1531 if (_obj6)
1532{
2cd2fac8
RD
1533#if PYTHON_API_VERSION >= 1009
1534 char* tmpPtr; int tmpSize;
1535 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
7a446686 1536 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1537 return NULL;
1538 }
1539 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
1540 return NULL;
1541 _arg6 = new wxString(tmpPtr, tmpSize);
1542#else
ab2208b5
RD
1543 if (!PyString_Check(_obj6)) {
1544 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1545 return NULL;
1546 }
2cd2fac8
RD
1547 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
1548#endif
ab2208b5
RD
1549}
1550 if (_obj7)
1551{
2cd2fac8
RD
1552#if PYTHON_API_VERSION >= 1009
1553 char* tmpPtr; int tmpSize;
1554 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
7a446686 1555 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1556 return NULL;
1557 }
1558 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1559 return NULL;
1560 _arg7 = new wxString(tmpPtr, tmpSize);
1561#else
ab2208b5
RD
1562 if (!PyString_Check(_obj7)) {
1563 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1564 return NULL;
1565 }
2cd2fac8
RD
1566 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1567#endif
ab2208b5 1568}
ab9bc19b
RD
1569{
1570 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1571 _result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7);
ab9bc19b
RD
1572
1573 wxPy_END_ALLOW_THREADS;
4dfaa61e 1574 if (PyErr_Occurred()) return NULL;
9df61a29 1575}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1576{
1577 if (_obj6)
1578 delete _arg6;
1579}
1580{
1581 if (_obj7)
1582 delete _arg7;
1583}
21f8d7ea
RD
1584 return _resultobj;
1585}
1586
c368d904
RD
1587static wxToolBarToolBase * wxToolBarBase_AddSimpleTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1588 return self->AddTool(id, bitmap, wxNullBitmap, isToggle, NULL,
ab2208b5
RD
1589 shortHelpString, longHelpString);
1590 }
1591static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1592 PyObject * _resultobj;
ab2208b5
RD
1593 wxToolBarToolBase * _result;
1594 wxToolBarBase * _arg0;
1595 int _arg1;
1596 wxBitmap * _arg2;
1597 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
1598 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1599 int _arg5 = (int ) FALSE;
2d091820 1600 PyObject * _argo0 = 0;
ab2208b5
RD
1601 PyObject * _argo2 = 0;
1602 PyObject * _obj3 = 0;
1603 PyObject * _obj4 = 0;
c368d904 1604 char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
b26e2dc4
RD
1605
1606 self = self;
ab2208b5 1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5))
b26e2dc4 1608 return NULL;
2d091820
RD
1609 if (_argo0) {
1610 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1613 return NULL;
1614 }
1615 }
ab2208b5
RD
1616 if (_argo2) {
1617 if (_argo2 == Py_None) { _arg2 = NULL; }
1618 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1619 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1620 return NULL;
1621 }
1622 }
1623 if (_obj3)
1624{
2cd2fac8
RD
1625#if PYTHON_API_VERSION >= 1009
1626 char* tmpPtr; int tmpSize;
1627 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7a446686 1628 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1629 return NULL;
1630 }
1631 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1632 return NULL;
1633 _arg3 = new wxString(tmpPtr, tmpSize);
1634#else
ab2208b5
RD
1635 if (!PyString_Check(_obj3)) {
1636 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1637 return NULL;
1638 }
2cd2fac8
RD
1639 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1640#endif
ab2208b5
RD
1641}
1642 if (_obj4)
1643{
2cd2fac8
RD
1644#if PYTHON_API_VERSION >= 1009
1645 char* tmpPtr; int tmpSize;
1646 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
7a446686 1647 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1648 return NULL;
1649 }
1650 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1651 return NULL;
1652 _arg4 = new wxString(tmpPtr, tmpSize);
1653#else
ab2208b5
RD
1654 if (!PyString_Check(_obj4)) {
1655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1656 return NULL;
1657 }
2cd2fac8
RD
1658 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1659#endif
ab2208b5 1660}
ab9bc19b
RD
1661{
1662 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1663 _result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5);
ab9bc19b
RD
1664
1665 wxPy_END_ALLOW_THREADS;
4dfaa61e 1666 if (PyErr_Occurred()) return NULL;
9df61a29 1667}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1668{
1669 if (_obj3)
1670 delete _arg3;
1671}
1672{
1673 if (_obj4)
1674 delete _arg4;
1675}
b26e2dc4
RD
1676 return _resultobj;
1677}
1678
c368d904 1679static 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) {
ab2208b5
RD
1680 wxPyUserData* udata = NULL;
1681 if (clientData)
1682 udata = new wxPyUserData(clientData);
c368d904 1683 return self->InsertTool(pos, id, bitmap, pushedBitmap, (bool)isToggle,
ab2208b5
RD
1684 udata, shortHelpString, longHelpString);
1685 }
1686static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1687 PyObject * _resultobj;
ab2208b5
RD
1688 wxToolBarToolBase * _result;
1689 wxToolBarBase * _arg0;
1690 size_t _arg1;
1691 int _arg2;
1692 wxBitmap * _arg3;
1693 wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
1694 int _arg5 = (int ) FALSE;
1695 PyObject * _arg6 = (PyObject *) NULL;
1696 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1697 wxString * _arg8 = (wxString *) &wxPyEmptyStr;
2d091820 1698 PyObject * _argo0 = 0;
ab2208b5
RD
1699 PyObject * _argo3 = 0;
1700 PyObject * _argo4 = 0;
1701 PyObject * _obj6 = 0;
1702 PyObject * _obj7 = 0;
1703 PyObject * _obj8 = 0;
c368d904 1704 char *_kwnames[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
21f8d7ea
RD
1705
1706 self = self;
ab2208b5 1707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8))
21f8d7ea 1708 return NULL;
2d091820
RD
1709 if (_argo0) {
1710 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1713 return NULL;
1714 }
1715 }
ab2208b5
RD
1716 if (_argo3) {
1717 if (_argo3 == Py_None) { _arg3 = NULL; }
1718 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1719 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1720 return NULL;
1721 }
1722 }
1723 if (_argo4) {
1724 if (_argo4 == Py_None) { _arg4 = NULL; }
1725 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1727 return NULL;
1728 }
1729 }
1730 if (_obj6)
1731{
1732 _arg6 = _obj6;
1733}
1734 if (_obj7)
1735{
2cd2fac8
RD
1736#if PYTHON_API_VERSION >= 1009
1737 char* tmpPtr; int tmpSize;
1738 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
7a446686 1739 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1740 return NULL;
1741 }
1742 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1743 return NULL;
1744 _arg7 = new wxString(tmpPtr, tmpSize);
1745#else
ab2208b5
RD
1746 if (!PyString_Check(_obj7)) {
1747 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1748 return NULL;
1749 }
2cd2fac8
RD
1750 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1751#endif
ab2208b5
RD
1752}
1753 if (_obj8)
1754{
2cd2fac8
RD
1755#if PYTHON_API_VERSION >= 1009
1756 char* tmpPtr; int tmpSize;
1757 if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) {
7a446686 1758 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1759 return NULL;
1760 }
1761 if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1)
1762 return NULL;
1763 _arg8 = new wxString(tmpPtr, tmpSize);
1764#else
ab2208b5
RD
1765 if (!PyString_Check(_obj8)) {
1766 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1767 return NULL;
1768 }
2cd2fac8
RD
1769 _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8));
1770#endif
ab2208b5 1771}
ab9bc19b
RD
1772{
1773 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1774 _result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8);
ab9bc19b
RD
1775
1776 wxPy_END_ALLOW_THREADS;
4dfaa61e 1777 if (PyErr_Occurred()) return NULL;
9df61a29 1778}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1779{
1780 if (_obj7)
1781 delete _arg7;
1782}
1783{
1784 if (_obj8)
1785 delete _arg8;
1786}
21f8d7ea
RD
1787 return _resultobj;
1788}
1789
c368d904
RD
1790static wxToolBarToolBase * wxToolBarBase_InsertSimpleTool(wxToolBarBase *self,size_t pos,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1791 return self->InsertTool(pos, id, bitmap, wxNullBitmap, isToggle, NULL,
ab2208b5
RD
1792 shortHelpString, longHelpString);
1793 }
1794static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1795 PyObject * _resultobj;
ab2208b5
RD
1796 wxToolBarToolBase * _result;
1797 wxToolBarBase * _arg0;
1798 size_t _arg1;
1799 int _arg2;
1800 wxBitmap * _arg3;
1801 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1802 wxString * _arg5 = (wxString *) &wxPyEmptyStr;
1803 int _arg6 = (int ) FALSE;
2d091820 1804 PyObject * _argo0 = 0;
ab2208b5
RD
1805 PyObject * _argo3 = 0;
1806 PyObject * _obj4 = 0;
1807 PyObject * _obj5 = 0;
c368d904 1808 char *_kwnames[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
b26e2dc4
RD
1809
1810 self = self;
ab2208b5 1811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6))
b26e2dc4 1812 return NULL;
2d091820
RD
1813 if (_argo0) {
1814 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1817 return NULL;
1818 }
1819 }
ab2208b5
RD
1820 if (_argo3) {
1821 if (_argo3 == Py_None) { _arg3 = NULL; }
1822 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1823 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1824 return NULL;
1825 }
1826 }
1827 if (_obj4)
1828{
2cd2fac8
RD
1829#if PYTHON_API_VERSION >= 1009
1830 char* tmpPtr; int tmpSize;
1831 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
7a446686 1832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1833 return NULL;
1834 }
1835 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1836 return NULL;
1837 _arg4 = new wxString(tmpPtr, tmpSize);
1838#else
ab2208b5
RD
1839 if (!PyString_Check(_obj4)) {
1840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1841 return NULL;
1842 }
2cd2fac8
RD
1843 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1844#endif
ab2208b5
RD
1845}
1846 if (_obj5)
1847{
2cd2fac8
RD
1848#if PYTHON_API_VERSION >= 1009
1849 char* tmpPtr; int tmpSize;
1850 if (!PyString_Check(_obj5) && !PyUnicode_Check(_obj5)) {
7a446686 1851 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1852 return NULL;
1853 }
1854 if (PyString_AsStringAndSize(_obj5, &tmpPtr, &tmpSize) == -1)
1855 return NULL;
1856 _arg5 = new wxString(tmpPtr, tmpSize);
1857#else
ab2208b5
RD
1858 if (!PyString_Check(_obj5)) {
1859 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1860 return NULL;
1861 }
2cd2fac8
RD
1862 _arg5 = new wxString(PyString_AS_STRING(_obj5), PyString_GET_SIZE(_obj5));
1863#endif
ab2208b5 1864}
ab9bc19b
RD
1865{
1866 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1867 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6);
ab9bc19b
RD
1868
1869 wxPy_END_ALLOW_THREADS;
4dfaa61e 1870 if (PyErr_Occurred()) return NULL;
9df61a29 1871}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1872{
1873 if (_obj4)
1874 delete _arg4;
1875}
1876{
1877 if (_obj5)
1878 delete _arg5;
1879}
b26e2dc4
RD
1880 return _resultobj;
1881}
1882
ab2208b5
RD
1883#define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1884static PyObject *_wrap_wxToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1885 PyObject * _resultobj;
ab2208b5
RD
1886 wxToolBarToolBase * _result;
1887 wxToolBarBase * _arg0;
1888 wxControl * _arg1;
2d091820 1889 PyObject * _argo0 = 0;
ab2208b5
RD
1890 PyObject * _argo1 = 0;
1891 char *_kwnames[] = { "self","control", NULL };
21f8d7ea
RD
1892
1893 self = self;
ab2208b5 1894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1))
21f8d7ea 1895 return NULL;
2d091820
RD
1896 if (_argo0) {
1897 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1900 return NULL;
1901 }
1902 }
ab2208b5
RD
1903 if (_argo1) {
1904 if (_argo1 == Py_None) { _arg1 = NULL; }
1905 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxControl_p")) {
1906 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
21f8d7ea 1907 return NULL;
ab2208b5 1908 }
21f8d7ea 1909 }
21f8d7ea 1910{
ab9bc19b 1911 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1912 _result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1);
ab9bc19b
RD
1913
1914 wxPy_END_ALLOW_THREADS;
4dfaa61e 1915 if (PyErr_Occurred()) return NULL;
9df61a29 1916}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5 1917 return _resultobj;
21f8d7ea 1918}
ab2208b5
RD
1919
1920#define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1921static PyObject *_wrap_wxToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1922 PyObject * _resultobj;
1923 wxToolBarToolBase * _result;
1924 wxToolBarBase * _arg0;
1925 size_t _arg1;
1926 wxControl * _arg2;
1927 PyObject * _argo0 = 0;
1928 PyObject * _argo2 = 0;
1929 char *_kwnames[] = { "self","pos","control", NULL };
ab2208b5
RD
1930
1931 self = self;
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2))
1933 return NULL;
1934 if (_argo0) {
1935 if (_argo0 == Py_None) { _arg0 = NULL; }
1936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1938 return NULL;
1939 }
1940 }
1941 if (_argo2) {
1942 if (_argo2 == Py_None) { _arg2 = NULL; }
1943 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxControl_p")) {
1944 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1945 return NULL;
1946 }
1947 }
21f8d7ea 1948{
ab2208b5
RD
1949 wxPy_BEGIN_ALLOW_THREADS;
1950 _result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2);
1951
1952 wxPy_END_ALLOW_THREADS;
4dfaa61e 1953 if (PyErr_Occurred()) return NULL;
9df61a29 1954}{ _resultobj = wxPyMake_wxObject(_result); }
21f8d7ea
RD
1955 return _resultobj;
1956}
1957
ab2208b5
RD
1958#define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1959static PyObject *_wrap_wxToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1960 PyObject * _resultobj;
ab2208b5
RD
1961 wxToolBarToolBase * _result;
1962 wxToolBarBase * _arg0;
2d091820 1963 PyObject * _argo0 = 0;
107e4716 1964 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1965
1966 self = self;
ab2208b5 1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0))
b26e2dc4 1968 return NULL;
2d091820
RD
1969 if (_argo0) {
1970 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1973 return NULL;
1974 }
1975 }
b26e2dc4 1976{
ab9bc19b 1977 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1978 _result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0);
ab9bc19b
RD
1979
1980 wxPy_END_ALLOW_THREADS;
4dfaa61e 1981 if (PyErr_Occurred()) return NULL;
9df61a29 1982}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
1983 return _resultobj;
1984}
1985
ab2208b5
RD
1986#define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1987static PyObject *_wrap_wxToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1988 PyObject * _resultobj;
ab2208b5
RD
1989 wxToolBarToolBase * _result;
1990 wxToolBarBase * _arg0;
1991 size_t _arg1;
2d091820 1992 PyObject * _argo0 = 0;
ab2208b5 1993 char *_kwnames[] = { "self","pos", NULL };
21f8d7ea
RD
1994
1995 self = self;
ab2208b5 1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1))
21f8d7ea 1997 return NULL;
2d091820
RD
1998 if (_argo0) {
1999 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
21f8d7ea
RD
2002 return NULL;
2003 }
2004 }
2005{
ab2208b5
RD
2006 wxPy_BEGIN_ALLOW_THREADS;
2007 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1);
2008
2009 wxPy_END_ALLOW_THREADS;
4dfaa61e 2010 if (PyErr_Occurred()) return NULL;
9df61a29 2011}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
2012 return _resultobj;
2013}
2014
2015#define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2016static PyObject *_wrap_wxToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2017 PyObject * _resultobj;
2018 wxToolBarToolBase * _result;
2019 wxToolBarBase * _arg0;
2020 int _arg1;
2021 PyObject * _argo0 = 0;
2022 char *_kwnames[] = { "self","id", NULL };
ab2208b5
RD
2023
2024 self = self;
2025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1))
21f8d7ea 2026 return NULL;
ab2208b5
RD
2027 if (_argo0) {
2028 if (_argo0 == Py_None) { _arg0 = NULL; }
2029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2031 return NULL;
2032 }
21f8d7ea 2033 }
ab2208b5
RD
2034{
2035 wxPy_BEGIN_ALLOW_THREADS;
2036 _result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1);
2037
2038 wxPy_END_ALLOW_THREADS;
4dfaa61e 2039 if (PyErr_Occurred()) return NULL;
9df61a29 2040}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5 2041 return _resultobj;
21f8d7ea 2042}
ab2208b5
RD
2043
2044#define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2045static PyObject *_wrap_wxToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2046 PyObject * _resultobj;
2047 bool _result;
2048 wxToolBarBase * _arg0;
2049 size_t _arg1;
2050 PyObject * _argo0 = 0;
2051 char *_kwnames[] = { "self","pos", NULL };
2052
2053 self = self;
2054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames,&_argo0,&_arg1))
2055 return NULL;
2056 if (_argo0) {
2057 if (_argo0 == Py_None) { _arg0 = NULL; }
2058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2060 return NULL;
2061 }
2062 }
21f8d7ea 2063{
ab9bc19b 2064 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2065 _result = (bool )wxToolBarBase_DeleteToolByPos(_arg0,_arg1);
ab9bc19b
RD
2066
2067 wxPy_END_ALLOW_THREADS;
4dfaa61e 2068 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2069} _resultobj = Py_BuildValue("i",_result);
2070 return _resultobj;
21f8d7ea 2071}
ab2208b5
RD
2072
2073#define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2074static PyObject *_wrap_wxToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2075 PyObject * _resultobj;
2076 bool _result;
2077 wxToolBarBase * _arg0;
2078 int _arg1;
2079 PyObject * _argo0 = 0;
2080 char *_kwnames[] = { "self","id", NULL };
2081
2082 self = self;
2083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteTool",_kwnames,&_argo0,&_arg1))
2084 return NULL;
2085 if (_argo0) {
2086 if (_argo0 == Py_None) { _arg0 = NULL; }
2087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2089 return NULL;
2090 }
2091 }
21f8d7ea 2092{
ab2208b5
RD
2093 wxPy_BEGIN_ALLOW_THREADS;
2094 _result = (bool )wxToolBarBase_DeleteTool(_arg0,_arg1);
2095
2096 wxPy_END_ALLOW_THREADS;
4dfaa61e 2097 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2098} _resultobj = Py_BuildValue("i",_result);
2099 return _resultobj;
21f8d7ea 2100}
ab2208b5
RD
2101
2102#define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2103static PyObject *_wrap_wxToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject * _resultobj;
2105 wxToolBarBase * _arg0;
2106 PyObject * _argo0 = 0;
2107 char *_kwnames[] = { "self", NULL };
2108
2109 self = self;
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_ClearTools",_kwnames,&_argo0))
2111 return NULL;
2112 if (_argo0) {
2113 if (_argo0 == Py_None) { _arg0 = NULL; }
2114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2116 return NULL;
2117 }
2118 }
2119{
2120 wxPy_BEGIN_ALLOW_THREADS;
2121 wxToolBarBase_ClearTools(_arg0);
2122
2123 wxPy_END_ALLOW_THREADS;
4dfaa61e 2124 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2125} Py_INCREF(Py_None);
2126 _resultobj = Py_None;
21f8d7ea
RD
2127 return _resultobj;
2128}
2129
ab2208b5
RD
2130#define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2131static PyObject *_wrap_wxToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2132 PyObject * _resultobj;
ab2208b5
RD
2133 bool _result;
2134 wxToolBarBase * _arg0;
2d091820 2135 PyObject * _argo0 = 0;
107e4716 2136 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2137
2138 self = self;
ab2208b5 2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_Realize",_kwnames,&_argo0))
b26e2dc4 2140 return NULL;
2d091820
RD
2141 if (_argo0) {
2142 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2145 return NULL;
2146 }
2147 }
b26e2dc4 2148{
ab9bc19b 2149 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2150 _result = (bool )wxToolBarBase_Realize(_arg0);
ab9bc19b
RD
2151
2152 wxPy_END_ALLOW_THREADS;
4dfaa61e 2153 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2154} _resultobj = Py_BuildValue("i",_result);
2155 return _resultobj;
b26e2dc4 2156}
ab2208b5
RD
2157
2158#define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2159static PyObject *_wrap_wxToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject * _resultobj;
2161 wxToolBarBase * _arg0;
2162 int _arg1;
2163 bool _arg2;
2164 PyObject * _argo0 = 0;
2165 int tempbool2;
2166 char *_kwnames[] = { "self","id","enable", NULL };
2167
2168 self = self;
2169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2170 return NULL;
2171 if (_argo0) {
2172 if (_argo0 == Py_None) { _arg0 = NULL; }
2173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2175 return NULL;
2176 }
2177 }
2178 _arg2 = (bool ) tempbool2;
2179{
2180 wxPy_BEGIN_ALLOW_THREADS;
2181 wxToolBarBase_EnableTool(_arg0,_arg1,_arg2);
2182
2183 wxPy_END_ALLOW_THREADS;
4dfaa61e 2184 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2185} Py_INCREF(Py_None);
2186 _resultobj = Py_None;
b26e2dc4
RD
2187 return _resultobj;
2188}
2189
ab2208b5
RD
2190#define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2191static PyObject *_wrap_wxToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2192 PyObject * _resultobj;
2193 wxToolBarBase * _arg0;
2194 int _arg1;
2195 bool _arg2;
2196 PyObject * _argo0 = 0;
2197 int tempbool2;
2198 char *_kwnames[] = { "self","id","toggle", NULL };
2199
2200 self = self;
2201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_ToggleTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2202 return NULL;
2203 if (_argo0) {
2204 if (_argo0 == Py_None) { _arg0 = NULL; }
2205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2207 return NULL;
2208 }
2209 }
2210 _arg2 = (bool ) tempbool2;
2211{
2212 wxPy_BEGIN_ALLOW_THREADS;
2213 wxToolBarBase_ToggleTool(_arg0,_arg1,_arg2);
2214
2215 wxPy_END_ALLOW_THREADS;
4dfaa61e 2216 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2217} Py_INCREF(Py_None);
2218 _resultobj = Py_None;
2219 return _resultobj;
b26e2dc4
RD
2220}
2221
ab2208b5
RD
2222#define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2223static PyObject *_wrap_wxToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
2224 PyObject * _resultobj;
2225 wxToolBarBase * _arg0;
2226 int _arg1;
2227 bool _arg2;
2228 PyObject * _argo0 = 0;
2229 int tempbool2;
2230 char *_kwnames[] = { "self","id","toggle", NULL };
2231
2232 self = self;
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetToggle",_kwnames,&_argo0,&_arg1,&tempbool2))
2234 return NULL;
2235 if (_argo0) {
2236 if (_argo0 == Py_None) { _arg0 = NULL; }
2237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2239 return NULL;
2240 }
2241 }
2242 _arg2 = (bool ) tempbool2;
2243{
2244 wxPy_BEGIN_ALLOW_THREADS;
2245 wxToolBarBase_SetToggle(_arg0,_arg1,_arg2);
2246
2247 wxPy_END_ALLOW_THREADS;
4dfaa61e 2248 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2249} Py_INCREF(Py_None);
2250 _resultobj = Py_None;
2251 return _resultobj;
b26e2dc4
RD
2252}
2253
ab2208b5
RD
2254static PyObject * wxToolBarBase_GetToolClientData(wxToolBarBase *self,int index) {
2255 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(index);
2256 if (udata) {
2257 Py_INCREF(udata->m_obj);
2258 return udata->m_obj;
2259 } else {
2260 Py_INCREF(Py_None);
2261 return Py_None;
2262 }
2263 }
2264static PyObject *_wrap_wxToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject * _resultobj;
2266 PyObject * _result;
2267 wxToolBarBase * _arg0;
2268 int _arg1;
2269 PyObject * _argo0 = 0;
2270 char *_kwnames[] = { "self","index", NULL };
2271
2272 self = self;
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolClientData",_kwnames,&_argo0,&_arg1))
2274 return NULL;
2275 if (_argo0) {
2276 if (_argo0 == Py_None) { _arg0 = NULL; }
2277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2279 return NULL;
2280 }
2281 }
2282{
2283 wxPy_BEGIN_ALLOW_THREADS;
2284 _result = (PyObject *)wxToolBarBase_GetToolClientData(_arg0,_arg1);
2285
2286 wxPy_END_ALLOW_THREADS;
4dfaa61e 2287 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2288}{
2289 _resultobj = _result;
2290}
2291 return _resultobj;
b26e2dc4
RD
2292}
2293
ab2208b5
RD
2294static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int index,PyObject * clientData) {
2295 self->SetToolClientData(index, new wxPyUserData(clientData));
2296 }
2297static PyObject *_wrap_wxToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2298 PyObject * _resultobj;
ab2208b5
RD
2299 wxToolBarBase * _arg0;
2300 int _arg1;
2301 PyObject * _arg2;
2d091820 2302 PyObject * _argo0 = 0;
37f6a977 2303 PyObject * _obj2 = 0;
ab2208b5 2304 char *_kwnames[] = { "self","index","clientData", NULL };
b26e2dc4
RD
2305
2306 self = self;
ab2208b5 2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolClientData",_kwnames,&_argo0,&_arg1,&_obj2))
b26e2dc4 2308 return NULL;
2d091820
RD
2309 if (_argo0) {
2310 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2313 return NULL;
2314 }
2315 }
37f6a977 2316{
ab2208b5 2317 _arg2 = _obj2;
37f6a977 2318}
ab9bc19b
RD
2319{
2320 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2321 wxToolBarBase_SetToolClientData(_arg0,_arg1,_arg2);
ab9bc19b
RD
2322
2323 wxPy_END_ALLOW_THREADS;
4dfaa61e 2324 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2325} Py_INCREF(Py_None);
2326 _resultobj = Py_None;
b26e2dc4
RD
2327 return _resultobj;
2328}
2329
ab2208b5
RD
2330#define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2331static PyObject *_wrap_wxToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962
RD
2332 PyObject * _resultobj;
2333 bool _result;
ab2208b5
RD
2334 wxToolBarBase * _arg0;
2335 int _arg1;
56f5d962 2336 PyObject * _argo0 = 0;
ab2208b5 2337 char *_kwnames[] = { "self","id", NULL };
56f5d962
RD
2338
2339 self = self;
ab2208b5 2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolState",_kwnames,&_argo0,&_arg1))
56f5d962
RD
2341 return NULL;
2342 if (_argo0) {
2343 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
56f5d962
RD
2346 return NULL;
2347 }
2348 }
2349{
2350 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2351 _result = (bool )wxToolBarBase_GetToolState(_arg0,_arg1);
56f5d962
RD
2352
2353 wxPy_END_ALLOW_THREADS;
4dfaa61e 2354 if (PyErr_Occurred()) return NULL;
56f5d962
RD
2355} _resultobj = Py_BuildValue("i",_result);
2356 return _resultobj;
2357}
2358
ab2208b5
RD
2359#define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2360static PyObject *_wrap_wxToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2361 PyObject * _resultobj;
ab2208b5
RD
2362 bool _result;
2363 wxToolBarBase * _arg0;
2364 int _arg1;
2d091820 2365 PyObject * _argo0 = 0;
ab2208b5 2366 char *_kwnames[] = { "self","id", NULL };
b26e2dc4
RD
2367
2368 self = self;
ab2208b5 2369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolEnabled",_kwnames,&_argo0,&_arg1))
b26e2dc4 2370 return NULL;
2d091820
RD
2371 if (_argo0) {
2372 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2375 return NULL;
2376 }
2377 }
ab9bc19b
RD
2378{
2379 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2380 _result = (bool )wxToolBarBase_GetToolEnabled(_arg0,_arg1);
ab9bc19b
RD
2381
2382 wxPy_END_ALLOW_THREADS;
4dfaa61e 2383 if (PyErr_Occurred()) return NULL;
ab2208b5 2384} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
2385 return _resultobj;
2386}
2387
ab2208b5
RD
2388#define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2389static PyObject *_wrap_wxToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 2390 PyObject * _resultobj;
ab2208b5
RD
2391 wxToolBarBase * _arg0;
2392 int _arg1;
2393 wxString * _arg2;
56f5d962 2394 PyObject * _argo0 = 0;
ab2208b5
RD
2395 PyObject * _obj2 = 0;
2396 char *_kwnames[] = { "self","id","helpString", NULL };
56f5d962
RD
2397
2398 self = self;
ab2208b5 2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2))
56f5d962
RD
2400 return NULL;
2401 if (_argo0) {
2402 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
56f5d962
RD
2405 return NULL;
2406 }
2407 }
ab2208b5 2408{
2cd2fac8
RD
2409#if PYTHON_API_VERSION >= 1009
2410 char* tmpPtr; int tmpSize;
2411 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 2412 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2413 return NULL;
2414 }
2415 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2416 return NULL;
2417 _arg2 = new wxString(tmpPtr, tmpSize);
2418#else
ab2208b5
RD
2419 if (!PyString_Check(_obj2)) {
2420 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2421 return NULL;
2422 }
2cd2fac8
RD
2423 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2424#endif
ab2208b5 2425}
56f5d962
RD
2426{
2427 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2428 wxToolBarBase_SetToolShortHelp(_arg0,_arg1,*_arg2);
56f5d962
RD
2429
2430 wxPy_END_ALLOW_THREADS;
4dfaa61e 2431 if (PyErr_Occurred()) return NULL;
56f5d962
RD
2432} Py_INCREF(Py_None);
2433 _resultobj = Py_None;
ab2208b5
RD
2434{
2435 if (_obj2)
2436 delete _arg2;
2437}
56f5d962
RD
2438 return _resultobj;
2439}
2440
ab2208b5
RD
2441#define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2442static PyObject *_wrap_wxToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2443 PyObject * _resultobj;
ab2208b5
RD
2444 wxString * _result;
2445 wxToolBarBase * _arg0;
b26e2dc4 2446 int _arg1;
2d091820 2447 PyObject * _argo0 = 0;
ab2208b5 2448 char *_kwnames[] = { "self","id", NULL };
b26e2dc4
RD
2449
2450 self = self;
ab2208b5 2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames,&_argo0,&_arg1))
b26e2dc4 2452 return NULL;
2d091820
RD
2453 if (_argo0) {
2454 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2457 return NULL;
2458 }
2459 }
ab9bc19b
RD
2460{
2461 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2462 _result = new wxString (wxToolBarBase_GetToolShortHelp(_arg0,_arg1));
ab9bc19b
RD
2463
2464 wxPy_END_ALLOW_THREADS;
4dfaa61e 2465 if (PyErr_Occurred()) return NULL;
ab2208b5 2466}{
e02c03a4 2467 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
b26e2dc4
RD
2468}
2469{
ab2208b5 2470 delete _result;
b26e2dc4
RD
2471}
2472 return _resultobj;
2473}
2474
ab2208b5
RD
2475#define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2476static PyObject *_wrap_wxToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
dd9a3de8 2477 PyObject * _resultobj;
ab2208b5 2478 wxToolBarBase * _arg0;
dd9a3de8 2479 int _arg1;
ab2208b5 2480 wxString * _arg2;
2d091820 2481 PyObject * _argo0 = 0;
ab2208b5
RD
2482 PyObject * _obj2 = 0;
2483 char *_kwnames[] = { "self","id","helpString", NULL };
dd9a3de8
RD
2484
2485 self = self;
ab2208b5 2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2))
dd9a3de8 2487 return NULL;
2d091820
RD
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
dd9a3de8
RD
2492 return NULL;
2493 }
2494 }
dd9a3de8 2495{
2cd2fac8
RD
2496#if PYTHON_API_VERSION >= 1009
2497 char* tmpPtr; int tmpSize;
2498 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 2499 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2500 return NULL;
2501 }
2502 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2503 return NULL;
2504 _arg2 = new wxString(tmpPtr, tmpSize);
2505#else
ab2208b5 2506 if (!PyString_Check(_obj2)) {
dd9a3de8
RD
2507 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2508 return NULL;
2509 }
2cd2fac8
RD
2510 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2511#endif
dd9a3de8 2512}
dd9a3de8 2513{
ab2208b5
RD
2514 wxPy_BEGIN_ALLOW_THREADS;
2515 wxToolBarBase_SetToolLongHelp(_arg0,_arg1,*_arg2);
2516
2517 wxPy_END_ALLOW_THREADS;
4dfaa61e 2518 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2519} Py_INCREF(Py_None);
2520 _resultobj = Py_None;
2521{
2522 if (_obj2)
2523 delete _arg2;
2524}
2525 return _resultobj;
2526}
2527
2528#define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2529static PyObject *_wrap_wxToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2530 PyObject * _resultobj;
2531 wxString * _result;
2532 wxToolBarBase * _arg0;
2533 int _arg1;
2534 PyObject * _argo0 = 0;
2535 char *_kwnames[] = { "self","id", NULL };
2536
2537 self = self;
2538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames,&_argo0,&_arg1))
dd9a3de8 2539 return NULL;
ab2208b5
RD
2540 if (_argo0) {
2541 if (_argo0 == Py_None) { _arg0 = NULL; }
2542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2544 return NULL;
2545 }
dd9a3de8 2546 }
ab9bc19b
RD
2547{
2548 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2549 _result = new wxString (wxToolBarBase_GetToolLongHelp(_arg0,_arg1));
ab9bc19b
RD
2550
2551 wxPy_END_ALLOW_THREADS;
4dfaa61e 2552 if (PyErr_Occurred()) return NULL;
ab2208b5 2553}{
e02c03a4 2554 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
dd9a3de8
RD
2555}
2556{
ab2208b5 2557 delete _result;
dd9a3de8
RD
2558}
2559 return _resultobj;
2560}
2561
ab2208b5
RD
2562#define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2563static PyObject *_wrap_wxToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2564 PyObject * _resultobj;
ab2208b5 2565 wxToolBarBase * _arg0;
b26e2dc4 2566 int _arg1;
ab2208b5 2567 int _arg2;
2d091820 2568 PyObject * _argo0 = 0;
ab2208b5 2569 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
2570
2571 self = self;
ab2208b5 2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 2573 return NULL;
2d091820
RD
2574 if (_argo0) {
2575 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2578 return NULL;
2579 }
2580 }
ab9bc19b
RD
2581{
2582 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2583 wxToolBarBase_SetMarginsXY(_arg0,_arg1,_arg2);
ab9bc19b
RD
2584
2585 wxPy_END_ALLOW_THREADS;
4dfaa61e 2586 if (PyErr_Occurred()) return NULL;
ab9bc19b 2587} Py_INCREF(Py_None);
b26e2dc4
RD
2588 _resultobj = Py_None;
2589 return _resultobj;
2590}
2591
ab2208b5
RD
2592#define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2593static PyObject *_wrap_wxToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 2594 PyObject * _resultobj;
ab2208b5
RD
2595 wxToolBarBase * _arg0;
2596 wxSize * _arg1;
56f5d962 2597 PyObject * _argo0 = 0;
ab2208b5
RD
2598 wxSize temp;
2599 PyObject * _obj1 = 0;
2600 char *_kwnames[] = { "self","size", NULL };
56f5d962
RD
2601
2602 self = self;
ab2208b5 2603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetMargins",_kwnames,&_argo0,&_obj1))
56f5d962
RD
2604 return NULL;
2605 if (_argo0) {
2606 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
56f5d962
RD
2609 return NULL;
2610 }
2611 }
ab2208b5
RD
2612{
2613 _arg1 = &temp;
2614 if (! wxSize_helper(_obj1, &_arg1))
2615 return NULL;
2616}
56f5d962
RD
2617{
2618 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2619 wxToolBarBase_SetMargins(_arg0,*_arg1);
56f5d962
RD
2620
2621 wxPy_END_ALLOW_THREADS;
4dfaa61e 2622 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2623} Py_INCREF(Py_None);
2624 _resultobj = Py_None;
56f5d962
RD
2625 return _resultobj;
2626}
2627
ab2208b5
RD
2628#define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2629static PyObject *_wrap_wxToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2630 PyObject * _resultobj;
ab2208b5 2631 wxToolBarBase * _arg0;
b26e2dc4 2632 int _arg1;
2d091820 2633 PyObject * _argo0 = 0;
ab2208b5 2634 char *_kwnames[] = { "self","packing", NULL };
b26e2dc4
RD
2635
2636 self = self;
ab2208b5 2637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolPacking",_kwnames,&_argo0,&_arg1))
b26e2dc4 2638 return NULL;
2d091820
RD
2639 if (_argo0) {
2640 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2641 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2642 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2643 return NULL;
2644 }
2645 }
ab9bc19b
RD
2646{
2647 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2648 wxToolBarBase_SetToolPacking(_arg0,_arg1);
ab9bc19b
RD
2649
2650 wxPy_END_ALLOW_THREADS;
4dfaa61e 2651 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2652} Py_INCREF(Py_None);
2653 _resultobj = Py_None;
b26e2dc4
RD
2654 return _resultobj;
2655}
2656
ab2208b5
RD
2657#define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2658static PyObject *_wrap_wxToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2659 PyObject * _resultobj;
ab2208b5 2660 wxToolBarBase * _arg0;
c95e68d8 2661 int _arg1;
2d091820 2662 PyObject * _argo0 = 0;
ab2208b5 2663 char *_kwnames[] = { "self","separation", NULL };
c95e68d8
RD
2664
2665 self = self;
ab2208b5 2666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolSeparation",_kwnames,&_argo0,&_arg1))
c95e68d8 2667 return NULL;
2d091820
RD
2668 if (_argo0) {
2669 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
c95e68d8
RD
2672 return NULL;
2673 }
2674 }
c95e68d8 2675{
ab9bc19b 2676 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2677 wxToolBarBase_SetToolSeparation(_arg0,_arg1);
ab9bc19b
RD
2678
2679 wxPy_END_ALLOW_THREADS;
4dfaa61e 2680 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2681} Py_INCREF(Py_None);
2682 _resultobj = Py_None;
2683 return _resultobj;
c95e68d8 2684}
ab2208b5
RD
2685
2686#define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2687static PyObject *_wrap_wxToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2688 PyObject * _resultobj;
2689 wxSize * _result;
2690 wxToolBarBase * _arg0;
2691 PyObject * _argo0 = 0;
2692 char *_kwnames[] = { "self", NULL };
2693 char _ptemp[128];
2694
2695 self = self;
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolMargins",_kwnames,&_argo0))
2697 return NULL;
2698 if (_argo0) {
2699 if (_argo0 == Py_None) { _arg0 = NULL; }
2700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2702 return NULL;
2703 }
2704 }
c95e68d8 2705{
ab2208b5
RD
2706 wxPy_BEGIN_ALLOW_THREADS;
2707 _result = new wxSize (wxToolBarBase_GetToolMargins(_arg0));
2708
2709 wxPy_END_ALLOW_THREADS;
4dfaa61e 2710 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2711} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2712 _resultobj = Py_BuildValue("s",_ptemp);
2713 return _resultobj;
c95e68d8 2714}
ab2208b5 2715
5e40f9dd
RD
2716#define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2717static PyObject *_wrap_wxToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2718 PyObject * _resultobj;
2719 wxSize * _result;
2720 wxToolBarBase * _arg0;
2721 PyObject * _argo0 = 0;
2722 char *_kwnames[] = { "self", NULL };
2723 char _ptemp[128];
2724
2725 self = self;
2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMargins",_kwnames,&_argo0))
2727 return NULL;
2728 if (_argo0) {
2729 if (_argo0 == Py_None) { _arg0 = NULL; }
2730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2732 return NULL;
2733 }
2734 }
2735{
2736 wxPy_BEGIN_ALLOW_THREADS;
2737 _result = new wxSize (wxToolBarBase_GetMargins(_arg0));
2738
2739 wxPy_END_ALLOW_THREADS;
4dfaa61e 2740 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
2741} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2742 _resultobj = Py_BuildValue("s",_ptemp);
2743 return _resultobj;
2744}
2745
ab2208b5
RD
2746#define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2747static PyObject *_wrap_wxToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject * _resultobj;
2749 int _result;
2750 wxToolBarBase * _arg0;
2751 PyObject * _argo0 = 0;
2752 char *_kwnames[] = { "self", NULL };
2753
2754 self = self;
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolPacking",_kwnames,&_argo0))
2756 return NULL;
2757 if (_argo0) {
2758 if (_argo0 == Py_None) { _arg0 = NULL; }
2759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2761 return NULL;
2762 }
2763 }
2764{
2765 wxPy_BEGIN_ALLOW_THREADS;
2766 _result = (int )wxToolBarBase_GetToolPacking(_arg0);
2767
2768 wxPy_END_ALLOW_THREADS;
4dfaa61e 2769 if (PyErr_Occurred()) return NULL;
ab2208b5 2770} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2771 return _resultobj;
2772}
2773
ab2208b5
RD
2774#define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2775static PyObject *_wrap_wxToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
2776 PyObject * _resultobj;
2777 int _result;
ab2208b5 2778 wxToolBarBase * _arg0;
2d091820 2779 PyObject * _argo0 = 0;
107e4716 2780 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
2781
2782 self = self;
ab2208b5 2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSeparation",_kwnames,&_argo0))
c95e68d8 2784 return NULL;
2d091820
RD
2785 if (_argo0) {
2786 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
c95e68d8
RD
2789 return NULL;
2790 }
2791 }
ab9bc19b
RD
2792{
2793 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2794 _result = (int )wxToolBarBase_GetToolSeparation(_arg0);
ab9bc19b
RD
2795
2796 wxPy_END_ALLOW_THREADS;
4dfaa61e 2797 if (PyErr_Occurred()) return NULL;
ab9bc19b 2798} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2799 return _resultobj;
2800}
2801
ab2208b5
RD
2802#define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2803static PyObject *_wrap_wxToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2804 PyObject * _resultobj;
ab2208b5
RD
2805 wxToolBarBase * _arg0;
2806 int _arg1;
2d091820 2807 PyObject * _argo0 = 0;
ab2208b5 2808 char *_kwnames[] = { "self","nRows", NULL };
c95e68d8
RD
2809
2810 self = self;
ab2208b5 2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetRows",_kwnames,&_argo0,&_arg1))
c95e68d8 2812 return NULL;
2d091820
RD
2813 if (_argo0) {
2814 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
c95e68d8
RD
2817 return NULL;
2818 }
2819 }
ab9bc19b
RD
2820{
2821 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2822 wxToolBarBase_SetRows(_arg0,_arg1);
ab9bc19b
RD
2823
2824 wxPy_END_ALLOW_THREADS;
4dfaa61e 2825 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2826} Py_INCREF(Py_None);
2827 _resultobj = Py_None;
c95e68d8
RD
2828 return _resultobj;
2829}
2830
ab2208b5
RD
2831#define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2832static PyObject *_wrap_wxToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2833 PyObject * _resultobj;
ab2208b5 2834 wxToolBarBase * _arg0;
c95e68d8 2835 int _arg1;
ab2208b5 2836 int _arg2;
2d091820 2837 PyObject * _argo0 = 0;
ab2208b5 2838 char *_kwnames[] = { "self","rows","cols", NULL };
c95e68d8
RD
2839
2840 self = self;
ab2208b5 2841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames,&_argo0,&_arg1,&_arg2))
c95e68d8 2842 return NULL;
2d091820
RD
2843 if (_argo0) {
2844 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
c95e68d8
RD
2847 return NULL;
2848 }
2849 }
c95e68d8 2850{
ab9bc19b 2851 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2852 wxToolBarBase_SetMaxRowsCols(_arg0,_arg1,_arg2);
ab9bc19b
RD
2853
2854 wxPy_END_ALLOW_THREADS;
4dfaa61e 2855 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2856} Py_INCREF(Py_None);
2857 _resultobj = Py_None;
c95e68d8
RD
2858 return _resultobj;
2859}
2860
ab2208b5
RD
2861#define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2862static PyObject *_wrap_wxToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2863 PyObject * _resultobj;
ab2208b5
RD
2864 int _result;
2865 wxToolBarBase * _arg0;
2d091820 2866 PyObject * _argo0 = 0;
ab2208b5 2867 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2868
2869 self = self;
ab2208b5 2870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxRows",_kwnames,&_argo0))
b26e2dc4 2871 return NULL;
2d091820
RD
2872 if (_argo0) {
2873 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2876 return NULL;
2877 }
2878 }
ab9bc19b
RD
2879{
2880 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2881 _result = (int )wxToolBarBase_GetMaxRows(_arg0);
ab9bc19b
RD
2882
2883 wxPy_END_ALLOW_THREADS;
4dfaa61e 2884 if (PyErr_Occurred()) return NULL;
ab9bc19b 2885} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
2886 return _resultobj;
2887}
2888
ab2208b5
RD
2889#define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2890static PyObject *_wrap_wxToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2891 PyObject * _resultobj;
ab2208b5
RD
2892 int _result;
2893 wxToolBarBase * _arg0;
2d091820 2894 PyObject * _argo0 = 0;
107e4716 2895 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2896
2897 self = self;
ab2208b5 2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxCols",_kwnames,&_argo0))
b26e2dc4 2899 return NULL;
2d091820
RD
2900 if (_argo0) {
2901 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2904 return NULL;
2905 }
2906 }
ab9bc19b
RD
2907{
2908 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2909 _result = (int )wxToolBarBase_GetMaxCols(_arg0);
ab9bc19b
RD
2910
2911 wxPy_END_ALLOW_THREADS;
4dfaa61e 2912 if (PyErr_Occurred()) return NULL;
ab9bc19b 2913} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2914 return _resultobj;
2915}
2916
ab2208b5
RD
2917#define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2918static PyObject *_wrap_wxToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2919 PyObject * _resultobj;
ab2208b5
RD
2920 wxToolBarBase * _arg0;
2921 wxSize * _arg1;
2d091820 2922 PyObject * _argo0 = 0;
ab2208b5
RD
2923 wxSize temp;
2924 PyObject * _obj1 = 0;
2925 char *_kwnames[] = { "self","size", NULL };
c95e68d8
RD
2926
2927 self = self;
ab2208b5 2928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames,&_argo0,&_obj1))
c95e68d8 2929 return NULL;
2d091820
RD
2930 if (_argo0) {
2931 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
c95e68d8
RD
2934 return NULL;
2935 }
2936 }
2937{
ab2208b5
RD
2938 _arg1 = &temp;
2939 if (! wxSize_helper(_obj1, &_arg1))
c95e68d8 2940 return NULL;
c95e68d8 2941}
ab9bc19b
RD
2942{
2943 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2944 wxToolBarBase_SetToolBitmapSize(_arg0,*_arg1);
ab9bc19b
RD
2945
2946 wxPy_END_ALLOW_THREADS;
4dfaa61e 2947 if (PyErr_Occurred()) return NULL;
ab9bc19b 2948} Py_INCREF(Py_None);
c95e68d8 2949 _resultobj = Py_None;
c95e68d8
RD
2950 return _resultobj;
2951}
2952
ab2208b5
RD
2953#define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2954static PyObject *_wrap_wxToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2955 PyObject * _resultobj;
ab2208b5
RD
2956 wxSize * _result;
2957 wxToolBarBase * _arg0;
2d091820 2958 PyObject * _argo0 = 0;
ab2208b5
RD
2959 char *_kwnames[] = { "self", NULL };
2960 char _ptemp[128];
c95e68d8
RD
2961
2962 self = self;
ab2208b5 2963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolBitmapSize",_kwnames,&_argo0))
c95e68d8 2964 return NULL;
2d091820
RD
2965 if (_argo0) {
2966 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
c95e68d8
RD
2969 return NULL;
2970 }
2971 }
2972{
ab2208b5
RD
2973 wxPy_BEGIN_ALLOW_THREADS;
2974 _result = new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0));
2975
2976 wxPy_END_ALLOW_THREADS;
4dfaa61e 2977 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2978} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2979 _resultobj = Py_BuildValue("s",_ptemp);
2980 return _resultobj;
2981}
2982
2983#define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2984static PyObject *_wrap_wxToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2985 PyObject * _resultobj;
2986 wxSize * _result;
2987 wxToolBarBase * _arg0;
2988 PyObject * _argo0 = 0;
2989 char *_kwnames[] = { "self", NULL };
2990 char _ptemp[128];
2991
2992 self = self;
2993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSize",_kwnames,&_argo0))
2994 return NULL;
2995 if (_argo0) {
2996 if (_argo0 == Py_None) { _arg0 = NULL; }
2997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
c95e68d8 2999 return NULL;
ab2208b5 3000 }
c95e68d8 3001 }
ab9bc19b
RD
3002{
3003 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 3004 _result = new wxSize (wxToolBarBase_GetToolSize(_arg0));
ab9bc19b
RD
3005
3006 wxPy_END_ALLOW_THREADS;
4dfaa61e 3007 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
3008} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3009 _resultobj = Py_BuildValue("s",_ptemp);
b26e2dc4
RD
3010 return _resultobj;
3011}
3012
ab2208b5
RD
3013static void *SwigwxToolBarTowxToolBarBase(void *ptr) {
3014 wxToolBar *src;
3015 wxToolBarBase *dest;
3016 src = (wxToolBar *) ptr;
3017 dest = (wxToolBarBase *) src;
3018 return (void *) dest;
3019}
3020
3021static void *SwigwxToolBarTowxControl(void *ptr) {
3022 wxToolBar *src;
3023 wxControl *dest;
3024 src = (wxToolBar *) ptr;
3025 dest = (wxControl *) src;
3026 return (void *) dest;
3027}
3028
3029static void *SwigwxToolBarTowxWindow(void *ptr) {
3030 wxToolBar *src;
3031 wxWindow *dest;
3032 src = (wxToolBar *) ptr;
3033 dest = (wxWindow *) src;
3034 return (void *) dest;
3035}
3036
3037static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
3038 wxToolBar *src;
3039 wxEvtHandler *dest;
3040 src = (wxToolBar *) ptr;
3041 dest = (wxEvtHandler *) src;
3042 return (void *) dest;
3043}
3044
9df61a29
RD
3045static void *SwigwxToolBarTowxObject(void *ptr) {
3046 wxToolBar *src;
3047 wxObject *dest;
3048 src = (wxToolBar *) ptr;
3049 dest = (wxObject *) src;
3050 return (void *) dest;
3051}
3052
ab2208b5
RD
3053#define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3054static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3055 PyObject * _resultobj;
ab2208b5
RD
3056 wxToolBar * _result;
3057 wxWindow * _arg0;
3058 wxWindowID _arg1;
b68dc582
RD
3059 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3060 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
ab2208b5 3061 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
8e425133 3062 char * _arg5 = (char *) wxToolBarNameStr;
2d091820 3063 PyObject * _argo0 = 0;
ab2208b5
RD
3064 wxPoint temp;
3065 PyObject * _obj2 = 0;
3066 wxSize temp0;
3067 PyObject * _obj3 = 0;
ab2208b5
RD
3068 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3069 char _ptemp[128];
b26e2dc4
RD
3070
3071 self = self;
8e425133 3072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
b26e2dc4 3073 return NULL;
2d091820
RD
3074 if (_argo0) {
3075 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
b26e2dc4
RD
3078 return NULL;
3079 }
3080 }
ab2208b5 3081 if (_obj2)
37f6a977 3082{
ab2208b5
RD
3083 _arg2 = &temp;
3084 if (! wxPoint_helper(_obj2, &_arg2))
3085 return NULL;
3086}
3087 if (_obj3)
3088{
3089 _arg3 = &temp0;
3090 if (! wxSize_helper(_obj3, &_arg3))
3091 return NULL;
37f6a977 3092}
ab9bc19b
RD
3093{
3094 wxPy_BEGIN_ALLOW_THREADS;
8e425133 3095 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
ab9bc19b
RD
3096
3097 wxPy_END_ALLOW_THREADS;
4dfaa61e 3098 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
3099} if (_result) {
3100 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3101 _resultobj = Py_BuildValue("s",_ptemp);
3102 } else {
3103 Py_INCREF(Py_None);
3104 _resultobj = Py_None;
3105 }
b26e2dc4
RD
3106 return _resultobj;
3107}
3108
aa2a5b86
RD
3109#define new_wxPreToolBar() (new wxToolBar())
3110static PyObject *_wrap_new_wxPreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3111 PyObject * _resultobj;
3112 wxToolBar * _result;
3113 char *_kwnames[] = { NULL };
3114 char _ptemp[128];
3115
3116 self = self;
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBar",_kwnames))
3118 return NULL;
3119{
3120 wxPy_BEGIN_ALLOW_THREADS;
3121 _result = (wxToolBar *)new_wxPreToolBar();
3122
3123 wxPy_END_ALLOW_THREADS;
3124 if (PyErr_Occurred()) return NULL;
3125} if (_result) {
3126 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3127 _resultobj = Py_BuildValue("s",_ptemp);
3128 } else {
3129 Py_INCREF(Py_None);
3130 _resultobj = Py_None;
3131 }
3132 return _resultobj;
3133}
3134
3135#define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3136static PyObject *_wrap_wxToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3137 PyObject * _resultobj;
3138 bool _result;
3139 wxToolBar * _arg0;
3140 wxWindow * _arg1;
3141 wxWindowID _arg2;
3142 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3143 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3144 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3145 char * _arg6 = (char *) wxToolBarNameStr;
3146 PyObject * _argo0 = 0;
3147 PyObject * _argo1 = 0;
3148 wxPoint temp;
3149 PyObject * _obj3 = 0;
3150 wxSize temp0;
3151 PyObject * _obj4 = 0;
3152 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3153
3154 self = self;
3155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3156 return NULL;
3157 if (_argo0) {
3158 if (_argo0 == Py_None) { _arg0 = NULL; }
3159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3161 return NULL;
3162 }
3163 }
3164 if (_argo1) {
3165 if (_argo1 == Py_None) { _arg1 = NULL; }
3166 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3167 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3168 return NULL;
3169 }
3170 }
3171 if (_obj3)
3172{
3173 _arg3 = &temp;
3174 if (! wxPoint_helper(_obj3, &_arg3))
3175 return NULL;
3176}
3177 if (_obj4)
3178{
3179 _arg4 = &temp0;
3180 if (! wxSize_helper(_obj4, &_arg4))
3181 return NULL;
3182}
3183{
3184 wxPy_BEGIN_ALLOW_THREADS;
3185 _result = (bool )wxToolBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3186
3187 wxPy_END_ALLOW_THREADS;
3188 if (PyErr_Occurred()) return NULL;
3189} _resultobj = Py_BuildValue("i",_result);
3190 return _resultobj;
3191}
3192
ab2208b5
RD
3193#define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3194static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3195 PyObject * _resultobj;
ab2208b5 3196 wxToolBarToolBase * _result;
b26e2dc4 3197 wxToolBar * _arg0;
ab2208b5
RD
3198 wxCoord _arg1;
3199 wxCoord _arg2;
2d091820 3200 PyObject * _argo0 = 0;
ab2208b5 3201 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
3202
3203 self = self;
ab2208b5 3204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 3205 return NULL;
2d091820
RD
3206 if (_argo0) {
3207 if (_argo0 == Py_None) { _arg0 = NULL; }
3208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
ab2208b5 3209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
b26e2dc4
RD
3210 return NULL;
3211 }
3212 }
ab9bc19b
RD
3213{
3214 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 3215 _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
ab9bc19b
RD
3216
3217 wxPy_END_ALLOW_THREADS;
4dfaa61e 3218 if (PyErr_Occurred()) return NULL;
9df61a29 3219}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
3220 return _resultobj;
3221}
3222
ab2208b5
RD
3223static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr) {
3224 wxToolBarSimple *src;
3225 wxToolBarBase *dest;
3226 src = (wxToolBarSimple *) ptr;
3227 dest = (wxToolBarBase *) src;
3228 return (void *) dest;
3229}
3230
3231static void *SwigwxToolBarSimpleTowxControl(void *ptr) {
3232 wxToolBarSimple *src;
3233 wxControl *dest;
3234 src = (wxToolBarSimple *) ptr;
3235 dest = (wxControl *) src;
3236 return (void *) dest;
3237}
3238
3239static void *SwigwxToolBarSimpleTowxWindow(void *ptr) {
3240 wxToolBarSimple *src;
3241 wxWindow *dest;
3242 src = (wxToolBarSimple *) ptr;
3243 dest = (wxWindow *) src;
3244 return (void *) dest;
3245}
3246
3247static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr) {
3248 wxToolBarSimple *src;
3249 wxEvtHandler *dest;
3250 src = (wxToolBarSimple *) ptr;
3251 dest = (wxEvtHandler *) src;
3252 return (void *) dest;
3253}
3254
9df61a29
RD
3255static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
3256 wxToolBarSimple *src;
3257 wxObject *dest;
3258 src = (wxToolBarSimple *) ptr;
3259 dest = (wxObject *) src;
3260 return (void *) dest;
3261}
3262
ab2208b5
RD
3263#define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3264static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3265 PyObject * _resultobj;
ab2208b5
RD
3266 wxToolBarSimple * _result;
3267 wxWindow * _arg0;
3268 wxWindowID _arg1;
b68dc582
RD
3269 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3270 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
ab2208b5 3271 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
e02c03a4 3272 char * _arg5 = (char *) wxToolBarNameStr;
2d091820 3273 PyObject * _argo0 = 0;
ab2208b5
RD
3274 wxPoint temp;
3275 PyObject * _obj2 = 0;
3276 wxSize temp0;
3277 PyObject * _obj3 = 0;
ab2208b5
RD
3278 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3279 char _ptemp[128];
b26e2dc4
RD
3280
3281 self = self;
e02c03a4 3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
b26e2dc4 3283 return NULL;
2d091820
RD
3284 if (_argo0) {
3285 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
b26e2dc4
RD
3288 return NULL;
3289 }
3290 }
ab2208b5
RD
3291 if (_obj2)
3292{
3293 _arg2 = &temp;
3294 if (! wxPoint_helper(_obj2, &_arg2))
3295 return NULL;
3296}
3297 if (_obj3)
3298{
3299 _arg3 = &temp0;
3300 if (! wxSize_helper(_obj3, &_arg3))
3301 return NULL;
ab2208b5 3302}
ab9bc19b
RD
3303{
3304 wxPy_BEGIN_ALLOW_THREADS;
e02c03a4 3305 _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
ab9bc19b
RD
3306
3307 wxPy_END_ALLOW_THREADS;
4dfaa61e 3308 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
3309} if (_result) {
3310 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3311 _resultobj = Py_BuildValue("s",_ptemp);
3312 } else {
3313 Py_INCREF(Py_None);
3314 _resultobj = Py_None;
3315 }
b26e2dc4
RD
3316 return _resultobj;
3317}
3318
aa2a5b86
RD
3319#define new_wxPreToolBarSimple() (new wxToolBarSimple())
3320static PyObject *_wrap_new_wxPreToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3321 PyObject * _resultobj;
3322 wxToolBarSimple * _result;
3323 char *_kwnames[] = { NULL };
3324 char _ptemp[128];
3325
3326 self = self;
3327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBarSimple",_kwnames))
3328 return NULL;
3329{
3330 wxPy_BEGIN_ALLOW_THREADS;
3331 _result = (wxToolBarSimple *)new_wxPreToolBarSimple();
3332
3333 wxPy_END_ALLOW_THREADS;
3334 if (PyErr_Occurred()) return NULL;
3335} if (_result) {
3336 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3337 _resultobj = Py_BuildValue("s",_ptemp);
3338 } else {
3339 Py_INCREF(Py_None);
3340 _resultobj = Py_None;
3341 }
3342 return _resultobj;
3343}
3344
3345#define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3346static PyObject *_wrap_wxToolBarSimple_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3347 PyObject * _resultobj;
3348 bool _result;
3349 wxToolBarSimple * _arg0;
3350 wxWindow * _arg1;
3351 wxWindowID _arg2;
3352 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3353 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3354 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3355 char * _arg6 = (char *) wxToolBarNameStr;
3356 PyObject * _argo0 = 0;
3357 PyObject * _argo1 = 0;
3358 wxPoint temp;
3359 PyObject * _obj3 = 0;
3360 wxSize temp0;
3361 PyObject * _obj4 = 0;
3362 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3363
3364 self = self;
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBarSimple_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3366 return NULL;
3367 if (_argo0) {
3368 if (_argo0 == Py_None) { _arg0 = NULL; }
3369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3371 return NULL;
3372 }
3373 }
3374 if (_argo1) {
3375 if (_argo1 == Py_None) { _arg1 = NULL; }
3376 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3377 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3378 return NULL;
3379 }
3380 }
3381 if (_obj3)
3382{
3383 _arg3 = &temp;
3384 if (! wxPoint_helper(_obj3, &_arg3))
3385 return NULL;
3386}
3387 if (_obj4)
3388{
3389 _arg4 = &temp0;
3390 if (! wxSize_helper(_obj4, &_arg4))
3391 return NULL;
3392}
3393{
3394 wxPy_BEGIN_ALLOW_THREADS;
3395 _result = (bool )wxToolBarSimple_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3396
3397 wxPy_END_ALLOW_THREADS;
3398 if (PyErr_Occurred()) return NULL;
3399} _resultobj = Py_BuildValue("i",_result);
3400 return _resultobj;
3401}
3402
ab2208b5
RD
3403#define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3404static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3405 PyObject * _resultobj;
ab2208b5
RD
3406 wxToolBarToolBase * _result;
3407 wxToolBarSimple * _arg0;
3408 wxCoord _arg1;
3409 wxCoord _arg2;
2d091820 3410 PyObject * _argo0 = 0;
ab2208b5 3411 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
3412
3413 self = self;
ab2208b5 3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 3415 return NULL;
2d091820
RD
3416 if (_argo0) {
3417 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
b26e2dc4
RD
3420 return NULL;
3421 }
3422 }
ab9bc19b
RD
3423{
3424 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 3425 _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);
ab9bc19b
RD
3426
3427 wxPy_END_ALLOW_THREADS;
4dfaa61e 3428 if (PyErr_Occurred()) return NULL;
9df61a29 3429}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
3430 return _resultobj;
3431}
3432
3433static PyMethodDef stattoolcMethods[] = {
ab2208b5 3434 { "wxToolBarSimple_FindToolForPosition", (PyCFunction) _wrap_wxToolBarSimple_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3435 { "wxToolBarSimple_Create", (PyCFunction) _wrap_wxToolBarSimple_Create, METH_VARARGS | METH_KEYWORDS },
3436 { "new_wxPreToolBarSimple", (PyCFunction) _wrap_new_wxPreToolBarSimple, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3437 { "new_wxToolBarSimple", (PyCFunction) _wrap_new_wxToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3438 { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3439 { "wxToolBar_Create", (PyCFunction) _wrap_wxToolBar_Create, METH_VARARGS | METH_KEYWORDS },
3440 { "new_wxPreToolBar", (PyCFunction) _wrap_new_wxPreToolBar, METH_VARARGS | METH_KEYWORDS },
107e4716 3441 { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3442 { "wxToolBarBase_GetToolSize", (PyCFunction) _wrap_wxToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
3443 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3444 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3445 { "wxToolBarBase_GetMaxCols", (PyCFunction) _wrap_wxToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
3446 { "wxToolBarBase_GetMaxRows", (PyCFunction) _wrap_wxToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
3447 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_wxToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
3448 { "wxToolBarBase_SetRows", (PyCFunction) _wrap_wxToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
3449 { "wxToolBarBase_GetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3450 { "wxToolBarBase_GetToolPacking", (PyCFunction) _wrap_wxToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 3451 { "wxToolBarBase_GetMargins", (PyCFunction) _wrap_wxToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3452 { "wxToolBarBase_GetToolMargins", (PyCFunction) _wrap_wxToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
3453 { "wxToolBarBase_SetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3454 { "wxToolBarBase_SetToolPacking", (PyCFunction) _wrap_wxToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
3455 { "wxToolBarBase_SetMargins", (PyCFunction) _wrap_wxToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
3456 { "wxToolBarBase_SetMarginsXY", (PyCFunction) _wrap_wxToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
3457 { "wxToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3458 { "wxToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3459 { "wxToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3460 { "wxToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3461 { "wxToolBarBase_GetToolEnabled", (PyCFunction) _wrap_wxToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
3462 { "wxToolBarBase_GetToolState", (PyCFunction) _wrap_wxToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
3463 { "wxToolBarBase_SetToolClientData", (PyCFunction) _wrap_wxToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
3464 { "wxToolBarBase_GetToolClientData", (PyCFunction) _wrap_wxToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
3465 { "wxToolBarBase_SetToggle", (PyCFunction) _wrap_wxToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3466 { "wxToolBarBase_ToggleTool", (PyCFunction) _wrap_wxToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
3467 { "wxToolBarBase_EnableTool", (PyCFunction) _wrap_wxToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
3468 { "wxToolBarBase_Realize", (PyCFunction) _wrap_wxToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
3469 { "wxToolBarBase_ClearTools", (PyCFunction) _wrap_wxToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
3470 { "wxToolBarBase_DeleteTool", (PyCFunction) _wrap_wxToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
3471 { "wxToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_wxToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
3472 { "wxToolBarBase_RemoveTool", (PyCFunction) _wrap_wxToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
3473 { "wxToolBarBase_InsertSeparator", (PyCFunction) _wrap_wxToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
3474 { "wxToolBarBase_AddSeparator", (PyCFunction) _wrap_wxToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
3475 { "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
3476 { "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
3477 { "wxToolBarBase_InsertSimpleTool", (PyCFunction) _wrap_wxToolBarBase_InsertSimpleTool, METH_VARARGS | METH_KEYWORDS },
3478 { "wxToolBarBase_InsertTool", (PyCFunction) _wrap_wxToolBarBase_InsertTool, METH_VARARGS | METH_KEYWORDS },
3479 { "wxToolBarBase_AddSimpleTool", (PyCFunction) _wrap_wxToolBarBase_AddSimpleTool, METH_VARARGS | METH_KEYWORDS },
3480 { "wxToolBarBase_AddTool", (PyCFunction) _wrap_wxToolBarBase_AddTool, METH_VARARGS | METH_KEYWORDS },
3481 { "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
3482 { "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
3483 { "wxToolBarToolBase_Attach", (PyCFunction) _wrap_wxToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
3484 { "wxToolBarToolBase_Detach", (PyCFunction) _wrap_wxToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
3485 { "wxToolBarToolBase_SetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap2, METH_VARARGS | METH_KEYWORDS },
3486 { "wxToolBarToolBase_SetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap1, METH_VARARGS | METH_KEYWORDS },
3487 { "wxToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
3488 { "wxToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
3489 { "wxToolBarToolBase_SetToggle", (PyCFunction) _wrap_wxToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3490 { "wxToolBarToolBase_Toggle", (PyCFunction) _wrap_wxToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
3491 { "wxToolBarToolBase_Enable", (PyCFunction) _wrap_wxToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
3492 { "wxToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
3493 { "wxToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
3494 { "wxToolBarToolBase_GetBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3495 { "wxToolBarToolBase_GetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap2, METH_VARARGS | METH_KEYWORDS },
3496 { "wxToolBarToolBase_GetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap1, METH_VARARGS | METH_KEYWORDS },
3497 { "wxToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_wxToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
3498 { "wxToolBarToolBase_IsToggled", (PyCFunction) _wrap_wxToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
3499 { "wxToolBarToolBase_IsEnabled", (PyCFunction) _wrap_wxToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
3500 { "wxToolBarToolBase_GetStyle", (PyCFunction) _wrap_wxToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
3501 { "wxToolBarToolBase_IsSeparator", (PyCFunction) _wrap_wxToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
3502 { "wxToolBarToolBase_IsControl", (PyCFunction) _wrap_wxToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
3503 { "wxToolBarToolBase_IsButton", (PyCFunction) _wrap_wxToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
3504 { "wxToolBarToolBase_GetToolBar", (PyCFunction) _wrap_wxToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
3505 { "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
3506 { "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
3507 { "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
2fc99549 3508 { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3509 { "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
3510 { "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
3511 { "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
2fc99549
RD
3512 { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
3513 { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3514 { "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
3515 { "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3516 { "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3517 { "wxStatusBar_Create", (PyCFunction) _wrap_wxStatusBar_Create, METH_VARARGS | METH_KEYWORDS },
3518 { "new_wxPreStatusBar", (PyCFunction) _wrap_new_wxPreStatusBar, METH_VARARGS | METH_KEYWORDS },
107e4716 3519 { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS },
b26e2dc4
RD
3520 { NULL, NULL }
3521};
2d091820
RD
3522#ifdef __cplusplus
3523}
3524#endif
3525/*
3526 * This table is used by the pointer type-checker
3527 */
3528static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 3529 { "_signed_long","_long",0},
4120ef2b 3530 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
3531 { "_wxPrintQuality","_int",0},
3532 { "_wxPrintQuality","_signed_int",0},
3533 { "_wxPrintQuality","_unsigned_int",0},
3534 { "_wxPrintQuality","_wxWindowID",0},
3535 { "_wxPrintQuality","_uint",0},
3536 { "_wxPrintQuality","_EBool",0},
3537 { "_wxPrintQuality","_size_t",0},
c368d904 3538 { "_wxPrintQuality","_time_t",0},
2d091820 3539 { "_byte","_unsigned_char",0},
2d091820
RD
3540 { "_long","_unsigned_long",0},
3541 { "_long","_signed_long",0},
4120ef2b 3542 { "_size_t","_wxCoord",0},
2d091820 3543 { "_size_t","_wxPrintQuality",0},
c368d904 3544 { "_size_t","_time_t",0},
2d091820
RD
3545 { "_size_t","_unsigned_int",0},
3546 { "_size_t","_int",0},
3547 { "_size_t","_wxWindowID",0},
3548 { "_size_t","_uint",0},
4120ef2b 3549 { "_uint","_wxCoord",0},
2d091820 3550 { "_uint","_wxPrintQuality",0},
c368d904 3551 { "_uint","_time_t",0},
2d091820
RD
3552 { "_uint","_size_t",0},
3553 { "_uint","_unsigned_int",0},
3554 { "_uint","_int",0},
3555 { "_uint","_wxWindowID",0},
f6bcfd97 3556 { "_wxChar","_char",0},
f6bcfd97 3557 { "_char","_wxChar",0},
32c988a3 3558 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 3559 { "_EBool","_wxCoord",0},
2d091820
RD
3560 { "_EBool","_wxPrintQuality",0},
3561 { "_EBool","_signed_int",0},
3562 { "_EBool","_int",0},
3563 { "_EBool","_wxWindowID",0},
2d091820 3564 { "_unsigned_long","_long",0},
32c988a3 3565 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 3566 { "_signed_int","_wxCoord",0},
2d091820
RD
3567 { "_signed_int","_wxPrintQuality",0},
3568 { "_signed_int","_EBool",0},
3569 { "_signed_int","_wxWindowID",0},
3570 { "_signed_int","_int",0},
2d091820
RD
3571 { "_WXTYPE","_short",0},
3572 { "_WXTYPE","_signed_short",0},
3573 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
3574 { "_unsigned_short","_WXTYPE",0},
3575 { "_unsigned_short","_short",0},
9df61a29 3576 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
9df61a29 3577 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
9df61a29 3578 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
9df61a29 3579 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
9df61a29 3580 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
2d091820
RD
3581 { "_signed_short","_WXTYPE",0},
3582 { "_signed_short","_short",0},
2d091820 3583 { "_unsigned_char","_byte",0},
ab2208b5 3584 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
2d091820 3585 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
ab2208b5 3586 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl},
4120ef2b 3587 { "_unsigned_int","_wxCoord",0},
2d091820 3588 { "_unsigned_int","_wxPrintQuality",0},
c368d904 3589 { "_unsigned_int","_time_t",0},
2d091820
RD
3590 { "_unsigned_int","_size_t",0},
3591 { "_unsigned_int","_uint",0},
3592 { "_unsigned_int","_wxWindowID",0},
3593 { "_unsigned_int","_int",0},
2d091820
RD
3594 { "_short","_WXTYPE",0},
3595 { "_short","_unsigned_short",0},
3596 { "_short","_signed_short",0},
4120ef2b 3597 { "_wxWindowID","_wxCoord",0},
2d091820 3598 { "_wxWindowID","_wxPrintQuality",0},
c368d904 3599 { "_wxWindowID","_time_t",0},
2d091820
RD
3600 { "_wxWindowID","_size_t",0},
3601 { "_wxWindowID","_EBool",0},
3602 { "_wxWindowID","_uint",0},
3603 { "_wxWindowID","_int",0},
3604 { "_wxWindowID","_signed_int",0},
3605 { "_wxWindowID","_unsigned_int",0},
4120ef2b 3606 { "_int","_wxCoord",0},
2d091820 3607 { "_int","_wxPrintQuality",0},
c368d904 3608 { "_int","_time_t",0},
2d091820
RD
3609 { "_int","_size_t",0},
3610 { "_int","_EBool",0},
3611 { "_int","_uint",0},
3612 { "_int","_wxWindowID",0},
3613 { "_int","_unsigned_int",0},
3614 { "_int","_signed_int",0},
c368d904
RD
3615 { "_time_t","_wxCoord",0},
3616 { "_time_t","_wxPrintQuality",0},
3617 { "_time_t","_unsigned_int",0},
3618 { "_time_t","_int",0},
3619 { "_time_t","_wxWindowID",0},
3620 { "_time_t","_uint",0},
3621 { "_time_t","_size_t",0},
ab2208b5 3622 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
ab2208b5 3623 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase},
4120ef2b
RD
3624 { "_wxCoord","_int",0},
3625 { "_wxCoord","_signed_int",0},
3626 { "_wxCoord","_unsigned_int",0},
3627 { "_wxCoord","_wxWindowID",0},
3628 { "_wxCoord","_uint",0},
3629 { "_wxCoord","_EBool",0},
3630 { "_wxCoord","_size_t",0},
c368d904 3631 { "_wxCoord","_time_t",0},
4120ef2b 3632 { "_wxCoord","_wxPrintQuality",0},
ab2208b5 3633 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
2d091820 3634 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
ab2208b5 3635 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
2d091820 3636 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
ab2208b5 3637 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
2d091820 3638 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
ab2208b5 3639 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
2d091820 3640 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
2d091820
RD
3641{0,0,0}};
3642
b26e2dc4
RD
3643static PyObject *SWIG_globals;
3644#ifdef __cplusplus
3645extern "C"
3646#endif
2d091820 3647SWIGEXPORT(void) initstattoolc() {
b26e2dc4
RD
3648 PyObject *m, *d;
3649 SWIG_globals = SWIG_newvarlink();
3650 m = Py_InitModule("stattoolc", stattoolcMethods);
3651 d = PyModule_GetDict(m);
ab2208b5
RD
3652 PyDict_SetItemString(d,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON));
3653 PyDict_SetItemString(d,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR));
3654 PyDict_SetItemString(d,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL));
2d091820
RD
3655{
3656 int i;
3657 for (i = 0; _swig_mapping[i].n1; i++)
3658 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3659}
b26e2dc4 3660}