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