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