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