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