]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/stattool.cpp
added SetStatusText method (avoiding dc.Clear)
[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;
3e212503 882 _result = new wxBitmap (wxToolBarToolBase_GetBitmap1(_arg0));
56f5d962
RD
883
884 wxPy_END_ALLOW_THREADS;
4dfaa61e 885 if (PyErr_Occurred()) return NULL;
3e212503
RD
886} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
887 _resultobj = Py_BuildValue("s",_ptemp);
56f5d962
RD
888 return _resultobj;
889}
890
ab2208b5
RD
891#define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
892static PyObject *_wrap_wxToolBarToolBase_GetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 893 PyObject * _resultobj;
ab2208b5
RD
894 wxBitmap * _result;
895 wxToolBarToolBase * _arg0;
56f5d962
RD
896 PyObject * _argo0 = 0;
897 char *_kwnames[] = { "self", NULL };
ab2208b5 898 char _ptemp[128];
56f5d962
RD
899
900 self = self;
ab2208b5 901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap2",_kwnames,&_argo0))
56f5d962
RD
902 return NULL;
903 if (_argo0) {
904 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
56f5d962
RD
907 return NULL;
908 }
909 }
910{
911 wxPy_BEGIN_ALLOW_THREADS;
3e212503 912 _result = new wxBitmap (wxToolBarToolBase_GetBitmap2(_arg0));
56f5d962
RD
913
914 wxPy_END_ALLOW_THREADS;
4dfaa61e 915 if (PyErr_Occurred()) return NULL;
3e212503
RD
916} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
917 _resultobj = Py_BuildValue("s",_ptemp);
56f5d962
RD
918 return _resultobj;
919}
920
ab2208b5
RD
921#define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
922static PyObject *_wrap_wxToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 923 PyObject * _resultobj;
ab2208b5
RD
924 wxBitmap * _result;
925 wxToolBarToolBase * _arg0;
56f5d962 926 PyObject * _argo0 = 0;
ab2208b5
RD
927 char *_kwnames[] = { "self", NULL };
928 char _ptemp[128];
56f5d962
RD
929
930 self = self;
ab2208b5 931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap",_kwnames,&_argo0))
56f5d962
RD
932 return NULL;
933 if (_argo0) {
934 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
56f5d962
RD
937 return NULL;
938 }
939 }
940{
941 wxPy_BEGIN_ALLOW_THREADS;
3e212503 942 _result = new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0));
56f5d962
RD
943
944 wxPy_END_ALLOW_THREADS;
4dfaa61e 945 if (PyErr_Occurred()) return NULL;
3e212503
RD
946} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
947 _resultobj = Py_BuildValue("s",_ptemp);
56f5d962
RD
948 return _resultobj;
949}
950
ab2208b5
RD
951#define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
952static PyObject *_wrap_wxToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 953 PyObject * _resultobj;
ab2208b5
RD
954 wxString * _result;
955 wxToolBarToolBase * _arg0;
56f5d962
RD
956 PyObject * _argo0 = 0;
957 char *_kwnames[] = { "self", NULL };
958
959 self = self;
ab2208b5 960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetShortHelp",_kwnames,&_argo0))
56f5d962
RD
961 return NULL;
962 if (_argo0) {
963 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
56f5d962
RD
966 return NULL;
967 }
968 }
969{
970 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 971 _result = new wxString (wxToolBarToolBase_GetShortHelp(_arg0));
56f5d962
RD
972
973 wxPy_END_ALLOW_THREADS;
4dfaa61e 974 if (PyErr_Occurred()) return NULL;
ab2208b5 975}{
e02c03a4 976 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
56f5d962 977}
56f5d962 978{
ab2208b5
RD
979 delete _result;
980}
56f5d962
RD
981 return _resultobj;
982}
983
ab2208b5
RD
984#define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
985static PyObject *_wrap_wxToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 986 PyObject * _resultobj;
ab2208b5
RD
987 wxString * _result;
988 wxToolBarToolBase * _arg0;
56f5d962
RD
989 PyObject * _argo0 = 0;
990 char *_kwnames[] = { "self", NULL };
991
992 self = self;
ab2208b5 993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLongHelp",_kwnames,&_argo0))
56f5d962
RD
994 return NULL;
995 if (_argo0) {
996 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
56f5d962
RD
999 return NULL;
1000 }
1001 }
1002{
1003 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1004 _result = new wxString (wxToolBarToolBase_GetLongHelp(_arg0));
56f5d962
RD
1005
1006 wxPy_END_ALLOW_THREADS;
4dfaa61e 1007 if (PyErr_Occurred()) return NULL;
ab2208b5 1008}{
e02c03a4 1009 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
ab2208b5
RD
1010}
1011{
1012 delete _result;
1013}
56f5d962
RD
1014 return _resultobj;
1015}
1016
ab2208b5
RD
1017#define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1018static PyObject *_wrap_wxToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1019 PyObject * _resultobj;
1020 bool _result;
ab2208b5 1021 wxToolBarToolBase * _arg0;
21f8d7ea 1022 bool _arg1;
2d091820 1023 PyObject * _argo0 = 0;
21f8d7ea 1024 int tempbool1;
ab2208b5 1025 char *_kwnames[] = { "self","enable", NULL };
21f8d7ea
RD
1026
1027 self = self;
ab2208b5 1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Enable",_kwnames,&_argo0,&tempbool1))
21f8d7ea 1029 return NULL;
2d091820
RD
1030 if (_argo0) {
1031 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1034 return NULL;
1035 }
1036 }
1037 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1038{
1039 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1040 _result = (bool )wxToolBarToolBase_Enable(_arg0,_arg1);
ab9bc19b
RD
1041
1042 wxPy_END_ALLOW_THREADS;
4dfaa61e 1043 if (PyErr_Occurred()) return NULL;
ab9bc19b 1044} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
1045 return _resultobj;
1046}
1047
ab2208b5
RD
1048#define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1049static PyObject *_wrap_wxToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
1050 PyObject * _resultobj;
1051 bool _result;
ab2208b5
RD
1052 wxToolBarToolBase * _arg0;
1053 bool _arg1;
2d091820 1054 PyObject * _argo0 = 0;
ab2208b5
RD
1055 int tempbool1;
1056 char *_kwnames[] = { "self","toggle", NULL };
b26e2dc4
RD
1057
1058 self = self;
ab2208b5 1059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Toggle",_kwnames,&_argo0,&tempbool1))
b26e2dc4 1060 return NULL;
2d091820
RD
1061 if (_argo0) {
1062 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1065 return NULL;
1066 }
1067 }
ab2208b5 1068 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1069{
1070 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1071 _result = (bool )wxToolBarToolBase_Toggle(_arg0,_arg1);
ab9bc19b
RD
1072
1073 wxPy_END_ALLOW_THREADS;
4dfaa61e 1074 if (PyErr_Occurred()) return NULL;
ab9bc19b 1075} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
1076 return _resultobj;
1077}
1078
ab2208b5
RD
1079#define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1080static PyObject *_wrap_wxToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1081 PyObject * _resultobj;
1082 bool _result;
ab2208b5 1083 wxToolBarToolBase * _arg0;
21f8d7ea 1084 bool _arg1;
2d091820 1085 PyObject * _argo0 = 0;
21f8d7ea 1086 int tempbool1;
ab2208b5 1087 char *_kwnames[] = { "self","toggle", NULL };
21f8d7ea
RD
1088
1089 self = self;
ab2208b5 1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_SetToggle",_kwnames,&_argo0,&tempbool1))
21f8d7ea 1091 return NULL;
2d091820
RD
1092 if (_argo0) {
1093 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1096 return NULL;
1097 }
1098 }
1099 _arg1 = (bool ) tempbool1;
ab9bc19b
RD
1100{
1101 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1102 _result = (bool )wxToolBarToolBase_SetToggle(_arg0,_arg1);
ab9bc19b
RD
1103
1104 wxPy_END_ALLOW_THREADS;
4dfaa61e 1105 if (PyErr_Occurred()) return NULL;
ab9bc19b 1106} _resultobj = Py_BuildValue("i",_result);
21f8d7ea
RD
1107 return _resultobj;
1108}
1109
ab2208b5
RD
1110#define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1111static PyObject *_wrap_wxToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4
RD
1112 PyObject * _resultobj;
1113 bool _result;
ab2208b5
RD
1114 wxToolBarToolBase * _arg0;
1115 wxString * _arg1;
2d091820 1116 PyObject * _argo0 = 0;
ab2208b5
RD
1117 PyObject * _obj1 = 0;
1118 char *_kwnames[] = { "self","help", NULL };
b26e2dc4
RD
1119
1120 self = self;
ab2208b5 1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetShortHelp",_kwnames,&_argo0,&_obj1))
b26e2dc4 1122 return NULL;
2d091820
RD
1123 if (_argo0) {
1124 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1127 return NULL;
1128 }
1129 }
ab2208b5 1130{
2cd2fac8
RD
1131#if PYTHON_API_VERSION >= 1009
1132 char* tmpPtr; int tmpSize;
1133 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1134 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1135 return NULL;
1136 }
1137 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1138 return NULL;
1139 _arg1 = new wxString(tmpPtr, tmpSize);
1140#else
ab2208b5
RD
1141 if (!PyString_Check(_obj1)) {
1142 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1143 return NULL;
1144 }
2cd2fac8
RD
1145 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1146#endif
ab2208b5 1147}
ab9bc19b
RD
1148{
1149 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1150 _result = (bool )wxToolBarToolBase_SetShortHelp(_arg0,*_arg1);
ab9bc19b
RD
1151
1152 wxPy_END_ALLOW_THREADS;
4dfaa61e 1153 if (PyErr_Occurred()) return NULL;
ab9bc19b 1154} _resultobj = Py_BuildValue("i",_result);
ab2208b5
RD
1155{
1156 if (_obj1)
1157 delete _arg1;
1158}
b26e2dc4
RD
1159 return _resultobj;
1160}
1161
ab2208b5
RD
1162#define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1163static PyObject *_wrap_wxToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea
RD
1164 PyObject * _resultobj;
1165 bool _result;
ab2208b5
RD
1166 wxToolBarToolBase * _arg0;
1167 wxString * _arg1;
2d091820 1168 PyObject * _argo0 = 0;
ab2208b5
RD
1169 PyObject * _obj1 = 0;
1170 char *_kwnames[] = { "self","help", NULL };
21f8d7ea
RD
1171
1172 self = self;
ab2208b5 1173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLongHelp",_kwnames,&_argo0,&_obj1))
21f8d7ea 1174 return NULL;
2d091820
RD
1175 if (_argo0) {
1176 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1179 return NULL;
1180 }
1181 }
ab2208b5 1182{
2cd2fac8
RD
1183#if PYTHON_API_VERSION >= 1009
1184 char* tmpPtr; int tmpSize;
1185 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7a446686 1186 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1187 return NULL;
1188 }
1189 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1190 return NULL;
1191 _arg1 = new wxString(tmpPtr, tmpSize);
1192#else
ab2208b5
RD
1193 if (!PyString_Check(_obj1)) {
1194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1195 return NULL;
1196 }
2cd2fac8
RD
1197 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1198#endif
ab2208b5 1199}
ab9bc19b
RD
1200{
1201 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1202 _result = (bool )wxToolBarToolBase_SetLongHelp(_arg0,*_arg1);
ab9bc19b
RD
1203
1204 wxPy_END_ALLOW_THREADS;
4dfaa61e 1205 if (PyErr_Occurred()) return NULL;
ab9bc19b 1206} _resultobj = Py_BuildValue("i",_result);
ab2208b5
RD
1207{
1208 if (_obj1)
1209 delete _arg1;
1210}
21f8d7ea
RD
1211 return _resultobj;
1212}
1213
ab2208b5
RD
1214#define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1215static PyObject *_wrap_wxToolBarToolBase_SetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1216 PyObject * _resultobj;
ab2208b5
RD
1217 wxToolBarToolBase * _arg0;
1218 wxBitmap * _arg1;
2d091820 1219 PyObject * _argo0 = 0;
ab2208b5
RD
1220 PyObject * _argo1 = 0;
1221 char *_kwnames[] = { "self","bmp", NULL };
b26e2dc4
RD
1222
1223 self = self;
ab2208b5 1224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap1",_kwnames,&_argo0,&_argo1))
b26e2dc4 1225 return NULL;
2d091820
RD
1226 if (_argo0) {
1227 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1230 return NULL;
1231 }
1232 }
1233 if (_argo1) {
1234 if (_argo1 == Py_None) { _arg1 = NULL; }
1235 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1236 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
b26e2dc4
RD
1237 return NULL;
1238 }
1239 }
ab9bc19b
RD
1240{
1241 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1242 wxToolBarToolBase_SetBitmap1(_arg0,*_arg1);
ab9bc19b
RD
1243
1244 wxPy_END_ALLOW_THREADS;
4dfaa61e 1245 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1246} Py_INCREF(Py_None);
1247 _resultobj = Py_None;
b26e2dc4
RD
1248 return _resultobj;
1249}
1250
ab2208b5
RD
1251#define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1252static PyObject *_wrap_wxToolBarToolBase_SetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1253 PyObject * _resultobj;
ab2208b5
RD
1254 wxToolBarToolBase * _arg0;
1255 wxBitmap * _arg1;
2d091820 1256 PyObject * _argo0 = 0;
ab2208b5
RD
1257 PyObject * _argo1 = 0;
1258 char *_kwnames[] = { "self","bmp", NULL };
21f8d7ea
RD
1259
1260 self = self;
ab2208b5 1261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap2",_kwnames,&_argo0,&_argo1))
21f8d7ea 1262 return NULL;
2d091820
RD
1263 if (_argo0) {
1264 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1267 return NULL;
1268 }
1269 }
1270 if (_argo1) {
1271 if (_argo1 == Py_None) { _arg1 = NULL; }
1272 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1273 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
21f8d7ea
RD
1274 return NULL;
1275 }
1276 }
ab9bc19b
RD
1277{
1278 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1279 wxToolBarToolBase_SetBitmap2(_arg0,*_arg1);
ab9bc19b
RD
1280
1281 wxPy_END_ALLOW_THREADS;
4dfaa61e 1282 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1283} Py_INCREF(Py_None);
1284 _resultobj = Py_None;
21f8d7ea
RD
1285 return _resultobj;
1286}
1287
ab2208b5
RD
1288#define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1289static PyObject *_wrap_wxToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1290 PyObject * _resultobj;
ab2208b5 1291 wxToolBarToolBase * _arg0;
2d091820 1292 PyObject * _argo0 = 0;
107e4716 1293 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1294
1295 self = self;
ab2208b5 1296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Detach",_kwnames,&_argo0))
b26e2dc4 1297 return NULL;
2d091820
RD
1298 if (_argo0) {
1299 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1302 return NULL;
1303 }
1304 }
ab9bc19b
RD
1305{
1306 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1307 wxToolBarToolBase_Detach(_arg0);
ab9bc19b
RD
1308
1309 wxPy_END_ALLOW_THREADS;
4dfaa61e 1310 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1311} Py_INCREF(Py_None);
1312 _resultobj = Py_None;
b26e2dc4
RD
1313 return _resultobj;
1314}
1315
ab2208b5
RD
1316#define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1317static PyObject *_wrap_wxToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1318 PyObject * _resultobj;
ab2208b5
RD
1319 wxToolBarToolBase * _arg0;
1320 wxToolBarBase * _arg1;
2d091820
RD
1321 PyObject * _argo0 = 0;
1322 PyObject * _argo1 = 0;
ab2208b5 1323 char *_kwnames[] = { "self","tbar", NULL };
21f8d7ea
RD
1324
1325 self = self;
ab2208b5 1326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_Attach",_kwnames,&_argo0,&_argo1))
21f8d7ea 1327 return NULL;
2d091820
RD
1328 if (_argo0) {
1329 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
21f8d7ea
RD
1332 return NULL;
1333 }
1334 }
2d091820
RD
1335 if (_argo1) {
1336 if (_argo1 == Py_None) { _arg1 = NULL; }
ab2208b5
RD
1337 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBarBase_p")) {
1338 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1339 return NULL;
1340 }
1341 }
ab9bc19b
RD
1342{
1343 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1344 wxToolBarToolBase_Attach(_arg0,_arg1);
ab9bc19b
RD
1345
1346 wxPy_END_ALLOW_THREADS;
4dfaa61e 1347 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1348} Py_INCREF(Py_None);
1349 _resultobj = Py_None;
21f8d7ea
RD
1350 return _resultobj;
1351}
1352
ab2208b5
RD
1353static PyObject * wxToolBarToolBase_GetClientData(wxToolBarToolBase *self) {
1354 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
1355 if (udata) {
1356 Py_INCREF(udata->m_obj);
1357 return udata->m_obj;
1358 } else {
1359 Py_INCREF(Py_None);
1360 return Py_None;
1361 }
1362 }
1363static PyObject *_wrap_wxToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1364 PyObject * _resultobj;
ab2208b5
RD
1365 PyObject * _result;
1366 wxToolBarToolBase * _arg0;
2d091820 1367 PyObject * _argo0 = 0;
107e4716 1368 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1369
1370 self = self;
ab2208b5 1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetClientData",_kwnames,&_argo0))
b26e2dc4 1372 return NULL;
2d091820
RD
1373 if (_argo0) {
1374 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
b26e2dc4
RD
1377 return NULL;
1378 }
1379 }
ab9bc19b
RD
1380{
1381 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1382 _result = (PyObject *)wxToolBarToolBase_GetClientData(_arg0);
ab9bc19b
RD
1383
1384 wxPy_END_ALLOW_THREADS;
4dfaa61e 1385 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1386}{
1387 _resultobj = _result;
1388}
b26e2dc4
RD
1389 return _resultobj;
1390}
1391
ab2208b5
RD
1392static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject * clientData) {
1393 self->SetClientData(new wxPyUserData(clientData));
1394 }
1395static PyObject *_wrap_wxToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1396 PyObject * _resultobj;
ab2208b5
RD
1397 wxToolBarToolBase * _arg0;
1398 PyObject * _arg1;
2d091820 1399 PyObject * _argo0 = 0;
ab2208b5
RD
1400 PyObject * _obj1 = 0;
1401 char *_kwnames[] = { "self","clientData", NULL };
1402
1403 self = self;
1404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetClientData",_kwnames,&_argo0,&_obj1))
1405 return NULL;
1406 if (_argo0) {
1407 if (_argo0 == Py_None) { _arg0 = NULL; }
1408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1410 return NULL;
1411 }
1412 }
1413{
1414 _arg1 = _obj1;
1415}
1416{
1417 wxPy_BEGIN_ALLOW_THREADS;
1418 wxToolBarToolBase_SetClientData(_arg0,_arg1);
1419
1420 wxPy_END_ALLOW_THREADS;
4dfaa61e 1421 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1422} Py_INCREF(Py_None);
1423 _resultobj = Py_None;
1424 return _resultobj;
1425}
1426
1427static void *SwigwxToolBarBaseTowxControl(void *ptr) {
1428 wxToolBarBase *src;
1429 wxControl *dest;
1430 src = (wxToolBarBase *) ptr;
1431 dest = (wxControl *) src;
1432 return (void *) dest;
1433}
1434
1435static void *SwigwxToolBarBaseTowxWindow(void *ptr) {
1436 wxToolBarBase *src;
1437 wxWindow *dest;
1438 src = (wxToolBarBase *) ptr;
1439 dest = (wxWindow *) src;
1440 return (void *) dest;
1441}
1442
1443static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr) {
1444 wxToolBarBase *src;
1445 wxEvtHandler *dest;
1446 src = (wxToolBarBase *) ptr;
1447 dest = (wxEvtHandler *) src;
1448 return (void *) dest;
1449}
1450
9df61a29
RD
1451static void *SwigwxToolBarBaseTowxObject(void *ptr) {
1452 wxToolBarBase *src;
1453 wxObject *dest;
1454 src = (wxToolBarBase *) ptr;
1455 dest = (wxObject *) src;
1456 return (void *) dest;
1457}
1458
c368d904 1459static 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
1460 wxPyUserData* udata = NULL;
1461 if (clientData)
1462 udata = new wxPyUserData(clientData);
c368d904 1463 return self->AddTool(id, bitmap, pushedBitmap, (bool)isToggle,
ab2208b5
RD
1464 udata, shortHelpString, longHelpString);
1465 }
1466static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject * _resultobj;
1468 wxToolBarToolBase * _result;
1469 wxToolBarBase * _arg0;
1470 int _arg1;
1471 wxBitmap * _arg2;
1472 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
1473 int _arg4 = (int ) FALSE;
1474 PyObject * _arg5 = (PyObject *) NULL;
1475 wxString * _arg6 = (wxString *) &wxPyEmptyStr;
1476 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1477 PyObject * _argo0 = 0;
1478 PyObject * _argo2 = 0;
1479 PyObject * _argo3 = 0;
1480 PyObject * _obj5 = 0;
1481 PyObject * _obj6 = 0;
1482 PyObject * _obj7 = 0;
c368d904 1483 char *_kwnames[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
21f8d7ea
RD
1484
1485 self = self;
ab2208b5 1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7))
21f8d7ea 1487 return NULL;
2d091820
RD
1488 if (_argo0) {
1489 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1492 return NULL;
1493 }
1494 }
ab2208b5
RD
1495 if (_argo2) {
1496 if (_argo2 == Py_None) { _arg2 = NULL; }
1497 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1498 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
21f8d7ea
RD
1499 return NULL;
1500 }
1501 }
ab2208b5
RD
1502 if (_argo3) {
1503 if (_argo3 == Py_None) { _arg3 = NULL; }
1504 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1505 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1506 return NULL;
1507 }
1508 }
1509 if (_obj5)
1510{
1511 _arg5 = _obj5;
1512}
1513 if (_obj6)
1514{
2cd2fac8
RD
1515#if PYTHON_API_VERSION >= 1009
1516 char* tmpPtr; int tmpSize;
1517 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
7a446686 1518 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1519 return NULL;
1520 }
1521 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
1522 return NULL;
1523 _arg6 = new wxString(tmpPtr, tmpSize);
1524#else
ab2208b5
RD
1525 if (!PyString_Check(_obj6)) {
1526 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1527 return NULL;
1528 }
2cd2fac8
RD
1529 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
1530#endif
ab2208b5
RD
1531}
1532 if (_obj7)
1533{
2cd2fac8
RD
1534#if PYTHON_API_VERSION >= 1009
1535 char* tmpPtr; int tmpSize;
1536 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
7a446686 1537 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1538 return NULL;
1539 }
1540 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1541 return NULL;
1542 _arg7 = new wxString(tmpPtr, tmpSize);
1543#else
ab2208b5
RD
1544 if (!PyString_Check(_obj7)) {
1545 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1546 return NULL;
1547 }
2cd2fac8
RD
1548 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1549#endif
ab2208b5 1550}
ab9bc19b
RD
1551{
1552 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1553 _result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7);
ab9bc19b
RD
1554
1555 wxPy_END_ALLOW_THREADS;
4dfaa61e 1556 if (PyErr_Occurred()) return NULL;
9df61a29 1557}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1558{
1559 if (_obj6)
1560 delete _arg6;
1561}
1562{
1563 if (_obj7)
1564 delete _arg7;
1565}
21f8d7ea
RD
1566 return _resultobj;
1567}
1568
c368d904
RD
1569static wxToolBarToolBase * wxToolBarBase_AddSimpleTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1570 return self->AddTool(id, bitmap, wxNullBitmap, isToggle, NULL,
ab2208b5
RD
1571 shortHelpString, longHelpString);
1572 }
1573static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1574 PyObject * _resultobj;
ab2208b5
RD
1575 wxToolBarToolBase * _result;
1576 wxToolBarBase * _arg0;
1577 int _arg1;
1578 wxBitmap * _arg2;
1579 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
1580 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1581 int _arg5 = (int ) FALSE;
2d091820 1582 PyObject * _argo0 = 0;
ab2208b5
RD
1583 PyObject * _argo2 = 0;
1584 PyObject * _obj3 = 0;
1585 PyObject * _obj4 = 0;
c368d904 1586 char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
b26e2dc4
RD
1587
1588 self = self;
ab2208b5 1589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5))
b26e2dc4 1590 return NULL;
2d091820
RD
1591 if (_argo0) {
1592 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1595 return NULL;
1596 }
1597 }
ab2208b5
RD
1598 if (_argo2) {
1599 if (_argo2 == Py_None) { _arg2 = NULL; }
1600 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1601 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1602 return NULL;
1603 }
1604 }
1605 if (_obj3)
1606{
2cd2fac8
RD
1607#if PYTHON_API_VERSION >= 1009
1608 char* tmpPtr; int tmpSize;
1609 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
7a446686 1610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1611 return NULL;
1612 }
1613 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1614 return NULL;
1615 _arg3 = new wxString(tmpPtr, tmpSize);
1616#else
ab2208b5
RD
1617 if (!PyString_Check(_obj3)) {
1618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1619 return NULL;
1620 }
2cd2fac8
RD
1621 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1622#endif
ab2208b5
RD
1623}
1624 if (_obj4)
1625{
2cd2fac8
RD
1626#if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr; int tmpSize;
1628 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
7a446686 1629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1630 return NULL;
1631 }
1632 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1633 return NULL;
1634 _arg4 = new wxString(tmpPtr, tmpSize);
1635#else
ab2208b5
RD
1636 if (!PyString_Check(_obj4)) {
1637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1638 return NULL;
1639 }
2cd2fac8
RD
1640 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1641#endif
ab2208b5 1642}
ab9bc19b
RD
1643{
1644 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1645 _result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5);
ab9bc19b
RD
1646
1647 wxPy_END_ALLOW_THREADS;
4dfaa61e 1648 if (PyErr_Occurred()) return NULL;
9df61a29 1649}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1650{
1651 if (_obj3)
1652 delete _arg3;
1653}
1654{
1655 if (_obj4)
1656 delete _arg4;
1657}
b26e2dc4
RD
1658 return _resultobj;
1659}
1660
c368d904 1661static 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
1662 wxPyUserData* udata = NULL;
1663 if (clientData)
1664 udata = new wxPyUserData(clientData);
c368d904 1665 return self->InsertTool(pos, id, bitmap, pushedBitmap, (bool)isToggle,
ab2208b5
RD
1666 udata, shortHelpString, longHelpString);
1667 }
1668static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1669 PyObject * _resultobj;
ab2208b5
RD
1670 wxToolBarToolBase * _result;
1671 wxToolBarBase * _arg0;
1672 size_t _arg1;
1673 int _arg2;
1674 wxBitmap * _arg3;
1675 wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
1676 int _arg5 = (int ) FALSE;
1677 PyObject * _arg6 = (PyObject *) NULL;
1678 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1679 wxString * _arg8 = (wxString *) &wxPyEmptyStr;
2d091820 1680 PyObject * _argo0 = 0;
ab2208b5
RD
1681 PyObject * _argo3 = 0;
1682 PyObject * _argo4 = 0;
1683 PyObject * _obj6 = 0;
1684 PyObject * _obj7 = 0;
1685 PyObject * _obj8 = 0;
c368d904 1686 char *_kwnames[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
21f8d7ea
RD
1687
1688 self = self;
ab2208b5 1689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8))
21f8d7ea 1690 return NULL;
2d091820
RD
1691 if (_argo0) {
1692 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1695 return NULL;
1696 }
1697 }
ab2208b5
RD
1698 if (_argo3) {
1699 if (_argo3 == Py_None) { _arg3 = NULL; }
1700 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1701 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1702 return NULL;
1703 }
1704 }
1705 if (_argo4) {
1706 if (_argo4 == Py_None) { _arg4 = NULL; }
1707 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
1708 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1709 return NULL;
1710 }
1711 }
1712 if (_obj6)
1713{
1714 _arg6 = _obj6;
1715}
1716 if (_obj7)
1717{
2cd2fac8
RD
1718#if PYTHON_API_VERSION >= 1009
1719 char* tmpPtr; int tmpSize;
1720 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
7a446686 1721 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1722 return NULL;
1723 }
1724 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1725 return NULL;
1726 _arg7 = new wxString(tmpPtr, tmpSize);
1727#else
ab2208b5
RD
1728 if (!PyString_Check(_obj7)) {
1729 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1730 return NULL;
1731 }
2cd2fac8
RD
1732 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1733#endif
ab2208b5
RD
1734}
1735 if (_obj8)
1736{
2cd2fac8
RD
1737#if PYTHON_API_VERSION >= 1009
1738 char* tmpPtr; int tmpSize;
1739 if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) {
7a446686 1740 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1741 return NULL;
1742 }
1743 if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1)
1744 return NULL;
1745 _arg8 = new wxString(tmpPtr, tmpSize);
1746#else
ab2208b5
RD
1747 if (!PyString_Check(_obj8)) {
1748 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1749 return NULL;
1750 }
2cd2fac8
RD
1751 _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8));
1752#endif
ab2208b5 1753}
ab9bc19b
RD
1754{
1755 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1756 _result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8);
ab9bc19b
RD
1757
1758 wxPy_END_ALLOW_THREADS;
4dfaa61e 1759 if (PyErr_Occurred()) return NULL;
9df61a29 1760}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1761{
1762 if (_obj7)
1763 delete _arg7;
1764}
1765{
1766 if (_obj8)
1767 delete _arg8;
1768}
21f8d7ea
RD
1769 return _resultobj;
1770}
1771
c368d904
RD
1772static wxToolBarToolBase * wxToolBarBase_InsertSimpleTool(wxToolBarBase *self,size_t pos,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1773 return self->InsertTool(pos, id, bitmap, wxNullBitmap, isToggle, NULL,
ab2208b5
RD
1774 shortHelpString, longHelpString);
1775 }
1776static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1777 PyObject * _resultobj;
ab2208b5
RD
1778 wxToolBarToolBase * _result;
1779 wxToolBarBase * _arg0;
1780 size_t _arg1;
1781 int _arg2;
1782 wxBitmap * _arg3;
1783 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1784 wxString * _arg5 = (wxString *) &wxPyEmptyStr;
1785 int _arg6 = (int ) FALSE;
2d091820 1786 PyObject * _argo0 = 0;
ab2208b5
RD
1787 PyObject * _argo3 = 0;
1788 PyObject * _obj4 = 0;
1789 PyObject * _obj5 = 0;
c368d904 1790 char *_kwnames[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
b26e2dc4
RD
1791
1792 self = self;
ab2208b5 1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6))
b26e2dc4 1794 return NULL;
2d091820
RD
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1799 return NULL;
1800 }
1801 }
ab2208b5
RD
1802 if (_argo3) {
1803 if (_argo3 == Py_None) { _arg3 = NULL; }
1804 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1805 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1806 return NULL;
1807 }
1808 }
1809 if (_obj4)
1810{
2cd2fac8
RD
1811#if PYTHON_API_VERSION >= 1009
1812 char* tmpPtr; int tmpSize;
1813 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
7a446686 1814 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1815 return NULL;
1816 }
1817 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1818 return NULL;
1819 _arg4 = new wxString(tmpPtr, tmpSize);
1820#else
ab2208b5
RD
1821 if (!PyString_Check(_obj4)) {
1822 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1823 return NULL;
1824 }
2cd2fac8
RD
1825 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1826#endif
ab2208b5
RD
1827}
1828 if (_obj5)
1829{
2cd2fac8
RD
1830#if PYTHON_API_VERSION >= 1009
1831 char* tmpPtr; int tmpSize;
1832 if (!PyString_Check(_obj5) && !PyUnicode_Check(_obj5)) {
7a446686 1833 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
1834 return NULL;
1835 }
1836 if (PyString_AsStringAndSize(_obj5, &tmpPtr, &tmpSize) == -1)
1837 return NULL;
1838 _arg5 = new wxString(tmpPtr, tmpSize);
1839#else
ab2208b5
RD
1840 if (!PyString_Check(_obj5)) {
1841 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1842 return NULL;
1843 }
2cd2fac8
RD
1844 _arg5 = new wxString(PyString_AS_STRING(_obj5), PyString_GET_SIZE(_obj5));
1845#endif
ab2208b5 1846}
ab9bc19b
RD
1847{
1848 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1849 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6);
ab9bc19b
RD
1850
1851 wxPy_END_ALLOW_THREADS;
4dfaa61e 1852 if (PyErr_Occurred()) return NULL;
9df61a29 1853}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1854{
1855 if (_obj4)
1856 delete _arg4;
1857}
1858{
1859 if (_obj5)
1860 delete _arg5;
1861}
b26e2dc4
RD
1862 return _resultobj;
1863}
1864
ab2208b5
RD
1865#define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1866static PyObject *_wrap_wxToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1867 PyObject * _resultobj;
ab2208b5
RD
1868 wxToolBarToolBase * _result;
1869 wxToolBarBase * _arg0;
1870 wxControl * _arg1;
2d091820 1871 PyObject * _argo0 = 0;
ab2208b5
RD
1872 PyObject * _argo1 = 0;
1873 char *_kwnames[] = { "self","control", NULL };
21f8d7ea
RD
1874
1875 self = self;
ab2208b5 1876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1))
21f8d7ea 1877 return NULL;
2d091820
RD
1878 if (_argo0) {
1879 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1882 return NULL;
1883 }
1884 }
ab2208b5
RD
1885 if (_argo1) {
1886 if (_argo1 == Py_None) { _arg1 = NULL; }
1887 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxControl_p")) {
1888 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
21f8d7ea 1889 return NULL;
ab2208b5 1890 }
21f8d7ea 1891 }
21f8d7ea 1892{
ab9bc19b 1893 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1894 _result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1);
ab9bc19b
RD
1895
1896 wxPy_END_ALLOW_THREADS;
4dfaa61e 1897 if (PyErr_Occurred()) return NULL;
9df61a29 1898}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5 1899 return _resultobj;
21f8d7ea 1900}
ab2208b5
RD
1901
1902#define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1903static PyObject *_wrap_wxToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1904 PyObject * _resultobj;
1905 wxToolBarToolBase * _result;
1906 wxToolBarBase * _arg0;
1907 size_t _arg1;
1908 wxControl * _arg2;
1909 PyObject * _argo0 = 0;
1910 PyObject * _argo2 = 0;
1911 char *_kwnames[] = { "self","pos","control", NULL };
ab2208b5
RD
1912
1913 self = self;
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2))
1915 return NULL;
1916 if (_argo0) {
1917 if (_argo0 == Py_None) { _arg0 = NULL; }
1918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1920 return NULL;
1921 }
1922 }
1923 if (_argo2) {
1924 if (_argo2 == Py_None) { _arg2 = NULL; }
1925 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxControl_p")) {
1926 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1927 return NULL;
1928 }
1929 }
21f8d7ea 1930{
ab2208b5
RD
1931 wxPy_BEGIN_ALLOW_THREADS;
1932 _result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2);
1933
1934 wxPy_END_ALLOW_THREADS;
4dfaa61e 1935 if (PyErr_Occurred()) return NULL;
9df61a29 1936}{ _resultobj = wxPyMake_wxObject(_result); }
21f8d7ea
RD
1937 return _resultobj;
1938}
1939
ab2208b5
RD
1940#define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1941static PyObject *_wrap_wxToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 1942 PyObject * _resultobj;
ab2208b5
RD
1943 wxToolBarToolBase * _result;
1944 wxToolBarBase * _arg0;
2d091820 1945 PyObject * _argo0 = 0;
107e4716 1946 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
1947
1948 self = self;
ab2208b5 1949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0))
b26e2dc4 1950 return NULL;
2d091820
RD
1951 if (_argo0) {
1952 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
b26e2dc4
RD
1955 return NULL;
1956 }
1957 }
b26e2dc4 1958{
ab9bc19b 1959 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 1960 _result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0);
ab9bc19b
RD
1961
1962 wxPy_END_ALLOW_THREADS;
4dfaa61e 1963 if (PyErr_Occurred()) return NULL;
9df61a29 1964}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
1965 return _resultobj;
1966}
1967
ab2208b5
RD
1968#define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1969static PyObject *_wrap_wxToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
21f8d7ea 1970 PyObject * _resultobj;
ab2208b5
RD
1971 wxToolBarToolBase * _result;
1972 wxToolBarBase * _arg0;
1973 size_t _arg1;
2d091820 1974 PyObject * _argo0 = 0;
ab2208b5 1975 char *_kwnames[] = { "self","pos", NULL };
21f8d7ea
RD
1976
1977 self = self;
ab2208b5 1978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1))
21f8d7ea 1979 return NULL;
2d091820
RD
1980 if (_argo0) {
1981 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
1982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
21f8d7ea
RD
1984 return NULL;
1985 }
1986 }
1987{
ab2208b5
RD
1988 wxPy_BEGIN_ALLOW_THREADS;
1989 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1);
1990
1991 wxPy_END_ALLOW_THREADS;
4dfaa61e 1992 if (PyErr_Occurred()) return NULL;
9df61a29 1993}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5
RD
1994 return _resultobj;
1995}
1996
1997#define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1998static PyObject *_wrap_wxToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1999 PyObject * _resultobj;
2000 wxToolBarToolBase * _result;
2001 wxToolBarBase * _arg0;
2002 int _arg1;
2003 PyObject * _argo0 = 0;
2004 char *_kwnames[] = { "self","id", NULL };
ab2208b5
RD
2005
2006 self = self;
2007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1))
21f8d7ea 2008 return NULL;
ab2208b5
RD
2009 if (_argo0) {
2010 if (_argo0 == Py_None) { _arg0 = NULL; }
2011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2013 return NULL;
2014 }
21f8d7ea 2015 }
ab2208b5
RD
2016{
2017 wxPy_BEGIN_ALLOW_THREADS;
2018 _result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1);
2019
2020 wxPy_END_ALLOW_THREADS;
4dfaa61e 2021 if (PyErr_Occurred()) return NULL;
9df61a29 2022}{ _resultobj = wxPyMake_wxObject(_result); }
ab2208b5 2023 return _resultobj;
21f8d7ea 2024}
ab2208b5
RD
2025
2026#define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2027static PyObject *_wrap_wxToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2028 PyObject * _resultobj;
2029 bool _result;
2030 wxToolBarBase * _arg0;
2031 size_t _arg1;
2032 PyObject * _argo0 = 0;
2033 char *_kwnames[] = { "self","pos", NULL };
2034
2035 self = self;
2036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames,&_argo0,&_arg1))
2037 return NULL;
2038 if (_argo0) {
2039 if (_argo0 == Py_None) { _arg0 = NULL; }
2040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2042 return NULL;
2043 }
2044 }
21f8d7ea 2045{
ab9bc19b 2046 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2047 _result = (bool )wxToolBarBase_DeleteToolByPos(_arg0,_arg1);
ab9bc19b
RD
2048
2049 wxPy_END_ALLOW_THREADS;
4dfaa61e 2050 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2051} _resultobj = Py_BuildValue("i",_result);
2052 return _resultobj;
21f8d7ea 2053}
ab2208b5
RD
2054
2055#define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2056static PyObject *_wrap_wxToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2057 PyObject * _resultobj;
2058 bool _result;
2059 wxToolBarBase * _arg0;
2060 int _arg1;
2061 PyObject * _argo0 = 0;
2062 char *_kwnames[] = { "self","id", NULL };
2063
2064 self = self;
2065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteTool",_kwnames,&_argo0,&_arg1))
2066 return NULL;
2067 if (_argo0) {
2068 if (_argo0 == Py_None) { _arg0 = NULL; }
2069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2071 return NULL;
2072 }
2073 }
21f8d7ea 2074{
ab2208b5
RD
2075 wxPy_BEGIN_ALLOW_THREADS;
2076 _result = (bool )wxToolBarBase_DeleteTool(_arg0,_arg1);
2077
2078 wxPy_END_ALLOW_THREADS;
4dfaa61e 2079 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2080} _resultobj = Py_BuildValue("i",_result);
2081 return _resultobj;
21f8d7ea 2082}
ab2208b5
RD
2083
2084#define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2085static PyObject *_wrap_wxToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject * _resultobj;
2087 wxToolBarBase * _arg0;
2088 PyObject * _argo0 = 0;
2089 char *_kwnames[] = { "self", NULL };
2090
2091 self = self;
2092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_ClearTools",_kwnames,&_argo0))
2093 return NULL;
2094 if (_argo0) {
2095 if (_argo0 == Py_None) { _arg0 = NULL; }
2096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2098 return NULL;
2099 }
2100 }
2101{
2102 wxPy_BEGIN_ALLOW_THREADS;
2103 wxToolBarBase_ClearTools(_arg0);
2104
2105 wxPy_END_ALLOW_THREADS;
4dfaa61e 2106 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2107} Py_INCREF(Py_None);
2108 _resultobj = Py_None;
21f8d7ea
RD
2109 return _resultobj;
2110}
2111
ab2208b5
RD
2112#define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2113static PyObject *_wrap_wxToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2114 PyObject * _resultobj;
ab2208b5
RD
2115 bool _result;
2116 wxToolBarBase * _arg0;
2d091820 2117 PyObject * _argo0 = 0;
107e4716 2118 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2119
2120 self = self;
ab2208b5 2121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_Realize",_kwnames,&_argo0))
b26e2dc4 2122 return NULL;
2d091820
RD
2123 if (_argo0) {
2124 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2127 return NULL;
2128 }
2129 }
b26e2dc4 2130{
ab9bc19b 2131 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2132 _result = (bool )wxToolBarBase_Realize(_arg0);
ab9bc19b
RD
2133
2134 wxPy_END_ALLOW_THREADS;
4dfaa61e 2135 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2136} _resultobj = Py_BuildValue("i",_result);
2137 return _resultobj;
b26e2dc4 2138}
ab2208b5
RD
2139
2140#define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2141static PyObject *_wrap_wxToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2142 PyObject * _resultobj;
2143 wxToolBarBase * _arg0;
2144 int _arg1;
2145 bool _arg2;
2146 PyObject * _argo0 = 0;
2147 int tempbool2;
2148 char *_kwnames[] = { "self","id","enable", NULL };
2149
2150 self = self;
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2152 return NULL;
2153 if (_argo0) {
2154 if (_argo0 == Py_None) { _arg0 = NULL; }
2155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2157 return NULL;
2158 }
2159 }
2160 _arg2 = (bool ) tempbool2;
2161{
2162 wxPy_BEGIN_ALLOW_THREADS;
2163 wxToolBarBase_EnableTool(_arg0,_arg1,_arg2);
2164
2165 wxPy_END_ALLOW_THREADS;
4dfaa61e 2166 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2167} Py_INCREF(Py_None);
2168 _resultobj = Py_None;
b26e2dc4
RD
2169 return _resultobj;
2170}
2171
ab2208b5
RD
2172#define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2173static PyObject *_wrap_wxToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2174 PyObject * _resultobj;
2175 wxToolBarBase * _arg0;
2176 int _arg1;
2177 bool _arg2;
2178 PyObject * _argo0 = 0;
2179 int tempbool2;
2180 char *_kwnames[] = { "self","id","toggle", NULL };
2181
2182 self = self;
2183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_ToggleTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2184 return NULL;
2185 if (_argo0) {
2186 if (_argo0 == Py_None) { _arg0 = NULL; }
2187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2189 return NULL;
2190 }
2191 }
2192 _arg2 = (bool ) tempbool2;
2193{
2194 wxPy_BEGIN_ALLOW_THREADS;
2195 wxToolBarBase_ToggleTool(_arg0,_arg1,_arg2);
2196
2197 wxPy_END_ALLOW_THREADS;
4dfaa61e 2198 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2199} Py_INCREF(Py_None);
2200 _resultobj = Py_None;
2201 return _resultobj;
b26e2dc4
RD
2202}
2203
ab2208b5
RD
2204#define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2205static PyObject *_wrap_wxToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
2206 PyObject * _resultobj;
2207 wxToolBarBase * _arg0;
2208 int _arg1;
2209 bool _arg2;
2210 PyObject * _argo0 = 0;
2211 int tempbool2;
2212 char *_kwnames[] = { "self","id","toggle", NULL };
2213
2214 self = self;
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetToggle",_kwnames,&_argo0,&_arg1,&tempbool2))
2216 return NULL;
2217 if (_argo0) {
2218 if (_argo0 == Py_None) { _arg0 = NULL; }
2219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2221 return NULL;
2222 }
2223 }
2224 _arg2 = (bool ) tempbool2;
2225{
2226 wxPy_BEGIN_ALLOW_THREADS;
2227 wxToolBarBase_SetToggle(_arg0,_arg1,_arg2);
2228
2229 wxPy_END_ALLOW_THREADS;
4dfaa61e 2230 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2231} Py_INCREF(Py_None);
2232 _resultobj = Py_None;
2233 return _resultobj;
b26e2dc4
RD
2234}
2235
ab2208b5
RD
2236static PyObject * wxToolBarBase_GetToolClientData(wxToolBarBase *self,int index) {
2237 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(index);
2238 if (udata) {
2239 Py_INCREF(udata->m_obj);
2240 return udata->m_obj;
2241 } else {
2242 Py_INCREF(Py_None);
2243 return Py_None;
2244 }
2245 }
2246static PyObject *_wrap_wxToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2247 PyObject * _resultobj;
2248 PyObject * _result;
2249 wxToolBarBase * _arg0;
2250 int _arg1;
2251 PyObject * _argo0 = 0;
2252 char *_kwnames[] = { "self","index", NULL };
2253
2254 self = self;
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolClientData",_kwnames,&_argo0,&_arg1))
2256 return NULL;
2257 if (_argo0) {
2258 if (_argo0 == Py_None) { _arg0 = NULL; }
2259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2261 return NULL;
2262 }
2263 }
2264{
2265 wxPy_BEGIN_ALLOW_THREADS;
2266 _result = (PyObject *)wxToolBarBase_GetToolClientData(_arg0,_arg1);
2267
2268 wxPy_END_ALLOW_THREADS;
4dfaa61e 2269 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2270}{
2271 _resultobj = _result;
2272}
2273 return _resultobj;
b26e2dc4
RD
2274}
2275
ab2208b5
RD
2276static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int index,PyObject * clientData) {
2277 self->SetToolClientData(index, new wxPyUserData(clientData));
2278 }
2279static PyObject *_wrap_wxToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2280 PyObject * _resultobj;
ab2208b5
RD
2281 wxToolBarBase * _arg0;
2282 int _arg1;
2283 PyObject * _arg2;
2d091820 2284 PyObject * _argo0 = 0;
37f6a977 2285 PyObject * _obj2 = 0;
ab2208b5 2286 char *_kwnames[] = { "self","index","clientData", NULL };
b26e2dc4
RD
2287
2288 self = self;
ab2208b5 2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolClientData",_kwnames,&_argo0,&_arg1,&_obj2))
b26e2dc4 2290 return NULL;
2d091820
RD
2291 if (_argo0) {
2292 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2295 return NULL;
2296 }
2297 }
37f6a977 2298{
ab2208b5 2299 _arg2 = _obj2;
37f6a977 2300}
ab9bc19b
RD
2301{
2302 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2303 wxToolBarBase_SetToolClientData(_arg0,_arg1,_arg2);
ab9bc19b
RD
2304
2305 wxPy_END_ALLOW_THREADS;
4dfaa61e 2306 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2307} Py_INCREF(Py_None);
2308 _resultobj = Py_None;
b26e2dc4
RD
2309 return _resultobj;
2310}
2311
ab2208b5
RD
2312#define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2313static PyObject *_wrap_wxToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962
RD
2314 PyObject * _resultobj;
2315 bool _result;
ab2208b5
RD
2316 wxToolBarBase * _arg0;
2317 int _arg1;
56f5d962 2318 PyObject * _argo0 = 0;
ab2208b5 2319 char *_kwnames[] = { "self","id", NULL };
56f5d962
RD
2320
2321 self = self;
ab2208b5 2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolState",_kwnames,&_argo0,&_arg1))
56f5d962
RD
2323 return NULL;
2324 if (_argo0) {
2325 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
56f5d962
RD
2328 return NULL;
2329 }
2330 }
2331{
2332 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2333 _result = (bool )wxToolBarBase_GetToolState(_arg0,_arg1);
56f5d962
RD
2334
2335 wxPy_END_ALLOW_THREADS;
4dfaa61e 2336 if (PyErr_Occurred()) return NULL;
56f5d962
RD
2337} _resultobj = Py_BuildValue("i",_result);
2338 return _resultobj;
2339}
2340
ab2208b5
RD
2341#define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2342static PyObject *_wrap_wxToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2343 PyObject * _resultobj;
ab2208b5
RD
2344 bool _result;
2345 wxToolBarBase * _arg0;
2346 int _arg1;
2d091820 2347 PyObject * _argo0 = 0;
ab2208b5 2348 char *_kwnames[] = { "self","id", NULL };
b26e2dc4
RD
2349
2350 self = self;
ab2208b5 2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolEnabled",_kwnames,&_argo0,&_arg1))
b26e2dc4 2352 return NULL;
2d091820
RD
2353 if (_argo0) {
2354 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2357 return NULL;
2358 }
2359 }
ab9bc19b
RD
2360{
2361 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2362 _result = (bool )wxToolBarBase_GetToolEnabled(_arg0,_arg1);
ab9bc19b
RD
2363
2364 wxPy_END_ALLOW_THREADS;
4dfaa61e 2365 if (PyErr_Occurred()) return NULL;
ab2208b5 2366} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
2367 return _resultobj;
2368}
2369
ab2208b5
RD
2370#define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2371static PyObject *_wrap_wxToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 2372 PyObject * _resultobj;
ab2208b5
RD
2373 wxToolBarBase * _arg0;
2374 int _arg1;
2375 wxString * _arg2;
56f5d962 2376 PyObject * _argo0 = 0;
ab2208b5
RD
2377 PyObject * _obj2 = 0;
2378 char *_kwnames[] = { "self","id","helpString", NULL };
56f5d962
RD
2379
2380 self = self;
ab2208b5 2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2))
56f5d962
RD
2382 return NULL;
2383 if (_argo0) {
2384 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
56f5d962
RD
2387 return NULL;
2388 }
2389 }
ab2208b5 2390{
2cd2fac8
RD
2391#if PYTHON_API_VERSION >= 1009
2392 char* tmpPtr; int tmpSize;
2393 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 2394 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2395 return NULL;
2396 }
2397 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2398 return NULL;
2399 _arg2 = new wxString(tmpPtr, tmpSize);
2400#else
ab2208b5
RD
2401 if (!PyString_Check(_obj2)) {
2402 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2403 return NULL;
2404 }
2cd2fac8
RD
2405 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2406#endif
ab2208b5 2407}
56f5d962
RD
2408{
2409 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2410 wxToolBarBase_SetToolShortHelp(_arg0,_arg1,*_arg2);
56f5d962
RD
2411
2412 wxPy_END_ALLOW_THREADS;
4dfaa61e 2413 if (PyErr_Occurred()) return NULL;
56f5d962
RD
2414} Py_INCREF(Py_None);
2415 _resultobj = Py_None;
ab2208b5
RD
2416{
2417 if (_obj2)
2418 delete _arg2;
2419}
56f5d962
RD
2420 return _resultobj;
2421}
2422
ab2208b5
RD
2423#define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2424static PyObject *_wrap_wxToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2425 PyObject * _resultobj;
ab2208b5
RD
2426 wxString * _result;
2427 wxToolBarBase * _arg0;
b26e2dc4 2428 int _arg1;
2d091820 2429 PyObject * _argo0 = 0;
ab2208b5 2430 char *_kwnames[] = { "self","id", NULL };
b26e2dc4
RD
2431
2432 self = self;
ab2208b5 2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames,&_argo0,&_arg1))
b26e2dc4 2434 return NULL;
2d091820
RD
2435 if (_argo0) {
2436 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2439 return NULL;
2440 }
2441 }
ab9bc19b
RD
2442{
2443 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2444 _result = new wxString (wxToolBarBase_GetToolShortHelp(_arg0,_arg1));
ab9bc19b
RD
2445
2446 wxPy_END_ALLOW_THREADS;
4dfaa61e 2447 if (PyErr_Occurred()) return NULL;
ab2208b5 2448}{
e02c03a4 2449 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
b26e2dc4
RD
2450}
2451{
ab2208b5 2452 delete _result;
b26e2dc4
RD
2453}
2454 return _resultobj;
2455}
2456
ab2208b5
RD
2457#define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2458static PyObject *_wrap_wxToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
dd9a3de8 2459 PyObject * _resultobj;
ab2208b5 2460 wxToolBarBase * _arg0;
dd9a3de8 2461 int _arg1;
ab2208b5 2462 wxString * _arg2;
2d091820 2463 PyObject * _argo0 = 0;
ab2208b5
RD
2464 PyObject * _obj2 = 0;
2465 char *_kwnames[] = { "self","id","helpString", NULL };
dd9a3de8
RD
2466
2467 self = self;
ab2208b5 2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2))
dd9a3de8 2469 return NULL;
2d091820
RD
2470 if (_argo0) {
2471 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
dd9a3de8
RD
2474 return NULL;
2475 }
2476 }
dd9a3de8 2477{
2cd2fac8
RD
2478#if PYTHON_API_VERSION >= 1009
2479 char* tmpPtr; int tmpSize;
2480 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7a446686 2481 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2cd2fac8
RD
2482 return NULL;
2483 }
2484 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2485 return NULL;
2486 _arg2 = new wxString(tmpPtr, tmpSize);
2487#else
ab2208b5 2488 if (!PyString_Check(_obj2)) {
dd9a3de8
RD
2489 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2490 return NULL;
2491 }
2cd2fac8
RD
2492 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2493#endif
dd9a3de8 2494}
dd9a3de8 2495{
ab2208b5
RD
2496 wxPy_BEGIN_ALLOW_THREADS;
2497 wxToolBarBase_SetToolLongHelp(_arg0,_arg1,*_arg2);
2498
2499 wxPy_END_ALLOW_THREADS;
4dfaa61e 2500 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2501} Py_INCREF(Py_None);
2502 _resultobj = Py_None;
2503{
2504 if (_obj2)
2505 delete _arg2;
2506}
2507 return _resultobj;
2508}
2509
2510#define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2511static PyObject *_wrap_wxToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject * _resultobj;
2513 wxString * _result;
2514 wxToolBarBase * _arg0;
2515 int _arg1;
2516 PyObject * _argo0 = 0;
2517 char *_kwnames[] = { "self","id", NULL };
2518
2519 self = self;
2520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames,&_argo0,&_arg1))
dd9a3de8 2521 return NULL;
ab2208b5
RD
2522 if (_argo0) {
2523 if (_argo0 == Py_None) { _arg0 = NULL; }
2524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2526 return NULL;
2527 }
dd9a3de8 2528 }
ab9bc19b
RD
2529{
2530 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2531 _result = new wxString (wxToolBarBase_GetToolLongHelp(_arg0,_arg1));
ab9bc19b
RD
2532
2533 wxPy_END_ALLOW_THREADS;
4dfaa61e 2534 if (PyErr_Occurred()) return NULL;
ab2208b5 2535}{
e02c03a4 2536 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
dd9a3de8
RD
2537}
2538{
ab2208b5 2539 delete _result;
dd9a3de8
RD
2540}
2541 return _resultobj;
2542}
2543
ab2208b5
RD
2544#define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2545static PyObject *_wrap_wxToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2546 PyObject * _resultobj;
ab2208b5 2547 wxToolBarBase * _arg0;
b26e2dc4 2548 int _arg1;
ab2208b5 2549 int _arg2;
2d091820 2550 PyObject * _argo0 = 0;
ab2208b5 2551 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
2552
2553 self = self;
ab2208b5 2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 2555 return NULL;
2d091820
RD
2556 if (_argo0) {
2557 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2560 return NULL;
2561 }
2562 }
ab9bc19b
RD
2563{
2564 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2565 wxToolBarBase_SetMarginsXY(_arg0,_arg1,_arg2);
ab9bc19b
RD
2566
2567 wxPy_END_ALLOW_THREADS;
4dfaa61e 2568 if (PyErr_Occurred()) return NULL;
ab9bc19b 2569} Py_INCREF(Py_None);
b26e2dc4
RD
2570 _resultobj = Py_None;
2571 return _resultobj;
2572}
2573
ab2208b5
RD
2574#define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2575static PyObject *_wrap_wxToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
56f5d962 2576 PyObject * _resultobj;
ab2208b5
RD
2577 wxToolBarBase * _arg0;
2578 wxSize * _arg1;
56f5d962 2579 PyObject * _argo0 = 0;
ab2208b5
RD
2580 wxSize temp;
2581 PyObject * _obj1 = 0;
2582 char *_kwnames[] = { "self","size", NULL };
56f5d962
RD
2583
2584 self = self;
ab2208b5 2585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetMargins",_kwnames,&_argo0,&_obj1))
56f5d962
RD
2586 return NULL;
2587 if (_argo0) {
2588 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
56f5d962
RD
2591 return NULL;
2592 }
2593 }
ab2208b5
RD
2594{
2595 _arg1 = &temp;
2596 if (! wxSize_helper(_obj1, &_arg1))
2597 return NULL;
2598}
56f5d962
RD
2599{
2600 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2601 wxToolBarBase_SetMargins(_arg0,*_arg1);
56f5d962
RD
2602
2603 wxPy_END_ALLOW_THREADS;
4dfaa61e 2604 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2605} Py_INCREF(Py_None);
2606 _resultobj = Py_None;
56f5d962
RD
2607 return _resultobj;
2608}
2609
ab2208b5
RD
2610#define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2611static PyObject *_wrap_wxToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2612 PyObject * _resultobj;
ab2208b5 2613 wxToolBarBase * _arg0;
b26e2dc4 2614 int _arg1;
2d091820 2615 PyObject * _argo0 = 0;
ab2208b5 2616 char *_kwnames[] = { "self","packing", NULL };
b26e2dc4
RD
2617
2618 self = self;
ab2208b5 2619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolPacking",_kwnames,&_argo0,&_arg1))
b26e2dc4 2620 return NULL;
2d091820
RD
2621 if (_argo0) {
2622 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2625 return NULL;
2626 }
2627 }
ab9bc19b
RD
2628{
2629 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2630 wxToolBarBase_SetToolPacking(_arg0,_arg1);
ab9bc19b
RD
2631
2632 wxPy_END_ALLOW_THREADS;
4dfaa61e 2633 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2634} Py_INCREF(Py_None);
2635 _resultobj = Py_None;
b26e2dc4
RD
2636 return _resultobj;
2637}
2638
ab2208b5
RD
2639#define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2640static PyObject *_wrap_wxToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2641 PyObject * _resultobj;
ab2208b5 2642 wxToolBarBase * _arg0;
c95e68d8 2643 int _arg1;
2d091820 2644 PyObject * _argo0 = 0;
ab2208b5 2645 char *_kwnames[] = { "self","separation", NULL };
c95e68d8
RD
2646
2647 self = self;
ab2208b5 2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolSeparation",_kwnames,&_argo0,&_arg1))
c95e68d8 2649 return NULL;
2d091820
RD
2650 if (_argo0) {
2651 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
c95e68d8
RD
2654 return NULL;
2655 }
2656 }
c95e68d8 2657{
ab9bc19b 2658 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2659 wxToolBarBase_SetToolSeparation(_arg0,_arg1);
ab9bc19b
RD
2660
2661 wxPy_END_ALLOW_THREADS;
4dfaa61e 2662 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2663} Py_INCREF(Py_None);
2664 _resultobj = Py_None;
2665 return _resultobj;
c95e68d8 2666}
ab2208b5
RD
2667
2668#define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2669static PyObject *_wrap_wxToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2670 PyObject * _resultobj;
2671 wxSize * _result;
2672 wxToolBarBase * _arg0;
2673 PyObject * _argo0 = 0;
2674 char *_kwnames[] = { "self", NULL };
2675 char _ptemp[128];
2676
2677 self = self;
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolMargins",_kwnames,&_argo0))
2679 return NULL;
2680 if (_argo0) {
2681 if (_argo0 == Py_None) { _arg0 = NULL; }
2682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2684 return NULL;
2685 }
2686 }
c95e68d8 2687{
ab2208b5
RD
2688 wxPy_BEGIN_ALLOW_THREADS;
2689 _result = new wxSize (wxToolBarBase_GetToolMargins(_arg0));
2690
2691 wxPy_END_ALLOW_THREADS;
4dfaa61e 2692 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2693} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2694 _resultobj = Py_BuildValue("s",_ptemp);
2695 return _resultobj;
c95e68d8 2696}
ab2208b5 2697
5e40f9dd
RD
2698#define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2699static PyObject *_wrap_wxToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2700 PyObject * _resultobj;
2701 wxSize * _result;
2702 wxToolBarBase * _arg0;
2703 PyObject * _argo0 = 0;
2704 char *_kwnames[] = { "self", NULL };
2705 char _ptemp[128];
2706
2707 self = self;
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMargins",_kwnames,&_argo0))
2709 return NULL;
2710 if (_argo0) {
2711 if (_argo0 == Py_None) { _arg0 = NULL; }
2712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2714 return NULL;
2715 }
2716 }
2717{
2718 wxPy_BEGIN_ALLOW_THREADS;
2719 _result = new wxSize (wxToolBarBase_GetMargins(_arg0));
2720
2721 wxPy_END_ALLOW_THREADS;
4dfaa61e 2722 if (PyErr_Occurred()) return NULL;
5e40f9dd
RD
2723} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2724 _resultobj = Py_BuildValue("s",_ptemp);
2725 return _resultobj;
2726}
2727
ab2208b5
RD
2728#define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2729static PyObject *_wrap_wxToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject * _resultobj;
2731 int _result;
2732 wxToolBarBase * _arg0;
2733 PyObject * _argo0 = 0;
2734 char *_kwnames[] = { "self", NULL };
2735
2736 self = self;
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolPacking",_kwnames,&_argo0))
2738 return NULL;
2739 if (_argo0) {
2740 if (_argo0 == Py_None) { _arg0 = NULL; }
2741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2743 return NULL;
2744 }
2745 }
2746{
2747 wxPy_BEGIN_ALLOW_THREADS;
2748 _result = (int )wxToolBarBase_GetToolPacking(_arg0);
2749
2750 wxPy_END_ALLOW_THREADS;
4dfaa61e 2751 if (PyErr_Occurred()) return NULL;
ab2208b5 2752} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2753 return _resultobj;
2754}
2755
ab2208b5
RD
2756#define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2757static PyObject *_wrap_wxToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8
RD
2758 PyObject * _resultobj;
2759 int _result;
ab2208b5 2760 wxToolBarBase * _arg0;
2d091820 2761 PyObject * _argo0 = 0;
107e4716 2762 char *_kwnames[] = { "self", NULL };
c95e68d8
RD
2763
2764 self = self;
ab2208b5 2765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSeparation",_kwnames,&_argo0))
c95e68d8 2766 return NULL;
2d091820
RD
2767 if (_argo0) {
2768 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
c95e68d8
RD
2771 return NULL;
2772 }
2773 }
ab9bc19b
RD
2774{
2775 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2776 _result = (int )wxToolBarBase_GetToolSeparation(_arg0);
ab9bc19b
RD
2777
2778 wxPy_END_ALLOW_THREADS;
4dfaa61e 2779 if (PyErr_Occurred()) return NULL;
ab9bc19b 2780} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2781 return _resultobj;
2782}
2783
ab2208b5
RD
2784#define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2785static PyObject *_wrap_wxToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2786 PyObject * _resultobj;
ab2208b5
RD
2787 wxToolBarBase * _arg0;
2788 int _arg1;
2d091820 2789 PyObject * _argo0 = 0;
ab2208b5 2790 char *_kwnames[] = { "self","nRows", NULL };
c95e68d8
RD
2791
2792 self = self;
ab2208b5 2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetRows",_kwnames,&_argo0,&_arg1))
c95e68d8 2794 return NULL;
2d091820
RD
2795 if (_argo0) {
2796 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
c95e68d8
RD
2799 return NULL;
2800 }
2801 }
ab9bc19b
RD
2802{
2803 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2804 wxToolBarBase_SetRows(_arg0,_arg1);
ab9bc19b
RD
2805
2806 wxPy_END_ALLOW_THREADS;
4dfaa61e 2807 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2808} Py_INCREF(Py_None);
2809 _resultobj = Py_None;
c95e68d8
RD
2810 return _resultobj;
2811}
2812
ab2208b5
RD
2813#define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2814static PyObject *_wrap_wxToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2815 PyObject * _resultobj;
ab2208b5 2816 wxToolBarBase * _arg0;
c95e68d8 2817 int _arg1;
ab2208b5 2818 int _arg2;
2d091820 2819 PyObject * _argo0 = 0;
ab2208b5 2820 char *_kwnames[] = { "self","rows","cols", NULL };
c95e68d8
RD
2821
2822 self = self;
ab2208b5 2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames,&_argo0,&_arg1,&_arg2))
c95e68d8 2824 return NULL;
2d091820
RD
2825 if (_argo0) {
2826 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
c95e68d8
RD
2829 return NULL;
2830 }
2831 }
c95e68d8 2832{
ab9bc19b 2833 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2834 wxToolBarBase_SetMaxRowsCols(_arg0,_arg1,_arg2);
ab9bc19b
RD
2835
2836 wxPy_END_ALLOW_THREADS;
4dfaa61e 2837 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2838} Py_INCREF(Py_None);
2839 _resultobj = Py_None;
c95e68d8
RD
2840 return _resultobj;
2841}
2842
ab2208b5
RD
2843#define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2844static PyObject *_wrap_wxToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2845 PyObject * _resultobj;
ab2208b5
RD
2846 int _result;
2847 wxToolBarBase * _arg0;
2d091820 2848 PyObject * _argo0 = 0;
ab2208b5 2849 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2850
2851 self = self;
ab2208b5 2852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxRows",_kwnames,&_argo0))
b26e2dc4 2853 return NULL;
2d091820
RD
2854 if (_argo0) {
2855 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2858 return NULL;
2859 }
2860 }
ab9bc19b
RD
2861{
2862 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2863 _result = (int )wxToolBarBase_GetMaxRows(_arg0);
ab9bc19b
RD
2864
2865 wxPy_END_ALLOW_THREADS;
4dfaa61e 2866 if (PyErr_Occurred()) return NULL;
ab9bc19b 2867} _resultobj = Py_BuildValue("i",_result);
b26e2dc4
RD
2868 return _resultobj;
2869}
2870
ab2208b5
RD
2871#define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2872static PyObject *_wrap_wxToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 2873 PyObject * _resultobj;
ab2208b5
RD
2874 int _result;
2875 wxToolBarBase * _arg0;
2d091820 2876 PyObject * _argo0 = 0;
107e4716 2877 char *_kwnames[] = { "self", NULL };
b26e2dc4
RD
2878
2879 self = self;
ab2208b5 2880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxCols",_kwnames,&_argo0))
b26e2dc4 2881 return NULL;
2d091820
RD
2882 if (_argo0) {
2883 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
b26e2dc4
RD
2886 return NULL;
2887 }
2888 }
ab9bc19b
RD
2889{
2890 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2891 _result = (int )wxToolBarBase_GetMaxCols(_arg0);
ab9bc19b
RD
2892
2893 wxPy_END_ALLOW_THREADS;
4dfaa61e 2894 if (PyErr_Occurred()) return NULL;
ab9bc19b 2895} _resultobj = Py_BuildValue("i",_result);
c95e68d8
RD
2896 return _resultobj;
2897}
2898
ab2208b5
RD
2899#define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2900static PyObject *_wrap_wxToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2901 PyObject * _resultobj;
ab2208b5
RD
2902 wxToolBarBase * _arg0;
2903 wxSize * _arg1;
2d091820 2904 PyObject * _argo0 = 0;
ab2208b5
RD
2905 wxSize temp;
2906 PyObject * _obj1 = 0;
2907 char *_kwnames[] = { "self","size", NULL };
c95e68d8
RD
2908
2909 self = self;
ab2208b5 2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames,&_argo0,&_obj1))
c95e68d8 2911 return NULL;
2d091820
RD
2912 if (_argo0) {
2913 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
c95e68d8
RD
2916 return NULL;
2917 }
2918 }
2919{
ab2208b5
RD
2920 _arg1 = &temp;
2921 if (! wxSize_helper(_obj1, &_arg1))
c95e68d8 2922 return NULL;
c95e68d8 2923}
ab9bc19b
RD
2924{
2925 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2926 wxToolBarBase_SetToolBitmapSize(_arg0,*_arg1);
ab9bc19b
RD
2927
2928 wxPy_END_ALLOW_THREADS;
4dfaa61e 2929 if (PyErr_Occurred()) return NULL;
ab9bc19b 2930} Py_INCREF(Py_None);
c95e68d8 2931 _resultobj = Py_None;
c95e68d8
RD
2932 return _resultobj;
2933}
2934
ab2208b5
RD
2935#define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2936static PyObject *_wrap_wxToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
c95e68d8 2937 PyObject * _resultobj;
ab2208b5
RD
2938 wxSize * _result;
2939 wxToolBarBase * _arg0;
2d091820 2940 PyObject * _argo0 = 0;
ab2208b5
RD
2941 char *_kwnames[] = { "self", NULL };
2942 char _ptemp[128];
c95e68d8
RD
2943
2944 self = self;
ab2208b5 2945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolBitmapSize",_kwnames,&_argo0))
c95e68d8 2946 return NULL;
2d091820
RD
2947 if (_argo0) {
2948 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
2949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
c95e68d8
RD
2951 return NULL;
2952 }
2953 }
2954{
ab2208b5
RD
2955 wxPy_BEGIN_ALLOW_THREADS;
2956 _result = new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0));
2957
2958 wxPy_END_ALLOW_THREADS;
4dfaa61e 2959 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2960} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2961 _resultobj = Py_BuildValue("s",_ptemp);
2962 return _resultobj;
2963}
2964
2965#define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2966static PyObject *_wrap_wxToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2967 PyObject * _resultobj;
2968 wxSize * _result;
2969 wxToolBarBase * _arg0;
2970 PyObject * _argo0 = 0;
2971 char *_kwnames[] = { "self", NULL };
2972 char _ptemp[128];
2973
2974 self = self;
2975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSize",_kwnames,&_argo0))
2976 return NULL;
2977 if (_argo0) {
2978 if (_argo0 == Py_None) { _arg0 = NULL; }
2979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
c95e68d8 2981 return NULL;
ab2208b5 2982 }
c95e68d8 2983 }
ab9bc19b
RD
2984{
2985 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 2986 _result = new wxSize (wxToolBarBase_GetToolSize(_arg0));
ab9bc19b
RD
2987
2988 wxPy_END_ALLOW_THREADS;
4dfaa61e 2989 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
2990} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2991 _resultobj = Py_BuildValue("s",_ptemp);
b26e2dc4
RD
2992 return _resultobj;
2993}
2994
ab2208b5
RD
2995static void *SwigwxToolBarTowxToolBarBase(void *ptr) {
2996 wxToolBar *src;
2997 wxToolBarBase *dest;
2998 src = (wxToolBar *) ptr;
2999 dest = (wxToolBarBase *) src;
3000 return (void *) dest;
3001}
3002
3003static void *SwigwxToolBarTowxControl(void *ptr) {
3004 wxToolBar *src;
3005 wxControl *dest;
3006 src = (wxToolBar *) ptr;
3007 dest = (wxControl *) src;
3008 return (void *) dest;
3009}
3010
3011static void *SwigwxToolBarTowxWindow(void *ptr) {
3012 wxToolBar *src;
3013 wxWindow *dest;
3014 src = (wxToolBar *) ptr;
3015 dest = (wxWindow *) src;
3016 return (void *) dest;
3017}
3018
3019static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
3020 wxToolBar *src;
3021 wxEvtHandler *dest;
3022 src = (wxToolBar *) ptr;
3023 dest = (wxEvtHandler *) src;
3024 return (void *) dest;
3025}
3026
9df61a29
RD
3027static void *SwigwxToolBarTowxObject(void *ptr) {
3028 wxToolBar *src;
3029 wxObject *dest;
3030 src = (wxToolBar *) ptr;
3031 dest = (wxObject *) src;
3032 return (void *) dest;
3033}
3034
ab2208b5
RD
3035#define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3036static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3037 PyObject * _resultobj;
ab2208b5
RD
3038 wxToolBar * _result;
3039 wxWindow * _arg0;
3040 wxWindowID _arg1;
b68dc582
RD
3041 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3042 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
ab2208b5 3043 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
8e425133 3044 char * _arg5 = (char *) wxToolBarNameStr;
2d091820 3045 PyObject * _argo0 = 0;
ab2208b5
RD
3046 wxPoint temp;
3047 PyObject * _obj2 = 0;
3048 wxSize temp0;
3049 PyObject * _obj3 = 0;
ab2208b5
RD
3050 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3051 char _ptemp[128];
b26e2dc4
RD
3052
3053 self = self;
8e425133 3054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
b26e2dc4 3055 return NULL;
2d091820
RD
3056 if (_argo0) {
3057 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
b26e2dc4
RD
3060 return NULL;
3061 }
3062 }
ab2208b5 3063 if (_obj2)
37f6a977 3064{
ab2208b5
RD
3065 _arg2 = &temp;
3066 if (! wxPoint_helper(_obj2, &_arg2))
3067 return NULL;
3068}
3069 if (_obj3)
3070{
3071 _arg3 = &temp0;
3072 if (! wxSize_helper(_obj3, &_arg3))
3073 return NULL;
37f6a977 3074}
ab9bc19b
RD
3075{
3076 wxPy_BEGIN_ALLOW_THREADS;
8e425133 3077 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
ab9bc19b
RD
3078
3079 wxPy_END_ALLOW_THREADS;
4dfaa61e 3080 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
3081} if (_result) {
3082 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3083 _resultobj = Py_BuildValue("s",_ptemp);
3084 } else {
3085 Py_INCREF(Py_None);
3086 _resultobj = Py_None;
3087 }
b26e2dc4
RD
3088 return _resultobj;
3089}
3090
aa2a5b86
RD
3091#define new_wxPreToolBar() (new wxToolBar())
3092static PyObject *_wrap_new_wxPreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3093 PyObject * _resultobj;
3094 wxToolBar * _result;
3095 char *_kwnames[] = { NULL };
3096 char _ptemp[128];
3097
3098 self = self;
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBar",_kwnames))
3100 return NULL;
3101{
3102 wxPy_BEGIN_ALLOW_THREADS;
3103 _result = (wxToolBar *)new_wxPreToolBar();
3104
3105 wxPy_END_ALLOW_THREADS;
3106 if (PyErr_Occurred()) return NULL;
3107} if (_result) {
3108 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3109 _resultobj = Py_BuildValue("s",_ptemp);
3110 } else {
3111 Py_INCREF(Py_None);
3112 _resultobj = Py_None;
3113 }
3114 return _resultobj;
3115}
3116
3117#define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3118static PyObject *_wrap_wxToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3119 PyObject * _resultobj;
3120 bool _result;
3121 wxToolBar * _arg0;
3122 wxWindow * _arg1;
3123 wxWindowID _arg2;
3124 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3125 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3126 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3127 char * _arg6 = (char *) wxToolBarNameStr;
3128 PyObject * _argo0 = 0;
3129 PyObject * _argo1 = 0;
3130 wxPoint temp;
3131 PyObject * _obj3 = 0;
3132 wxSize temp0;
3133 PyObject * _obj4 = 0;
3134 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3135
3136 self = self;
3137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3138 return NULL;
3139 if (_argo0) {
3140 if (_argo0 == Py_None) { _arg0 = NULL; }
3141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3143 return NULL;
3144 }
3145 }
3146 if (_argo1) {
3147 if (_argo1 == Py_None) { _arg1 = NULL; }
3148 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3149 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3150 return NULL;
3151 }
3152 }
3153 if (_obj3)
3154{
3155 _arg3 = &temp;
3156 if (! wxPoint_helper(_obj3, &_arg3))
3157 return NULL;
3158}
3159 if (_obj4)
3160{
3161 _arg4 = &temp0;
3162 if (! wxSize_helper(_obj4, &_arg4))
3163 return NULL;
3164}
3165{
3166 wxPy_BEGIN_ALLOW_THREADS;
3167 _result = (bool )wxToolBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3168
3169 wxPy_END_ALLOW_THREADS;
3170 if (PyErr_Occurred()) return NULL;
3171} _resultobj = Py_BuildValue("i",_result);
3172 return _resultobj;
3173}
3174
ab2208b5
RD
3175#define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3176static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3177 PyObject * _resultobj;
ab2208b5 3178 wxToolBarToolBase * _result;
b26e2dc4 3179 wxToolBar * _arg0;
ab2208b5
RD
3180 wxCoord _arg1;
3181 wxCoord _arg2;
2d091820 3182 PyObject * _argo0 = 0;
ab2208b5 3183 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
3184
3185 self = self;
ab2208b5 3186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 3187 return NULL;
2d091820
RD
3188 if (_argo0) {
3189 if (_argo0 == Py_None) { _arg0 = NULL; }
3190 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
ab2208b5 3191 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
b26e2dc4
RD
3192 return NULL;
3193 }
3194 }
ab9bc19b
RD
3195{
3196 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 3197 _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
ab9bc19b
RD
3198
3199 wxPy_END_ALLOW_THREADS;
4dfaa61e 3200 if (PyErr_Occurred()) return NULL;
9df61a29 3201}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
3202 return _resultobj;
3203}
3204
ab2208b5
RD
3205static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr) {
3206 wxToolBarSimple *src;
3207 wxToolBarBase *dest;
3208 src = (wxToolBarSimple *) ptr;
3209 dest = (wxToolBarBase *) src;
3210 return (void *) dest;
3211}
3212
3213static void *SwigwxToolBarSimpleTowxControl(void *ptr) {
3214 wxToolBarSimple *src;
3215 wxControl *dest;
3216 src = (wxToolBarSimple *) ptr;
3217 dest = (wxControl *) src;
3218 return (void *) dest;
3219}
3220
3221static void *SwigwxToolBarSimpleTowxWindow(void *ptr) {
3222 wxToolBarSimple *src;
3223 wxWindow *dest;
3224 src = (wxToolBarSimple *) ptr;
3225 dest = (wxWindow *) src;
3226 return (void *) dest;
3227}
3228
3229static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr) {
3230 wxToolBarSimple *src;
3231 wxEvtHandler *dest;
3232 src = (wxToolBarSimple *) ptr;
3233 dest = (wxEvtHandler *) src;
3234 return (void *) dest;
3235}
3236
9df61a29
RD
3237static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
3238 wxToolBarSimple *src;
3239 wxObject *dest;
3240 src = (wxToolBarSimple *) ptr;
3241 dest = (wxObject *) src;
3242 return (void *) dest;
3243}
3244
ab2208b5
RD
3245#define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3246static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3247 PyObject * _resultobj;
ab2208b5
RD
3248 wxToolBarSimple * _result;
3249 wxWindow * _arg0;
3250 wxWindowID _arg1;
b68dc582
RD
3251 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3252 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
ab2208b5 3253 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
e02c03a4 3254 char * _arg5 = (char *) wxToolBarNameStr;
2d091820 3255 PyObject * _argo0 = 0;
ab2208b5
RD
3256 wxPoint temp;
3257 PyObject * _obj2 = 0;
3258 wxSize temp0;
3259 PyObject * _obj3 = 0;
ab2208b5
RD
3260 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3261 char _ptemp[128];
b26e2dc4
RD
3262
3263 self = self;
e02c03a4 3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
b26e2dc4 3265 return NULL;
2d091820
RD
3266 if (_argo0) {
3267 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
b26e2dc4
RD
3270 return NULL;
3271 }
3272 }
ab2208b5
RD
3273 if (_obj2)
3274{
3275 _arg2 = &temp;
3276 if (! wxPoint_helper(_obj2, &_arg2))
3277 return NULL;
3278}
3279 if (_obj3)
3280{
3281 _arg3 = &temp0;
3282 if (! wxSize_helper(_obj3, &_arg3))
3283 return NULL;
ab2208b5 3284}
ab9bc19b
RD
3285{
3286 wxPy_BEGIN_ALLOW_THREADS;
e02c03a4 3287 _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
ab9bc19b
RD
3288
3289 wxPy_END_ALLOW_THREADS;
4dfaa61e 3290 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
3291} if (_result) {
3292 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3293 _resultobj = Py_BuildValue("s",_ptemp);
3294 } else {
3295 Py_INCREF(Py_None);
3296 _resultobj = Py_None;
3297 }
b26e2dc4
RD
3298 return _resultobj;
3299}
3300
aa2a5b86
RD
3301#define new_wxPreToolBarSimple() (new wxToolBarSimple())
3302static PyObject *_wrap_new_wxPreToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject * _resultobj;
3304 wxToolBarSimple * _result;
3305 char *_kwnames[] = { NULL };
3306 char _ptemp[128];
3307
3308 self = self;
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBarSimple",_kwnames))
3310 return NULL;
3311{
3312 wxPy_BEGIN_ALLOW_THREADS;
3313 _result = (wxToolBarSimple *)new_wxPreToolBarSimple();
3314
3315 wxPy_END_ALLOW_THREADS;
3316 if (PyErr_Occurred()) return NULL;
3317} if (_result) {
3318 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3319 _resultobj = Py_BuildValue("s",_ptemp);
3320 } else {
3321 Py_INCREF(Py_None);
3322 _resultobj = Py_None;
3323 }
3324 return _resultobj;
3325}
3326
3327#define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3328static PyObject *_wrap_wxToolBarSimple_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject * _resultobj;
3330 bool _result;
3331 wxToolBarSimple * _arg0;
3332 wxWindow * _arg1;
3333 wxWindowID _arg2;
3334 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3335 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3336 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3337 char * _arg6 = (char *) wxToolBarNameStr;
3338 PyObject * _argo0 = 0;
3339 PyObject * _argo1 = 0;
3340 wxPoint temp;
3341 PyObject * _obj3 = 0;
3342 wxSize temp0;
3343 PyObject * _obj4 = 0;
3344 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3345
3346 self = self;
3347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBarSimple_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3348 return NULL;
3349 if (_argo0) {
3350 if (_argo0 == Py_None) { _arg0 = NULL; }
3351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3353 return NULL;
3354 }
3355 }
3356 if (_argo1) {
3357 if (_argo1 == Py_None) { _arg1 = NULL; }
3358 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3359 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3360 return NULL;
3361 }
3362 }
3363 if (_obj3)
3364{
3365 _arg3 = &temp;
3366 if (! wxPoint_helper(_obj3, &_arg3))
3367 return NULL;
3368}
3369 if (_obj4)
3370{
3371 _arg4 = &temp0;
3372 if (! wxSize_helper(_obj4, &_arg4))
3373 return NULL;
3374}
3375{
3376 wxPy_BEGIN_ALLOW_THREADS;
3377 _result = (bool )wxToolBarSimple_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3378
3379 wxPy_END_ALLOW_THREADS;
3380 if (PyErr_Occurred()) return NULL;
3381} _resultobj = Py_BuildValue("i",_result);
3382 return _resultobj;
3383}
3384
ab2208b5
RD
3385#define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3386static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
b26e2dc4 3387 PyObject * _resultobj;
ab2208b5
RD
3388 wxToolBarToolBase * _result;
3389 wxToolBarSimple * _arg0;
3390 wxCoord _arg1;
3391 wxCoord _arg2;
2d091820 3392 PyObject * _argo0 = 0;
ab2208b5 3393 char *_kwnames[] = { "self","x","y", NULL };
b26e2dc4
RD
3394
3395 self = self;
ab2208b5 3396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
b26e2dc4 3397 return NULL;
2d091820
RD
3398 if (_argo0) {
3399 if (_argo0 == Py_None) { _arg0 = NULL; }
ab2208b5
RD
3400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
b26e2dc4
RD
3402 return NULL;
3403 }
3404 }
ab9bc19b
RD
3405{
3406 wxPy_BEGIN_ALLOW_THREADS;
ab2208b5 3407 _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);
ab9bc19b
RD
3408
3409 wxPy_END_ALLOW_THREADS;
4dfaa61e 3410 if (PyErr_Occurred()) return NULL;
9df61a29 3411}{ _resultobj = wxPyMake_wxObject(_result); }
b26e2dc4
RD
3412 return _resultobj;
3413}
3414
3415static PyMethodDef stattoolcMethods[] = {
ab2208b5 3416 { "wxToolBarSimple_FindToolForPosition", (PyCFunction) _wrap_wxToolBarSimple_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3417 { "wxToolBarSimple_Create", (PyCFunction) _wrap_wxToolBarSimple_Create, METH_VARARGS | METH_KEYWORDS },
3418 { "new_wxPreToolBarSimple", (PyCFunction) _wrap_new_wxPreToolBarSimple, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3419 { "new_wxToolBarSimple", (PyCFunction) _wrap_new_wxToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3420 { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3421 { "wxToolBar_Create", (PyCFunction) _wrap_wxToolBar_Create, METH_VARARGS | METH_KEYWORDS },
3422 { "new_wxPreToolBar", (PyCFunction) _wrap_new_wxPreToolBar, METH_VARARGS | METH_KEYWORDS },
107e4716 3423 { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3424 { "wxToolBarBase_GetToolSize", (PyCFunction) _wrap_wxToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
3425 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3426 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3427 { "wxToolBarBase_GetMaxCols", (PyCFunction) _wrap_wxToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
3428 { "wxToolBarBase_GetMaxRows", (PyCFunction) _wrap_wxToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
3429 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_wxToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
3430 { "wxToolBarBase_SetRows", (PyCFunction) _wrap_wxToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
3431 { "wxToolBarBase_GetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3432 { "wxToolBarBase_GetToolPacking", (PyCFunction) _wrap_wxToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
5e40f9dd 3433 { "wxToolBarBase_GetMargins", (PyCFunction) _wrap_wxToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
ab2208b5
RD
3434 { "wxToolBarBase_GetToolMargins", (PyCFunction) _wrap_wxToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
3435 { "wxToolBarBase_SetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3436 { "wxToolBarBase_SetToolPacking", (PyCFunction) _wrap_wxToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
3437 { "wxToolBarBase_SetMargins", (PyCFunction) _wrap_wxToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
3438 { "wxToolBarBase_SetMarginsXY", (PyCFunction) _wrap_wxToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
3439 { "wxToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3440 { "wxToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3441 { "wxToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3442 { "wxToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3443 { "wxToolBarBase_GetToolEnabled", (PyCFunction) _wrap_wxToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
3444 { "wxToolBarBase_GetToolState", (PyCFunction) _wrap_wxToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
3445 { "wxToolBarBase_SetToolClientData", (PyCFunction) _wrap_wxToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
3446 { "wxToolBarBase_GetToolClientData", (PyCFunction) _wrap_wxToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
3447 { "wxToolBarBase_SetToggle", (PyCFunction) _wrap_wxToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3448 { "wxToolBarBase_ToggleTool", (PyCFunction) _wrap_wxToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
3449 { "wxToolBarBase_EnableTool", (PyCFunction) _wrap_wxToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
3450 { "wxToolBarBase_Realize", (PyCFunction) _wrap_wxToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
3451 { "wxToolBarBase_ClearTools", (PyCFunction) _wrap_wxToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
3452 { "wxToolBarBase_DeleteTool", (PyCFunction) _wrap_wxToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
3453 { "wxToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_wxToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
3454 { "wxToolBarBase_RemoveTool", (PyCFunction) _wrap_wxToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
3455 { "wxToolBarBase_InsertSeparator", (PyCFunction) _wrap_wxToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
3456 { "wxToolBarBase_AddSeparator", (PyCFunction) _wrap_wxToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
3457 { "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
3458 { "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
3459 { "wxToolBarBase_InsertSimpleTool", (PyCFunction) _wrap_wxToolBarBase_InsertSimpleTool, METH_VARARGS | METH_KEYWORDS },
3460 { "wxToolBarBase_InsertTool", (PyCFunction) _wrap_wxToolBarBase_InsertTool, METH_VARARGS | METH_KEYWORDS },
3461 { "wxToolBarBase_AddSimpleTool", (PyCFunction) _wrap_wxToolBarBase_AddSimpleTool, METH_VARARGS | METH_KEYWORDS },
3462 { "wxToolBarBase_AddTool", (PyCFunction) _wrap_wxToolBarBase_AddTool, METH_VARARGS | METH_KEYWORDS },
3463 { "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
3464 { "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
3465 { "wxToolBarToolBase_Attach", (PyCFunction) _wrap_wxToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
3466 { "wxToolBarToolBase_Detach", (PyCFunction) _wrap_wxToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
3467 { "wxToolBarToolBase_SetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap2, METH_VARARGS | METH_KEYWORDS },
3468 { "wxToolBarToolBase_SetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap1, METH_VARARGS | METH_KEYWORDS },
3469 { "wxToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
3470 { "wxToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
3471 { "wxToolBarToolBase_SetToggle", (PyCFunction) _wrap_wxToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3472 { "wxToolBarToolBase_Toggle", (PyCFunction) _wrap_wxToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
3473 { "wxToolBarToolBase_Enable", (PyCFunction) _wrap_wxToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
3474 { "wxToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
3475 { "wxToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
3476 { "wxToolBarToolBase_GetBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3477 { "wxToolBarToolBase_GetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap2, METH_VARARGS | METH_KEYWORDS },
3478 { "wxToolBarToolBase_GetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap1, METH_VARARGS | METH_KEYWORDS },
3479 { "wxToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_wxToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
3480 { "wxToolBarToolBase_IsToggled", (PyCFunction) _wrap_wxToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
3481 { "wxToolBarToolBase_IsEnabled", (PyCFunction) _wrap_wxToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
3482 { "wxToolBarToolBase_GetStyle", (PyCFunction) _wrap_wxToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
3483 { "wxToolBarToolBase_IsSeparator", (PyCFunction) _wrap_wxToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
3484 { "wxToolBarToolBase_IsControl", (PyCFunction) _wrap_wxToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
3485 { "wxToolBarToolBase_IsButton", (PyCFunction) _wrap_wxToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
3486 { "wxToolBarToolBase_GetToolBar", (PyCFunction) _wrap_wxToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
3487 { "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
3488 { "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
3489 { "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
2fc99549 3490 { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3491 { "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
3492 { "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
3493 { "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
2fc99549
RD
3494 { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
3495 { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3496 { "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
3497 { "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3498 { "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
aa2a5b86
RD
3499 { "wxStatusBar_Create", (PyCFunction) _wrap_wxStatusBar_Create, METH_VARARGS | METH_KEYWORDS },
3500 { "new_wxPreStatusBar", (PyCFunction) _wrap_new_wxPreStatusBar, METH_VARARGS | METH_KEYWORDS },
107e4716 3501 { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS },
b26e2dc4
RD
3502 { NULL, NULL }
3503};
2d091820
RD
3504#ifdef __cplusplus
3505}
3506#endif
3507/*
3508 * This table is used by the pointer type-checker
3509 */
3510static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 3511 { "_signed_long","_long",0},
4120ef2b 3512 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
3513 { "_wxPrintQuality","_int",0},
3514 { "_wxPrintQuality","_signed_int",0},
3515 { "_wxPrintQuality","_unsigned_int",0},
3516 { "_wxPrintQuality","_wxWindowID",0},
3517 { "_wxPrintQuality","_uint",0},
3518 { "_wxPrintQuality","_EBool",0},
3519 { "_wxPrintQuality","_size_t",0},
c368d904 3520 { "_wxPrintQuality","_time_t",0},
2d091820 3521 { "_byte","_unsigned_char",0},
2d091820
RD
3522 { "_long","_unsigned_long",0},
3523 { "_long","_signed_long",0},
4120ef2b 3524 { "_size_t","_wxCoord",0},
2d091820 3525 { "_size_t","_wxPrintQuality",0},
c368d904 3526 { "_size_t","_time_t",0},
2d091820
RD
3527 { "_size_t","_unsigned_int",0},
3528 { "_size_t","_int",0},
3529 { "_size_t","_wxWindowID",0},
3530 { "_size_t","_uint",0},
4120ef2b 3531 { "_uint","_wxCoord",0},
2d091820 3532 { "_uint","_wxPrintQuality",0},
c368d904 3533 { "_uint","_time_t",0},
2d091820
RD
3534 { "_uint","_size_t",0},
3535 { "_uint","_unsigned_int",0},
3536 { "_uint","_int",0},
3537 { "_uint","_wxWindowID",0},
f6bcfd97 3538 { "_wxChar","_char",0},
f6bcfd97 3539 { "_char","_wxChar",0},
32c988a3 3540 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 3541 { "_EBool","_wxCoord",0},
2d091820
RD
3542 { "_EBool","_wxPrintQuality",0},
3543 { "_EBool","_signed_int",0},
3544 { "_EBool","_int",0},
3545 { "_EBool","_wxWindowID",0},
2d091820 3546 { "_unsigned_long","_long",0},
32c988a3 3547 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 3548 { "_signed_int","_wxCoord",0},
2d091820
RD
3549 { "_signed_int","_wxPrintQuality",0},
3550 { "_signed_int","_EBool",0},
3551 { "_signed_int","_wxWindowID",0},
3552 { "_signed_int","_int",0},
2d091820
RD
3553 { "_WXTYPE","_short",0},
3554 { "_WXTYPE","_signed_short",0},
3555 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
3556 { "_unsigned_short","_WXTYPE",0},
3557 { "_unsigned_short","_short",0},
9df61a29 3558 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
9df61a29 3559 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
9df61a29 3560 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
9df61a29 3561 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
9df61a29 3562 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
2d091820
RD
3563 { "_signed_short","_WXTYPE",0},
3564 { "_signed_short","_short",0},
2d091820 3565 { "_unsigned_char","_byte",0},
ab2208b5 3566 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
2d091820 3567 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
ab2208b5 3568 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl},
4120ef2b 3569 { "_unsigned_int","_wxCoord",0},
2d091820 3570 { "_unsigned_int","_wxPrintQuality",0},
c368d904 3571 { "_unsigned_int","_time_t",0},
2d091820
RD
3572 { "_unsigned_int","_size_t",0},
3573 { "_unsigned_int","_uint",0},
3574 { "_unsigned_int","_wxWindowID",0},
3575 { "_unsigned_int","_int",0},
2d091820
RD
3576 { "_short","_WXTYPE",0},
3577 { "_short","_unsigned_short",0},
3578 { "_short","_signed_short",0},
4120ef2b 3579 { "_wxWindowID","_wxCoord",0},
2d091820 3580 { "_wxWindowID","_wxPrintQuality",0},
c368d904 3581 { "_wxWindowID","_time_t",0},
2d091820
RD
3582 { "_wxWindowID","_size_t",0},
3583 { "_wxWindowID","_EBool",0},
3584 { "_wxWindowID","_uint",0},
3585 { "_wxWindowID","_int",0},
3586 { "_wxWindowID","_signed_int",0},
3587 { "_wxWindowID","_unsigned_int",0},
4120ef2b 3588 { "_int","_wxCoord",0},
2d091820 3589 { "_int","_wxPrintQuality",0},
c368d904 3590 { "_int","_time_t",0},
2d091820
RD
3591 { "_int","_size_t",0},
3592 { "_int","_EBool",0},
3593 { "_int","_uint",0},
3594 { "_int","_wxWindowID",0},
3595 { "_int","_unsigned_int",0},
3596 { "_int","_signed_int",0},
c368d904
RD
3597 { "_time_t","_wxCoord",0},
3598 { "_time_t","_wxPrintQuality",0},
3599 { "_time_t","_unsigned_int",0},
3600 { "_time_t","_int",0},
3601 { "_time_t","_wxWindowID",0},
3602 { "_time_t","_uint",0},
3603 { "_time_t","_size_t",0},
ab2208b5 3604 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
ab2208b5 3605 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase},
4120ef2b
RD
3606 { "_wxCoord","_int",0},
3607 { "_wxCoord","_signed_int",0},
3608 { "_wxCoord","_unsigned_int",0},
3609 { "_wxCoord","_wxWindowID",0},
3610 { "_wxCoord","_uint",0},
3611 { "_wxCoord","_EBool",0},
3612 { "_wxCoord","_size_t",0},
c368d904 3613 { "_wxCoord","_time_t",0},
4120ef2b 3614 { "_wxCoord","_wxPrintQuality",0},
ab2208b5 3615 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
2d091820 3616 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
ab2208b5 3617 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
2d091820 3618 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
ab2208b5 3619 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
2d091820 3620 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
ab2208b5 3621 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
2d091820 3622 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
2d091820
RD
3623{0,0,0}};
3624
b26e2dc4
RD
3625static PyObject *SWIG_globals;
3626#ifdef __cplusplus
3627extern "C"
3628#endif
2d091820 3629SWIGEXPORT(void) initstattoolc() {
b26e2dc4
RD
3630 PyObject *m, *d;
3631 SWIG_globals = SWIG_newvarlink();
3632 m = Py_InitModule("stattoolc", stattoolcMethods);
3633 d = PyModule_GetDict(m);
ab2208b5
RD
3634 PyDict_SetItemString(d,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON));
3635 PyDict_SetItemString(d,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR));
3636 PyDict_SetItemString(d,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL));
2d091820
RD
3637{
3638 int i;
3639 for (i = 0; _swig_mapping[i].n1; i++)
3640 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3641}
b26e2dc4 3642}