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