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