]>
Commit | Line | Data |
---|---|---|
b26e2dc4 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/stattool.cpp |
b26e2dc4 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
b26e2dc4 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
b26e2dc4 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
5e40f9dd | 30 | # define SWIGEXPORT(a) a _export |
b26e2dc4 | 31 | # else |
5e40f9dd | 32 | # define SWIGEXPORT(a) a |
b26e2dc4 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
5e40f9dd | 36 | # define SWIGEXPORT(a) a |
b26e2dc4 RD |
37 | #endif |
38 | ||
5e40f9dd RD |
39 | #include "Python.h" |
40 | ||
b26e2dc4 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
5e40f9dd | 44 | |
b26e2dc4 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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
b26e2dc4 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
b26e2dc4 RD |
54 | #define SWIG_init initstattoolc |
55 | ||
56 | #define SWIG_name "stattoolc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/toolbar.h> | |
60 | #include <wx/tbarsmpl.h> | |
61 | ||
b26e2dc4 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
5e40f9dd | 67 | if (!target) { |
b26e2dc4 | 68 | target = o; |
5e40f9dd | 69 | } else if (target == Py_None) { |
b26e2dc4 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
5e40f9dd | 72 | } else { |
b26e2dc4 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
5e40f9dd RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
b26e2dc4 RD |
80 | |
81 | o2 = target; | |
5e40f9dd RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
b26e2dc4 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
7a446686 RD |
89 | #if PYTHON_API_VERSION >= 1009 |
90 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
91 | #else | |
92 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
93 | #endif | |
b68dc582 RD |
94 | |
95 | static wxString wxPyEmptyStr(""); | |
2d091820 RD |
96 | #ifdef __cplusplus |
97 | extern "C" { | |
98 | #endif | |
b26e2dc4 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 | ||
9df61a29 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 | ||
b26e2dc4 | 123 | #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 124 | static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
125 | PyObject * _resultobj; |
126 | wxStatusBar * _result; | |
127 | wxWindow * _arg0; | |
128 | wxWindowID _arg1; | |
b68dc582 RD |
129 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
130 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2d091820 RD |
131 | long _arg4 = (long ) wxST_SIZEGRIP; |
132 | char * _arg5 = (char *) "statusBar"; | |
133 | PyObject * _argo0 = 0; | |
37f6a977 RD |
134 | wxPoint temp; |
135 | PyObject * _obj2 = 0; | |
136 | wxSize temp0; | |
137 | PyObject * _obj3 = 0; | |
107e4716 | 138 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
b26e2dc4 RD |
139 | char _ptemp[128]; |
140 | ||
141 | self = self; | |
37f6a977 | 142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStatusBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
b26e2dc4 | 143 | return NULL; |
2d091820 RD |
144 | if (_argo0) { |
145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b26e2dc4 RD |
147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p."); |
148 | return NULL; | |
149 | } | |
150 | } | |
37f6a977 RD |
151 | if (_obj2) |
152 | { | |
153 | _arg2 = &temp; | |
154 | if (! wxPoint_helper(_obj2, &_arg2)) | |
b26e2dc4 | 155 | return NULL; |
37f6a977 RD |
156 | } |
157 | if (_obj3) | |
158 | { | |
159 | _arg3 = &temp0; | |
160 | if (! wxSize_helper(_obj3, &_arg3)) | |
b26e2dc4 | 161 | return NULL; |
37f6a977 | 162 | } |
ab9bc19b RD |
163 | { |
164 | wxPy_BEGIN_ALLOW_THREADS; | |
165 | _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
166 | ||
167 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 168 | if (PyErr_Occurred()) return NULL; |
2d091820 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 | } | |
b26e2dc4 RD |
176 | return _resultobj; |
177 | } | |
178 | ||
aa2a5b86 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 | ||
b26e2dc4 RD |
245 | static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) { |
246 | wxRect* rect= new wxRect; | |
247 | self->GetFieldRect(item, *rect); | |
248 | return rect; | |
249 | } | |
107e4716 | 250 | static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
251 | PyObject * _resultobj; |
252 | wxRect * _result; | |
253 | wxStatusBar * _arg0; | |
254 | long _arg1; | |
2d091820 | 255 | PyObject * _argo0 = 0; |
107e4716 | 256 | char *_kwnames[] = { "self","item", NULL }; |
b26e2dc4 RD |
257 | char _ptemp[128]; |
258 | ||
259 | self = self; | |
107e4716 | 260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxStatusBar_GetFieldRect",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 261 | return NULL; |
2d091820 RD |
262 | if (_argo0) { |
263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p."); |
266 | return NULL; | |
267 | } | |
268 | } | |
ab9bc19b RD |
269 | { |
270 | wxPy_BEGIN_ALLOW_THREADS; | |
271 | _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1); | |
272 | ||
273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 274 | if (PyErr_Occurred()) return NULL; |
2d091820 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 | } | |
b26e2dc4 RD |
282 | return _resultobj; |
283 | } | |
284 | ||
285 | #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount()) | |
107e4716 | 286 | static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
287 | PyObject * _resultobj; |
288 | int _result; | |
289 | wxStatusBar * _arg0; | |
2d091820 | 290 | PyObject * _argo0 = 0; |
107e4716 | 291 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
292 | |
293 | self = self; | |
107e4716 | 294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetFieldsCount",_kwnames,&_argo0)) |
b26e2dc4 | 295 | return NULL; |
2d091820 RD |
296 | if (_argo0) { |
297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p."); |
300 | return NULL; | |
301 | } | |
302 | } | |
ab9bc19b RD |
303 | { |
304 | wxPy_BEGIN_ALLOW_THREADS; | |
305 | _result = (int )wxStatusBar_GetFieldsCount(_arg0); | |
306 | ||
307 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 308 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 309 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
310 | return _resultobj; |
311 | } | |
312 | ||
313 | #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0)) | |
107e4716 | 314 | static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
315 | PyObject * _resultobj; |
316 | wxString * _result; | |
317 | wxStatusBar * _arg0; | |
2d091820 RD |
318 | int _arg1 = (int ) 0; |
319 | PyObject * _argo0 = 0; | |
107e4716 | 320 | char *_kwnames[] = { "self","ir", NULL }; |
b26e2dc4 RD |
321 | |
322 | self = self; | |
107e4716 | 323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_GetStatusText",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 324 | return NULL; |
2d091820 RD |
325 | if (_argo0) { |
326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p."); |
329 | return NULL; | |
330 | } | |
331 | } | |
b26e2dc4 | 332 | { |
ab9bc19b RD |
333 | wxPy_BEGIN_ALLOW_THREADS; |
334 | _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1)); | |
335 | ||
336 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 337 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 338 | }{ |
e02c03a4 | 339 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b26e2dc4 RD |
340 | } |
341 | { | |
342 | delete _result; | |
343 | } | |
344 | return _resultobj; | |
345 | } | |
346 | ||
2fc99549 RD |
347 | #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX()) |
348 | static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 349 | PyObject * _resultobj; |
2fc99549 | 350 | int _result; |
b26e2dc4 | 351 | wxStatusBar * _arg0; |
2d091820 | 352 | PyObject * _argo0 = 0; |
2fc99549 | 353 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
354 | |
355 | self = self; | |
2fc99549 | 356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0)) |
b26e2dc4 | 357 | return NULL; |
2d091820 RD |
358 | if (_argo0) { |
359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
2fc99549 | 361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p."); |
b26e2dc4 RD |
362 | return NULL; |
363 | } | |
364 | } | |
ab9bc19b RD |
365 | { |
366 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 367 | _result = (int )wxStatusBar_GetBorderX(_arg0); |
ab9bc19b RD |
368 | |
369 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 370 | if (PyErr_Occurred()) return NULL; |
2fc99549 | 371 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
372 | return _resultobj; |
373 | } | |
374 | ||
2fc99549 RD |
375 | #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY()) |
376 | static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 377 | PyObject * _resultobj; |
2fc99549 | 378 | int _result; |
b26e2dc4 | 379 | wxStatusBar * _arg0; |
2d091820 | 380 | PyObject * _argo0 = 0; |
107e4716 | 381 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
382 | |
383 | self = self; | |
2fc99549 | 384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0)) |
b26e2dc4 | 385 | return NULL; |
2d091820 RD |
386 | if (_argo0) { |
387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
2fc99549 | 389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p."); |
b26e2dc4 RD |
390 | return NULL; |
391 | } | |
392 | } | |
ab9bc19b RD |
393 | { |
394 | wxPy_BEGIN_ALLOW_THREADS; | |
2fc99549 | 395 | _result = (int )wxStatusBar_GetBorderY(_arg0); |
ab9bc19b RD |
396 | |
397 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 398 | if (PyErr_Occurred()) return NULL; |
2fc99549 | 399 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
400 | return _resultobj; |
401 | } | |
402 | ||
403 | #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0)) | |
107e4716 | 404 | static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
405 | PyObject * _resultobj; |
406 | wxStatusBar * _arg0; | |
2d091820 RD |
407 | int _arg1 = (int ) 1; |
408 | PyObject * _argo0 = 0; | |
107e4716 | 409 | char *_kwnames[] = { "self","number", NULL }; |
b26e2dc4 RD |
410 | |
411 | self = self; | |
107e4716 | 412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_SetFieldsCount",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 413 | return NULL; |
2d091820 RD |
414 | if (_argo0) { |
415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p."); |
418 | return NULL; | |
419 | } | |
420 | } | |
ab9bc19b RD |
421 | { |
422 | wxPy_BEGIN_ALLOW_THREADS; | |
423 | wxStatusBar_SetFieldsCount(_arg0,_arg1); | |
424 | ||
425 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 426 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 427 | } Py_INCREF(Py_None); |
b26e2dc4 RD |
428 | _resultobj = Py_None; |
429 | return _resultobj; | |
430 | } | |
431 | ||
432 | #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
107e4716 | 433 | static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
434 | PyObject * _resultobj; |
435 | wxStatusBar * _arg0; | |
436 | wxString * _arg1; | |
2d091820 RD |
437 | int _arg2 = (int ) 0; |
438 | PyObject * _argo0 = 0; | |
b26e2dc4 | 439 | PyObject * _obj1 = 0; |
107e4716 | 440 | char *_kwnames[] = { "self","text","i", NULL }; |
b26e2dc4 RD |
441 | |
442 | self = self; | |
107e4716 | 443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxStatusBar_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2)) |
b26e2dc4 | 444 | return NULL; |
2d091820 RD |
445 | if (_argo0) { |
446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p."); |
449 | return NULL; | |
450 | } | |
451 | } | |
452 | { | |
2cd2fac8 RD |
453 | #if PYTHON_API_VERSION >= 1009 |
454 | char* tmpPtr; int tmpSize; | |
455 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
457 | return NULL; |
458 | } | |
459 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
460 | return NULL; | |
461 | _arg1 = new wxString(tmpPtr, tmpSize); | |
462 | #else | |
b26e2dc4 RD |
463 | if (!PyString_Check(_obj1)) { |
464 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
465 | return NULL; | |
466 | } | |
2cd2fac8 RD |
467 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
468 | #endif | |
b26e2dc4 | 469 | } |
ab9bc19b RD |
470 | { |
471 | wxPy_BEGIN_ALLOW_THREADS; | |
472 | wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2); | |
473 | ||
474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 475 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 476 | } Py_INCREF(Py_None); |
b26e2dc4 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)) | |
107e4716 | 486 | static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { |
b26e2dc4 RD |
487 | PyObject * _resultobj; |
488 | wxStatusBar * _arg0; | |
489 | int _arg1; | |
490 | int * _arg2; | |
2d091820 | 491 | PyObject * _argo0 = 0; |
b26e2dc4 | 492 | PyObject * _obj2 = 0; |
e02c03a4 | 493 | char *_kwnames[] = { "self","choices", NULL }; |
b26e2dc4 RD |
494 | |
495 | self = self; | |
107e4716 | 496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStatusBar_SetStatusWidths",_kwnames,&_argo0,&_obj2)) |
b26e2dc4 | 497 | return NULL; |
2d091820 RD |
498 | if (_argo0) { |
499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
b26e2dc4 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 | { | |
ab9bc19b RD |
513 | if (_obj2) { |
514 | _arg1 = PyList_Size(_obj2); | |
515 | } | |
516 | else { | |
517 | _arg1 = 0; | |
518 | } | |
b26e2dc4 | 519 | } |
ab9bc19b RD |
520 | { |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 525 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 526 | } Py_INCREF(Py_None); |
b26e2dc4 RD |
527 | _resultobj = Py_None; |
528 | { | |
529 | delete [] _arg2; | |
530 | } | |
531 | return _resultobj; | |
532 | } | |
533 | ||
2fc99549 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; | |
4dfaa61e | 557 | if (PyErr_Occurred()) return NULL; |
2fc99549 RD |
558 | } Py_INCREF(Py_None); |
559 | _resultobj = Py_None; | |
560 | return _resultobj; | |
561 | } | |
562 | ||
9df61a29 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 | ||
ab2208b5 RD |
571 | static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; } |
572 | static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 573 | PyObject * _resultobj; |
ab2208b5 | 574 | wxToolBarToolBase * _arg0; |
2d091820 | 575 | PyObject * _argo0 = 0; |
107e4716 | 576 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
577 | |
578 | self = self; | |
ab2208b5 | 579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Destroy",_kwnames,&_argo0)) |
56f5d962 RD |
580 | return NULL; |
581 | if (_argo0) { | |
582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
585 | return NULL; |
586 | } | |
587 | } | |
588 | { | |
589 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 590 | wxToolBarToolBase_Destroy(_arg0); |
56f5d962 RD |
591 | |
592 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 593 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
594 | } Py_INCREF(Py_None); |
595 | _resultobj = Py_None; | |
596 | return _resultobj; | |
597 | } | |
598 | ||
ab2208b5 RD |
599 | #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId()) |
600 | static PyObject *_wrap_wxToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 601 | PyObject * _resultobj; |
ab2208b5 RD |
602 | int _result; |
603 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
604 | PyObject * _argo0 = 0; |
605 | char *_kwnames[] = { "self", NULL }; | |
606 | ||
607 | self = self; | |
ab2208b5 | 608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetId",_kwnames,&_argo0)) |
56f5d962 RD |
609 | return NULL; |
610 | if (_argo0) { | |
611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
614 | return NULL; |
615 | } | |
616 | } | |
617 | { | |
618 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 619 | _result = (int )wxToolBarToolBase_GetId(_arg0); |
56f5d962 RD |
620 | |
621 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 622 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 623 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
624 | return _resultobj; |
625 | } | |
626 | ||
ab2208b5 RD |
627 | #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl()) |
628 | static PyObject *_wrap_wxToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 629 | PyObject * _resultobj; |
ab2208b5 RD |
630 | wxControl * _result; |
631 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
632 | PyObject * _argo0 = 0; |
633 | char *_kwnames[] = { "self", NULL }; | |
634 | ||
635 | self = self; | |
ab2208b5 | 636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetControl",_kwnames,&_argo0)) |
56f5d962 RD |
637 | return NULL; |
638 | if (_argo0) { | |
639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
642 | return NULL; |
643 | } | |
644 | } | |
645 | { | |
646 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 647 | _result = (wxControl *)wxToolBarToolBase_GetControl(_arg0); |
56f5d962 RD |
648 | |
649 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 650 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 651 | }{ _resultobj = wxPyMake_wxObject(_result); } |
56f5d962 RD |
652 | return _resultobj; |
653 | } | |
654 | ||
ab2208b5 RD |
655 | #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar()) |
656 | static PyObject *_wrap_wxToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 657 | PyObject * _resultobj; |
ab2208b5 RD |
658 | wxToolBarBase * _result; |
659 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
660 | PyObject * _argo0 = 0; |
661 | char *_kwnames[] = { "self", NULL }; | |
56f5d962 RD |
662 | |
663 | self = self; | |
ab2208b5 | 664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetToolBar",_kwnames,&_argo0)) |
56f5d962 RD |
665 | return NULL; |
666 | if (_argo0) { | |
667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
670 | return NULL; |
671 | } | |
672 | } | |
673 | { | |
674 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 675 | _result = (wxToolBarBase *)wxToolBarToolBase_GetToolBar(_arg0); |
56f5d962 RD |
676 | |
677 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 678 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 679 | }{ _resultobj = wxPyMake_wxObject(_result); } |
56f5d962 RD |
680 | return _resultobj; |
681 | } | |
682 | ||
ab2208b5 RD |
683 | #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton()) |
684 | static PyObject *_wrap_wxToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea RD |
685 | PyObject * _resultobj; |
686 | int _result; | |
ab2208b5 | 687 | wxToolBarToolBase * _arg0; |
2d091820 | 688 | PyObject * _argo0 = 0; |
ab2208b5 | 689 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
690 | |
691 | self = self; | |
ab2208b5 | 692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsButton",_kwnames,&_argo0)) |
21f8d7ea | 693 | return NULL; |
2d091820 RD |
694 | if (_argo0) { |
695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
698 | return NULL; |
699 | } | |
700 | } | |
ab9bc19b RD |
701 | { |
702 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 703 | _result = (int )wxToolBarToolBase_IsButton(_arg0); |
ab9bc19b RD |
704 | |
705 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 706 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 707 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
708 | return _resultobj; |
709 | } | |
710 | ||
ab2208b5 RD |
711 | #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl()) |
712 | static PyObject *_wrap_wxToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 RD |
713 | PyObject * _resultobj; |
714 | int _result; | |
ab2208b5 | 715 | wxToolBarToolBase * _arg0; |
2d091820 | 716 | PyObject * _argo0 = 0; |
107e4716 | 717 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
718 | |
719 | self = self; | |
ab2208b5 | 720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsControl",_kwnames,&_argo0)) |
b26e2dc4 | 721 | return NULL; |
2d091820 RD |
722 | if (_argo0) { |
723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
726 | return NULL; |
727 | } | |
728 | } | |
ab9bc19b RD |
729 | { |
730 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 731 | _result = (int )wxToolBarToolBase_IsControl(_arg0); |
ab9bc19b RD |
732 | |
733 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 734 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 735 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
736 | return _resultobj; |
737 | } | |
738 | ||
ab2208b5 RD |
739 | #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
740 | static PyObject *_wrap_wxToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 741 | PyObject * _resultobj; |
ab2208b5 RD |
742 | int _result; |
743 | wxToolBarToolBase * _arg0; | |
2d091820 | 744 | PyObject * _argo0 = 0; |
107e4716 | 745 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
746 | |
747 | self = self; | |
ab2208b5 | 748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsSeparator",_kwnames,&_argo0)) |
b26e2dc4 | 749 | return NULL; |
2d091820 RD |
750 | if (_argo0) { |
751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
754 | return NULL; |
755 | } | |
756 | } | |
ab9bc19b RD |
757 | { |
758 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 759 | _result = (int )wxToolBarToolBase_IsSeparator(_arg0); |
ab9bc19b RD |
760 | |
761 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 762 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 763 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
764 | return _resultobj; |
765 | } | |
766 | ||
ab2208b5 RD |
767 | #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle()) |
768 | static PyObject *_wrap_wxToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea RD |
769 | PyObject * _resultobj; |
770 | int _result; | |
ab2208b5 | 771 | wxToolBarToolBase * _arg0; |
2d091820 | 772 | PyObject * _argo0 = 0; |
ab2208b5 | 773 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
774 | |
775 | self = self; | |
ab2208b5 | 776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetStyle",_kwnames,&_argo0)) |
21f8d7ea | 777 | return NULL; |
2d091820 RD |
778 | if (_argo0) { |
779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
782 | return NULL; |
783 | } | |
784 | } | |
ab9bc19b RD |
785 | { |
786 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 787 | _result = (int )wxToolBarToolBase_GetStyle(_arg0); |
ab9bc19b RD |
788 | |
789 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 790 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 791 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
792 | return _resultobj; |
793 | } | |
794 | ||
ab2208b5 RD |
795 | #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
796 | static PyObject *_wrap_wxToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 797 | PyObject * _resultobj; |
ab2208b5 RD |
798 | bool _result; |
799 | wxToolBarToolBase * _arg0; | |
2d091820 | 800 | PyObject * _argo0 = 0; |
107e4716 | 801 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
802 | |
803 | self = self; | |
ab2208b5 | 804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsEnabled",_kwnames,&_argo0)) |
b26e2dc4 | 805 | return NULL; |
2d091820 RD |
806 | if (_argo0) { |
807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
810 | return NULL; |
811 | } | |
812 | } | |
ab9bc19b RD |
813 | { |
814 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 815 | _result = (bool )wxToolBarToolBase_IsEnabled(_arg0); |
ab9bc19b RD |
816 | |
817 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 818 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 819 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
820 | return _resultobj; |
821 | } | |
822 | ||
ab2208b5 RD |
823 | #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled()) |
824 | static PyObject *_wrap_wxToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 825 | PyObject * _resultobj; |
ab2208b5 RD |
826 | bool _result; |
827 | wxToolBarToolBase * _arg0; | |
56f5d962 | 828 | PyObject * _argo0 = 0; |
ab2208b5 | 829 | char *_kwnames[] = { "self", NULL }; |
56f5d962 RD |
830 | |
831 | self = self; | |
ab2208b5 | 832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsToggled",_kwnames,&_argo0)) |
56f5d962 RD |
833 | return NULL; |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
838 | return NULL; |
839 | } | |
840 | } | |
841 | { | |
842 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 843 | _result = (bool )wxToolBarToolBase_IsToggled(_arg0); |
56f5d962 RD |
844 | |
845 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 846 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 847 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
848 | return _resultobj; |
849 | } | |
850 | ||
ab2208b5 RD |
851 | #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled()) |
852 | static PyObject *_wrap_wxToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 853 | PyObject * _resultobj; |
ab2208b5 RD |
854 | bool _result; |
855 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
856 | PyObject * _argo0 = 0; |
857 | char *_kwnames[] = { "self", NULL }; | |
858 | ||
859 | self = self; | |
ab2208b5 | 860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_CanBeToggled",_kwnames,&_argo0)) |
56f5d962 RD |
861 | return NULL; |
862 | if (_argo0) { | |
863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
866 | return NULL; |
867 | } | |
868 | } | |
869 | { | |
870 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 871 | _result = (bool )wxToolBarToolBase_CanBeToggled(_arg0); |
56f5d962 RD |
872 | |
873 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 874 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 875 | } _resultobj = Py_BuildValue("i",_result); |
56f5d962 RD |
876 | return _resultobj; |
877 | } | |
878 | ||
ab2208b5 RD |
879 | #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1()) |
880 | static PyObject *_wrap_wxToolBarToolBase_GetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 881 | PyObject * _resultobj; |
ab2208b5 RD |
882 | wxBitmap * _result; |
883 | wxToolBarToolBase * _arg0; | |
56f5d962 | 884 | PyObject * _argo0 = 0; |
ab2208b5 RD |
885 | char *_kwnames[] = { "self", NULL }; |
886 | char _ptemp[128]; | |
56f5d962 RD |
887 | |
888 | self = self; | |
ab2208b5 | 889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap1",_kwnames,&_argo0)) |
56f5d962 RD |
890 | return NULL; |
891 | if (_argo0) { | |
892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
895 | return NULL; |
896 | } | |
897 | } | |
898 | { | |
899 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 RD |
900 | const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap1(_arg0); |
901 | _result = (wxBitmap *) &_result_ref; | |
56f5d962 RD |
902 | |
903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 904 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
56f5d962 RD |
912 | return _resultobj; |
913 | } | |
914 | ||
ab2208b5 RD |
915 | #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2()) |
916 | static PyObject *_wrap_wxToolBarToolBase_GetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 917 | PyObject * _resultobj; |
ab2208b5 RD |
918 | wxBitmap * _result; |
919 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
920 | PyObject * _argo0 = 0; |
921 | char *_kwnames[] = { "self", NULL }; | |
ab2208b5 | 922 | char _ptemp[128]; |
56f5d962 RD |
923 | |
924 | self = self; | |
ab2208b5 | 925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap2",_kwnames,&_argo0)) |
56f5d962 RD |
926 | return NULL; |
927 | if (_argo0) { | |
928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
931 | return NULL; |
932 | } | |
933 | } | |
934 | { | |
935 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 RD |
936 | const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap2(_arg0); |
937 | _result = (wxBitmap *) &_result_ref; | |
56f5d962 RD |
938 | |
939 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 940 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
56f5d962 RD |
948 | return _resultobj; |
949 | } | |
950 | ||
ab2208b5 RD |
951 | #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap()) |
952 | static PyObject *_wrap_wxToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 953 | PyObject * _resultobj; |
ab2208b5 RD |
954 | wxBitmap * _result; |
955 | wxToolBarToolBase * _arg0; | |
56f5d962 | 956 | PyObject * _argo0 = 0; |
ab2208b5 RD |
957 | char *_kwnames[] = { "self", NULL }; |
958 | char _ptemp[128]; | |
56f5d962 RD |
959 | |
960 | self = self; | |
ab2208b5 | 961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap",_kwnames,&_argo0)) |
56f5d962 RD |
962 | return NULL; |
963 | if (_argo0) { | |
964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
967 | return NULL; |
968 | } | |
969 | } | |
970 | { | |
971 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 RD |
972 | const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap(_arg0); |
973 | _result = (wxBitmap *) &_result_ref; | |
56f5d962 RD |
974 | |
975 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 976 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
56f5d962 RD |
984 | return _resultobj; |
985 | } | |
986 | ||
ab2208b5 RD |
987 | #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp()) |
988 | static PyObject *_wrap_wxToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 989 | PyObject * _resultobj; |
ab2208b5 RD |
990 | wxString * _result; |
991 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
992 | PyObject * _argo0 = 0; |
993 | char *_kwnames[] = { "self", NULL }; | |
994 | ||
995 | self = self; | |
ab2208b5 | 996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetShortHelp",_kwnames,&_argo0)) |
56f5d962 RD |
997 | return NULL; |
998 | if (_argo0) { | |
999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
1002 | return NULL; |
1003 | } | |
1004 | } | |
1005 | { | |
1006 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1007 | _result = new wxString (wxToolBarToolBase_GetShortHelp(_arg0)); |
56f5d962 RD |
1008 | |
1009 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1010 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 1011 | }{ |
e02c03a4 | 1012 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
56f5d962 | 1013 | } |
56f5d962 | 1014 | { |
ab2208b5 RD |
1015 | delete _result; |
1016 | } | |
56f5d962 RD |
1017 | return _resultobj; |
1018 | } | |
1019 | ||
ab2208b5 RD |
1020 | #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp()) |
1021 | static PyObject *_wrap_wxToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 1022 | PyObject * _resultobj; |
ab2208b5 RD |
1023 | wxString * _result; |
1024 | wxToolBarToolBase * _arg0; | |
56f5d962 RD |
1025 | PyObject * _argo0 = 0; |
1026 | char *_kwnames[] = { "self", NULL }; | |
1027 | ||
1028 | self = self; | |
ab2208b5 | 1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLongHelp",_kwnames,&_argo0)) |
56f5d962 RD |
1030 | return NULL; |
1031 | if (_argo0) { | |
1032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
1035 | return NULL; |
1036 | } | |
1037 | } | |
1038 | { | |
1039 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1040 | _result = new wxString (wxToolBarToolBase_GetLongHelp(_arg0)); |
56f5d962 RD |
1041 | |
1042 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1043 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 1044 | }{ |
e02c03a4 | 1045 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
ab2208b5 RD |
1046 | } |
1047 | { | |
1048 | delete _result; | |
1049 | } | |
56f5d962 RD |
1050 | return _resultobj; |
1051 | } | |
1052 | ||
ab2208b5 RD |
1053 | #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
1054 | static PyObject *_wrap_wxToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea RD |
1055 | PyObject * _resultobj; |
1056 | bool _result; | |
ab2208b5 | 1057 | wxToolBarToolBase * _arg0; |
21f8d7ea | 1058 | bool _arg1; |
2d091820 | 1059 | PyObject * _argo0 = 0; |
21f8d7ea | 1060 | int tempbool1; |
ab2208b5 | 1061 | char *_kwnames[] = { "self","enable", NULL }; |
21f8d7ea RD |
1062 | |
1063 | self = self; | |
ab2208b5 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Enable",_kwnames,&_argo0,&tempbool1)) |
21f8d7ea | 1065 | return NULL; |
2d091820 RD |
1066 | if (_argo0) { |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1070 | return NULL; |
1071 | } | |
1072 | } | |
1073 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
1074 | { |
1075 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1076 | _result = (bool )wxToolBarToolBase_Enable(_arg0,_arg1); |
ab9bc19b RD |
1077 | |
1078 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1079 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1080 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
1081 | return _resultobj; |
1082 | } | |
1083 | ||
ab2208b5 RD |
1084 | #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) |
1085 | static PyObject *_wrap_wxToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 RD |
1086 | PyObject * _resultobj; |
1087 | bool _result; | |
ab2208b5 RD |
1088 | wxToolBarToolBase * _arg0; |
1089 | bool _arg1; | |
2d091820 | 1090 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1091 | int tempbool1; |
1092 | char *_kwnames[] = { "self","toggle", NULL }; | |
b26e2dc4 RD |
1093 | |
1094 | self = self; | |
ab2208b5 | 1095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Toggle",_kwnames,&_argo0,&tempbool1)) |
b26e2dc4 | 1096 | return NULL; |
2d091820 RD |
1097 | if (_argo0) { |
1098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1101 | return NULL; |
1102 | } | |
1103 | } | |
ab2208b5 | 1104 | _arg1 = (bool ) tempbool1; |
ab9bc19b RD |
1105 | { |
1106 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1107 | _result = (bool )wxToolBarToolBase_Toggle(_arg0,_arg1); |
ab9bc19b RD |
1108 | |
1109 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1110 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1111 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
1112 | return _resultobj; |
1113 | } | |
1114 | ||
ab2208b5 RD |
1115 | #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0)) |
1116 | static PyObject *_wrap_wxToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea RD |
1117 | PyObject * _resultobj; |
1118 | bool _result; | |
ab2208b5 | 1119 | wxToolBarToolBase * _arg0; |
21f8d7ea | 1120 | bool _arg1; |
2d091820 | 1121 | PyObject * _argo0 = 0; |
21f8d7ea | 1122 | int tempbool1; |
ab2208b5 | 1123 | char *_kwnames[] = { "self","toggle", NULL }; |
21f8d7ea RD |
1124 | |
1125 | self = self; | |
ab2208b5 | 1126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_SetToggle",_kwnames,&_argo0,&tempbool1)) |
21f8d7ea | 1127 | return NULL; |
2d091820 RD |
1128 | if (_argo0) { |
1129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1132 | return NULL; |
1133 | } | |
1134 | } | |
1135 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
1136 | { |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1138 | _result = (bool )wxToolBarToolBase_SetToggle(_arg0,_arg1); |
ab9bc19b RD |
1139 | |
1140 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1141 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1142 | } _resultobj = Py_BuildValue("i",_result); |
21f8d7ea RD |
1143 | return _resultobj; |
1144 | } | |
1145 | ||
ab2208b5 RD |
1146 | #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0)) |
1147 | static PyObject *_wrap_wxToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 RD |
1148 | PyObject * _resultobj; |
1149 | bool _result; | |
ab2208b5 RD |
1150 | wxToolBarToolBase * _arg0; |
1151 | wxString * _arg1; | |
2d091820 | 1152 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1153 | PyObject * _obj1 = 0; |
1154 | char *_kwnames[] = { "self","help", NULL }; | |
b26e2dc4 RD |
1155 | |
1156 | self = self; | |
ab2208b5 | 1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetShortHelp",_kwnames,&_argo0,&_obj1)) |
b26e2dc4 | 1158 | return NULL; |
2d091820 RD |
1159 | if (_argo0) { |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1163 | return NULL; |
1164 | } | |
1165 | } | |
ab2208b5 | 1166 | { |
2cd2fac8 RD |
1167 | #if PYTHON_API_VERSION >= 1009 |
1168 | char* tmpPtr; int tmpSize; | |
1169 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1170 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1171 | return NULL; |
1172 | } | |
1173 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1174 | return NULL; | |
1175 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1176 | #else | |
ab2208b5 RD |
1177 | if (!PyString_Check(_obj1)) { |
1178 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1179 | return NULL; | |
1180 | } | |
2cd2fac8 RD |
1181 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1182 | #endif | |
ab2208b5 | 1183 | } |
ab9bc19b RD |
1184 | { |
1185 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1186 | _result = (bool )wxToolBarToolBase_SetShortHelp(_arg0,*_arg1); |
ab9bc19b RD |
1187 | |
1188 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1189 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1190 | } _resultobj = Py_BuildValue("i",_result); |
ab2208b5 RD |
1191 | { |
1192 | if (_obj1) | |
1193 | delete _arg1; | |
1194 | } | |
b26e2dc4 RD |
1195 | return _resultobj; |
1196 | } | |
1197 | ||
ab2208b5 RD |
1198 | #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0)) |
1199 | static PyObject *_wrap_wxToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea RD |
1200 | PyObject * _resultobj; |
1201 | bool _result; | |
ab2208b5 RD |
1202 | wxToolBarToolBase * _arg0; |
1203 | wxString * _arg1; | |
2d091820 | 1204 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1205 | PyObject * _obj1 = 0; |
1206 | char *_kwnames[] = { "self","help", NULL }; | |
21f8d7ea RD |
1207 | |
1208 | self = self; | |
ab2208b5 | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLongHelp",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 1210 | return NULL; |
2d091820 RD |
1211 | if (_argo0) { |
1212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1215 | return NULL; |
1216 | } | |
1217 | } | |
ab2208b5 | 1218 | { |
2cd2fac8 RD |
1219 | #if PYTHON_API_VERSION >= 1009 |
1220 | char* tmpPtr; int tmpSize; | |
1221 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1222 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1223 | return NULL; |
1224 | } | |
1225 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1226 | return NULL; | |
1227 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1228 | #else | |
ab2208b5 RD |
1229 | if (!PyString_Check(_obj1)) { |
1230 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1231 | return NULL; | |
1232 | } | |
2cd2fac8 RD |
1233 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1234 | #endif | |
ab2208b5 | 1235 | } |
ab9bc19b RD |
1236 | { |
1237 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1238 | _result = (bool )wxToolBarToolBase_SetLongHelp(_arg0,*_arg1); |
ab9bc19b RD |
1239 | |
1240 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1241 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1242 | } _resultobj = Py_BuildValue("i",_result); |
ab2208b5 RD |
1243 | { |
1244 | if (_obj1) | |
1245 | delete _arg1; | |
1246 | } | |
21f8d7ea RD |
1247 | return _resultobj; |
1248 | } | |
1249 | ||
ab2208b5 RD |
1250 | #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0)) |
1251 | static PyObject *_wrap_wxToolBarToolBase_SetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 1252 | PyObject * _resultobj; |
ab2208b5 RD |
1253 | wxToolBarToolBase * _arg0; |
1254 | wxBitmap * _arg1; | |
2d091820 | 1255 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1256 | PyObject * _argo1 = 0; |
1257 | char *_kwnames[] = { "self","bmp", NULL }; | |
b26e2dc4 RD |
1258 | |
1259 | self = self; | |
ab2208b5 | 1260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap1",_kwnames,&_argo0,&_argo1)) |
b26e2dc4 | 1261 | return NULL; |
2d091820 RD |
1262 | if (_argo0) { |
1263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1273 | return NULL; |
1274 | } | |
1275 | } | |
ab9bc19b RD |
1276 | { |
1277 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1278 | wxToolBarToolBase_SetBitmap1(_arg0,*_arg1); |
ab9bc19b RD |
1279 | |
1280 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1281 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1282 | } Py_INCREF(Py_None); |
1283 | _resultobj = Py_None; | |
b26e2dc4 RD |
1284 | return _resultobj; |
1285 | } | |
1286 | ||
ab2208b5 RD |
1287 | #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0)) |
1288 | static PyObject *_wrap_wxToolBarToolBase_SetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea | 1289 | PyObject * _resultobj; |
ab2208b5 RD |
1290 | wxToolBarToolBase * _arg0; |
1291 | wxBitmap * _arg1; | |
2d091820 | 1292 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1293 | PyObject * _argo1 = 0; |
1294 | char *_kwnames[] = { "self","bmp", NULL }; | |
21f8d7ea RD |
1295 | |
1296 | self = self; | |
ab2208b5 | 1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap2",_kwnames,&_argo0,&_argo1)) |
21f8d7ea | 1298 | return NULL; |
2d091820 RD |
1299 | if (_argo0) { |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1310 | return NULL; |
1311 | } | |
1312 | } | |
ab9bc19b RD |
1313 | { |
1314 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1315 | wxToolBarToolBase_SetBitmap2(_arg0,*_arg1); |
ab9bc19b RD |
1316 | |
1317 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1318 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1319 | } Py_INCREF(Py_None); |
1320 | _resultobj = Py_None; | |
21f8d7ea RD |
1321 | return _resultobj; |
1322 | } | |
1323 | ||
ab2208b5 RD |
1324 | #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach()) |
1325 | static PyObject *_wrap_wxToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 1326 | PyObject * _resultobj; |
ab2208b5 | 1327 | wxToolBarToolBase * _arg0; |
2d091820 | 1328 | PyObject * _argo0 = 0; |
107e4716 | 1329 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
1330 | |
1331 | self = self; | |
ab2208b5 | 1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Detach",_kwnames,&_argo0)) |
b26e2dc4 | 1333 | return NULL; |
2d091820 RD |
1334 | if (_argo0) { |
1335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1338 | return NULL; |
1339 | } | |
1340 | } | |
ab9bc19b RD |
1341 | { |
1342 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1343 | wxToolBarToolBase_Detach(_arg0); |
ab9bc19b RD |
1344 | |
1345 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1346 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1347 | } Py_INCREF(Py_None); |
1348 | _resultobj = Py_None; | |
b26e2dc4 RD |
1349 | return _resultobj; |
1350 | } | |
1351 | ||
ab2208b5 RD |
1352 | #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0)) |
1353 | static PyObject *_wrap_wxToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea | 1354 | PyObject * _resultobj; |
ab2208b5 RD |
1355 | wxToolBarToolBase * _arg0; |
1356 | wxToolBarBase * _arg1; | |
2d091820 RD |
1357 | PyObject * _argo0 = 0; |
1358 | PyObject * _argo1 = 0; | |
ab2208b5 | 1359 | char *_kwnames[] = { "self","tbar", NULL }; |
21f8d7ea RD |
1360 | |
1361 | self = self; | |
ab2208b5 | 1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_Attach",_kwnames,&_argo0,&_argo1)) |
21f8d7ea | 1363 | return NULL; |
2d091820 RD |
1364 | if (_argo0) { |
1365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1368 | return NULL; |
1369 | } | |
1370 | } | |
2d091820 RD |
1371 | if (_argo1) { |
1372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1375 | return NULL; |
1376 | } | |
1377 | } | |
ab9bc19b RD |
1378 | { |
1379 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1380 | wxToolBarToolBase_Attach(_arg0,_arg1); |
ab9bc19b RD |
1381 | |
1382 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1383 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1384 | } Py_INCREF(Py_None); |
1385 | _resultobj = Py_None; | |
21f8d7ea RD |
1386 | return _resultobj; |
1387 | } | |
1388 | ||
ab2208b5 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) { | |
b26e2dc4 | 1400 | PyObject * _resultobj; |
ab2208b5 RD |
1401 | PyObject * _result; |
1402 | wxToolBarToolBase * _arg0; | |
2d091820 | 1403 | PyObject * _argo0 = 0; |
107e4716 | 1404 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
1405 | |
1406 | self = self; | |
ab2208b5 | 1407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetClientData",_kwnames,&_argo0)) |
b26e2dc4 | 1408 | return NULL; |
2d091820 RD |
1409 | if (_argo0) { |
1410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1413 | return NULL; |
1414 | } | |
1415 | } | |
ab9bc19b RD |
1416 | { |
1417 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1418 | _result = (PyObject *)wxToolBarToolBase_GetClientData(_arg0); |
ab9bc19b RD |
1419 | |
1420 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1421 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1422 | }{ |
1423 | _resultobj = _result; | |
1424 | } | |
b26e2dc4 RD |
1425 | return _resultobj; |
1426 | } | |
1427 | ||
ab2208b5 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) { | |
21f8d7ea | 1432 | PyObject * _resultobj; |
ab2208b5 RD |
1433 | wxToolBarToolBase * _arg0; |
1434 | PyObject * _arg1; | |
2d091820 | 1435 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1436 | PyObject * _obj1 = 0; |
1437 | char *_kwnames[] = { "self","clientData", NULL }; | |
1438 | ||
1439 | self = self; | |
1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetClientData",_kwnames,&_argo0,&_obj1)) | |
1441 | return NULL; | |
1442 | if (_argo0) { | |
1443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
1446 | return NULL; | |
1447 | } | |
1448 | } | |
1449 | { | |
1450 | _arg1 = _obj1; | |
1451 | } | |
1452 | { | |
1453 | wxPy_BEGIN_ALLOW_THREADS; | |
1454 | wxToolBarToolBase_SetClientData(_arg0,_arg1); | |
1455 | ||
1456 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1457 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
1458 | } Py_INCREF(Py_None); |
1459 | _resultobj = Py_None; | |
1460 | return _resultobj; | |
1461 | } | |
1462 | ||
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 | ||
9df61a29 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) { |
ab2208b5 RD |
1496 | wxPyUserData* udata = NULL; |
1497 | if (clientData) | |
1498 | udata = new wxPyUserData(clientData); | |
c368d904 | 1499 | return self->AddTool(id, bitmap, pushedBitmap, (bool)isToggle, |
ab2208b5 RD |
1500 | udata, shortHelpString, longHelpString); |
1501 | } | |
1502 | static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1503 | PyObject * _resultobj; | |
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; | |
1513 | PyObject * _argo0 = 0; | |
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 }; |
21f8d7ea RD |
1520 | |
1521 | self = self; | |
ab2208b5 | 1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7)) |
21f8d7ea | 1523 | return NULL; |
2d091820 RD |
1524 | if (_argo0) { |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1528 | return NULL; |
1529 | } | |
1530 | } | |
ab2208b5 RD |
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."); | |
21f8d7ea RD |
1535 | return NULL; |
1536 | } | |
1537 | } | |
ab2208b5 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 | { | |
2cd2fac8 RD |
1551 | #if PYTHON_API_VERSION >= 1009 |
1552 | char* tmpPtr; int tmpSize; | |
1553 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
7a446686 | 1554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1555 | return NULL; |
1556 | } | |
1557 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
1558 | return NULL; | |
1559 | _arg6 = new wxString(tmpPtr, tmpSize); | |
1560 | #else | |
ab2208b5 RD |
1561 | if (!PyString_Check(_obj6)) { |
1562 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1563 | return NULL; | |
1564 | } | |
2cd2fac8 RD |
1565 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); |
1566 | #endif | |
ab2208b5 RD |
1567 | } |
1568 | if (_obj7) | |
1569 | { | |
2cd2fac8 RD |
1570 | #if PYTHON_API_VERSION >= 1009 |
1571 | char* tmpPtr; int tmpSize; | |
1572 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
7a446686 | 1573 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1574 | return NULL; |
1575 | } | |
1576 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
1577 | return NULL; | |
1578 | _arg7 = new wxString(tmpPtr, tmpSize); | |
1579 | #else | |
ab2208b5 RD |
1580 | if (!PyString_Check(_obj7)) { |
1581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1582 | return NULL; | |
1583 | } | |
2cd2fac8 RD |
1584 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); |
1585 | #endif | |
ab2208b5 | 1586 | } |
ab9bc19b RD |
1587 | { |
1588 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1589 | _result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7); |
ab9bc19b RD |
1590 | |
1591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1592 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1593 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 RD |
1594 | { |
1595 | if (_obj6) | |
1596 | delete _arg6; | |
1597 | } | |
1598 | { | |
1599 | if (_obj7) | |
1600 | delete _arg7; | |
1601 | } | |
21f8d7ea 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, | |
ab2208b5 RD |
1607 | shortHelpString, longHelpString); |
1608 | } | |
1609 | static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 1610 | PyObject * _resultobj; |
ab2208b5 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; | |
2d091820 | 1618 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1619 | PyObject * _argo2 = 0; |
1620 | PyObject * _obj3 = 0; | |
1621 | PyObject * _obj4 = 0; | |
c368d904 | 1622 | char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL }; |
b26e2dc4 RD |
1623 | |
1624 | self = self; | |
ab2208b5 | 1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5)) |
b26e2dc4 | 1626 | return NULL; |
2d091820 RD |
1627 | if (_argo0) { |
1628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1631 | return NULL; |
1632 | } | |
1633 | } | |
ab2208b5 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 | { | |
2cd2fac8 RD |
1643 | #if PYTHON_API_VERSION >= 1009 |
1644 | char* tmpPtr; int tmpSize; | |
1645 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 1646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1647 | return NULL; |
1648 | } | |
1649 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
1650 | return NULL; | |
1651 | _arg3 = new wxString(tmpPtr, tmpSize); | |
1652 | #else | |
ab2208b5 RD |
1653 | if (!PyString_Check(_obj3)) { |
1654 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1655 | return NULL; | |
1656 | } | |
2cd2fac8 RD |
1657 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
1658 | #endif | |
ab2208b5 RD |
1659 | } |
1660 | if (_obj4) | |
1661 | { | |
2cd2fac8 RD |
1662 | #if PYTHON_API_VERSION >= 1009 |
1663 | char* tmpPtr; int tmpSize; | |
1664 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7a446686 | 1665 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1666 | return NULL; |
1667 | } | |
1668 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
1669 | return NULL; | |
1670 | _arg4 = new wxString(tmpPtr, tmpSize); | |
1671 | #else | |
ab2208b5 RD |
1672 | if (!PyString_Check(_obj4)) { |
1673 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1674 | return NULL; | |
1675 | } | |
2cd2fac8 RD |
1676 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
1677 | #endif | |
ab2208b5 | 1678 | } |
ab9bc19b RD |
1679 | { |
1680 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1681 | _result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5); |
ab9bc19b RD |
1682 | |
1683 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1684 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1685 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 RD |
1686 | { |
1687 | if (_obj3) | |
1688 | delete _arg3; | |
1689 | } | |
1690 | { | |
1691 | if (_obj4) | |
1692 | delete _arg4; | |
1693 | } | |
b26e2dc4 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) { |
ab2208b5 RD |
1698 | wxPyUserData* udata = NULL; |
1699 | if (clientData) | |
1700 | udata = new wxPyUserData(clientData); | |
c368d904 | 1701 | return self->InsertTool(pos, id, bitmap, pushedBitmap, (bool)isToggle, |
ab2208b5 RD |
1702 | udata, shortHelpString, longHelpString); |
1703 | } | |
1704 | static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea | 1705 | PyObject * _resultobj; |
ab2208b5 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; | |
2d091820 | 1716 | PyObject * _argo0 = 0; |
ab2208b5 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 }; |
21f8d7ea RD |
1723 | |
1724 | self = self; | |
ab2208b5 | 1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8)) |
21f8d7ea | 1726 | return NULL; |
2d091820 RD |
1727 | if (_argo0) { |
1728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1731 | return NULL; |
1732 | } | |
1733 | } | |
ab2208b5 RD |
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."); | |
1745 | return NULL; | |
1746 | } | |
1747 | } | |
1748 | if (_obj6) | |
1749 | { | |
1750 | _arg6 = _obj6; | |
1751 | } | |
1752 | if (_obj7) | |
1753 | { | |
2cd2fac8 RD |
1754 | #if PYTHON_API_VERSION >= 1009 |
1755 | char* tmpPtr; int tmpSize; | |
1756 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
7a446686 | 1757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1758 | return NULL; |
1759 | } | |
1760 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
1761 | return NULL; | |
1762 | _arg7 = new wxString(tmpPtr, tmpSize); | |
1763 | #else | |
ab2208b5 RD |
1764 | if (!PyString_Check(_obj7)) { |
1765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1766 | return NULL; | |
1767 | } | |
2cd2fac8 RD |
1768 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); |
1769 | #endif | |
ab2208b5 RD |
1770 | } |
1771 | if (_obj8) | |
1772 | { | |
2cd2fac8 RD |
1773 | #if PYTHON_API_VERSION >= 1009 |
1774 | char* tmpPtr; int tmpSize; | |
1775 | if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) { | |
7a446686 | 1776 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1777 | return NULL; |
1778 | } | |
1779 | if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1) | |
1780 | return NULL; | |
1781 | _arg8 = new wxString(tmpPtr, tmpSize); | |
1782 | #else | |
ab2208b5 RD |
1783 | if (!PyString_Check(_obj8)) { |
1784 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1785 | return NULL; | |
1786 | } | |
2cd2fac8 RD |
1787 | _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8)); |
1788 | #endif | |
ab2208b5 | 1789 | } |
ab9bc19b RD |
1790 | { |
1791 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1792 | _result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8); |
ab9bc19b RD |
1793 | |
1794 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1795 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1796 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 RD |
1797 | { |
1798 | if (_obj7) | |
1799 | delete _arg7; | |
1800 | } | |
1801 | { | |
1802 | if (_obj8) | |
1803 | delete _arg8; | |
1804 | } | |
21f8d7ea 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, | |
ab2208b5 RD |
1810 | shortHelpString, longHelpString); |
1811 | } | |
1812 | static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 1813 | PyObject * _resultobj; |
ab2208b5 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; | |
2d091820 | 1822 | PyObject * _argo0 = 0; |
ab2208b5 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 }; |
b26e2dc4 RD |
1827 | |
1828 | self = self; | |
ab2208b5 | 1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6)) |
b26e2dc4 | 1830 | return NULL; |
2d091820 RD |
1831 | if (_argo0) { |
1832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1835 | return NULL; |
1836 | } | |
1837 | } | |
ab2208b5 RD |
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."); | |
1842 | return NULL; | |
1843 | } | |
1844 | } | |
1845 | if (_obj4) | |
1846 | { | |
2cd2fac8 RD |
1847 | #if PYTHON_API_VERSION >= 1009 |
1848 | char* tmpPtr; int tmpSize; | |
1849 | if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) { | |
7a446686 | 1850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1851 | return NULL; |
1852 | } | |
1853 | if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1) | |
1854 | return NULL; | |
1855 | _arg4 = new wxString(tmpPtr, tmpSize); | |
1856 | #else | |
ab2208b5 RD |
1857 | if (!PyString_Check(_obj4)) { |
1858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1859 | return NULL; | |
1860 | } | |
2cd2fac8 RD |
1861 | _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4)); |
1862 | #endif | |
ab2208b5 RD |
1863 | } |
1864 | if (_obj5) | |
1865 | { | |
2cd2fac8 RD |
1866 | #if PYTHON_API_VERSION >= 1009 |
1867 | char* tmpPtr; int tmpSize; | |
1868 | if (!PyString_Check(_obj5) && !PyUnicode_Check(_obj5)) { | |
7a446686 | 1869 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1870 | return NULL; |
1871 | } | |
1872 | if (PyString_AsStringAndSize(_obj5, &tmpPtr, &tmpSize) == -1) | |
1873 | return NULL; | |
1874 | _arg5 = new wxString(tmpPtr, tmpSize); | |
1875 | #else | |
ab2208b5 RD |
1876 | if (!PyString_Check(_obj5)) { |
1877 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1878 | return NULL; | |
1879 | } | |
2cd2fac8 RD |
1880 | _arg5 = new wxString(PyString_AS_STRING(_obj5), PyString_GET_SIZE(_obj5)); |
1881 | #endif | |
ab2208b5 | 1882 | } |
ab9bc19b RD |
1883 | { |
1884 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 1885 | _result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6); |
ab9bc19b RD |
1886 | |
1887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1888 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1889 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 RD |
1890 | { |
1891 | if (_obj4) | |
1892 | delete _arg4; | |
1893 | } | |
1894 | { | |
1895 | if (_obj5) | |
1896 | delete _arg5; | |
1897 | } | |
b26e2dc4 RD |
1898 | return _resultobj; |
1899 | } | |
1900 | ||
ab2208b5 RD |
1901 | #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0)) |
1902 | static PyObject *_wrap_wxToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea | 1903 | PyObject * _resultobj; |
ab2208b5 RD |
1904 | wxToolBarToolBase * _result; |
1905 | wxToolBarBase * _arg0; | |
1906 | wxControl * _arg1; | |
2d091820 | 1907 | PyObject * _argo0 = 0; |
ab2208b5 RD |
1908 | PyObject * _argo1 = 0; |
1909 | char *_kwnames[] = { "self","control", NULL }; | |
21f8d7ea RD |
1910 | |
1911 | self = self; | |
ab2208b5 | 1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1)) |
21f8d7ea | 1913 | return NULL; |
2d091820 RD |
1914 | if (_argo0) { |
1915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
21f8d7ea RD |
1918 | return NULL; |
1919 | } | |
1920 | } | |
ab2208b5 RD |
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."); | |
21f8d7ea | 1925 | return NULL; |
ab2208b5 | 1926 | } |
21f8d7ea | 1927 | } |
21f8d7ea | 1928 | { |
ab9bc19b | 1929 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 1930 | _result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1); |
ab9bc19b RD |
1931 | |
1932 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1933 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1934 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 | 1935 | return _resultobj; |
21f8d7ea | 1936 | } |
ab2208b5 RD |
1937 | |
1938 | #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1)) | |
1939 | static PyObject *_wrap_wxToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | wxToolBarToolBase * _result; | |
1942 | wxToolBarBase * _arg0; | |
1943 | size_t _arg1; | |
1944 | wxControl * _arg2; | |
1945 | PyObject * _argo0 = 0; | |
1946 | PyObject * _argo2 = 0; | |
1947 | char *_kwnames[] = { "self","pos","control", NULL }; | |
ab2208b5 RD |
1948 | |
1949 | self = self; | |
1950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2)) | |
1951 | return NULL; | |
1952 | if (_argo0) { | |
1953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
1956 | return NULL; | |
1957 | } | |
1958 | } | |
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."); | |
1963 | return NULL; | |
1964 | } | |
1965 | } | |
21f8d7ea | 1966 | { |
ab2208b5 RD |
1967 | wxPy_BEGIN_ALLOW_THREADS; |
1968 | _result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2); | |
1969 | ||
1970 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1971 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1972 | }{ _resultobj = wxPyMake_wxObject(_result); } |
21f8d7ea RD |
1973 | return _resultobj; |
1974 | } | |
1975 | ||
ab2208b5 RD |
1976 | #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator()) |
1977 | static PyObject *_wrap_wxToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 1978 | PyObject * _resultobj; |
ab2208b5 RD |
1979 | wxToolBarToolBase * _result; |
1980 | wxToolBarBase * _arg0; | |
2d091820 | 1981 | PyObject * _argo0 = 0; |
107e4716 | 1982 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
1983 | |
1984 | self = self; | |
ab2208b5 | 1985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0)) |
b26e2dc4 | 1986 | return NULL; |
2d091820 RD |
1987 | if (_argo0) { |
1988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
1991 | return NULL; |
1992 | } | |
1993 | } | |
b26e2dc4 | 1994 | { |
ab9bc19b | 1995 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 1996 | _result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0); |
ab9bc19b RD |
1997 | |
1998 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1999 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2000 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b26e2dc4 RD |
2001 | return _resultobj; |
2002 | } | |
2003 | ||
ab2208b5 RD |
2004 | #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) |
2005 | static PyObject *_wrap_wxToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21f8d7ea | 2006 | PyObject * _resultobj; |
ab2208b5 RD |
2007 | wxToolBarToolBase * _result; |
2008 | wxToolBarBase * _arg0; | |
2009 | size_t _arg1; | |
2d091820 | 2010 | PyObject * _argo0 = 0; |
ab2208b5 | 2011 | char *_kwnames[] = { "self","pos", NULL }; |
21f8d7ea RD |
2012 | |
2013 | self = self; | |
ab2208b5 | 2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1)) |
21f8d7ea | 2015 | return NULL; |
2d091820 RD |
2016 | if (_argo0) { |
2017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
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."); | |
21f8d7ea RD |
2020 | return NULL; |
2021 | } | |
2022 | } | |
2023 | { | |
ab2208b5 RD |
2024 | wxPy_BEGIN_ALLOW_THREADS; |
2025 | _result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1); | |
2026 | ||
2027 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2028 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2029 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 RD |
2030 | return _resultobj; |
2031 | } | |
2032 | ||
2033 | #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0)) | |
2034 | static PyObject *_wrap_wxToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2035 | PyObject * _resultobj; | |
2036 | wxToolBarToolBase * _result; | |
2037 | wxToolBarBase * _arg0; | |
2038 | int _arg1; | |
2039 | PyObject * _argo0 = 0; | |
2040 | char *_kwnames[] = { "self","id", NULL }; | |
ab2208b5 RD |
2041 | |
2042 | self = self; | |
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1)) | |
21f8d7ea | 2044 | return NULL; |
ab2208b5 RD |
2045 | if (_argo0) { |
2046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2049 | return NULL; | |
2050 | } | |
21f8d7ea | 2051 | } |
ab2208b5 RD |
2052 | { |
2053 | wxPy_BEGIN_ALLOW_THREADS; | |
2054 | _result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1); | |
2055 | ||
2056 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2057 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2058 | }{ _resultobj = wxPyMake_wxObject(_result); } |
ab2208b5 | 2059 | return _resultobj; |
21f8d7ea | 2060 | } |
ab2208b5 RD |
2061 | |
2062 | #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0)) | |
2063 | static PyObject *_wrap_wxToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2064 | PyObject * _resultobj; | |
2065 | bool _result; | |
2066 | wxToolBarBase * _arg0; | |
2067 | size_t _arg1; | |
2068 | PyObject * _argo0 = 0; | |
2069 | char *_kwnames[] = { "self","pos", NULL }; | |
2070 | ||
2071 | self = self; | |
2072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames,&_argo0,&_arg1)) | |
2073 | return NULL; | |
2074 | if (_argo0) { | |
2075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2078 | return NULL; | |
2079 | } | |
2080 | } | |
21f8d7ea | 2081 | { |
ab9bc19b | 2082 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 2083 | _result = (bool )wxToolBarBase_DeleteToolByPos(_arg0,_arg1); |
ab9bc19b RD |
2084 | |
2085 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2086 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2087 | } _resultobj = Py_BuildValue("i",_result); |
2088 | return _resultobj; | |
21f8d7ea | 2089 | } |
ab2208b5 RD |
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."); | |
2107 | return NULL; | |
2108 | } | |
2109 | } | |
21f8d7ea | 2110 | { |
ab2208b5 RD |
2111 | wxPy_BEGIN_ALLOW_THREADS; |
2112 | _result = (bool )wxToolBarBase_DeleteTool(_arg0,_arg1); | |
2113 | ||
2114 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2115 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2116 | } _resultobj = Py_BuildValue("i",_result); |
2117 | return _resultobj; | |
21f8d7ea | 2118 | } |
ab2208b5 RD |
2119 | |
2120 | #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools()) | |
2121 | static PyObject *_wrap_wxToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2122 | PyObject * _resultobj; | |
2123 | wxToolBarBase * _arg0; | |
2124 | PyObject * _argo0 = 0; | |
2125 | char *_kwnames[] = { "self", NULL }; | |
2126 | ||
2127 | self = self; | |
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_ClearTools",_kwnames,&_argo0)) | |
2129 | return NULL; | |
2130 | if (_argo0) { | |
2131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) { | |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p."); | |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
2137 | { | |
2138 | wxPy_BEGIN_ALLOW_THREADS; | |
2139 | wxToolBarBase_ClearTools(_arg0); | |
2140 | ||
2141 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2142 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2143 | } Py_INCREF(Py_None); |
2144 | _resultobj = Py_None; | |
21f8d7ea RD |
2145 | return _resultobj; |
2146 | } | |
2147 | ||
ab2208b5 RD |
2148 | #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize()) |
2149 | static PyObject *_wrap_wxToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2150 | PyObject * _resultobj; |
ab2208b5 RD |
2151 | bool _result; |
2152 | wxToolBarBase * _arg0; | |
2d091820 | 2153 | PyObject * _argo0 = 0; |
107e4716 | 2154 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
2155 | |
2156 | self = self; | |
ab2208b5 | 2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_Realize",_kwnames,&_argo0)) |
b26e2dc4 | 2158 | return NULL; |
2d091820 RD |
2159 | if (_argo0) { |
2160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2163 | return NULL; |
2164 | } | |
2165 | } | |
b26e2dc4 | 2166 | { |
ab9bc19b | 2167 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 2168 | _result = (bool )wxToolBarBase_Realize(_arg0); |
ab9bc19b RD |
2169 | |
2170 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2171 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2172 | } _resultobj = Py_BuildValue("i",_result); |
2173 | return _resultobj; | |
b26e2dc4 | 2174 | } |
ab2208b5 RD |
2175 | |
2176 | #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1)) | |
2177 | static PyObject *_wrap_wxToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2178 | PyObject * _resultobj; | |
2179 | wxToolBarBase * _arg0; | |
2180 | int _arg1; | |
2181 | bool _arg2; | |
2182 | PyObject * _argo0 = 0; | |
2183 | int tempbool2; | |
2184 | char *_kwnames[] = { "self","id","enable", NULL }; | |
2185 | ||
2186 | self = self; | |
2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
2188 | return NULL; | |
2189 | if (_argo0) { | |
2190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2193 | return NULL; | |
2194 | } | |
2195 | } | |
2196 | _arg2 = (bool ) tempbool2; | |
2197 | { | |
2198 | wxPy_BEGIN_ALLOW_THREADS; | |
2199 | wxToolBarBase_EnableTool(_arg0,_arg1,_arg2); | |
2200 | ||
2201 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2202 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2203 | } Py_INCREF(Py_None); |
2204 | _resultobj = Py_None; | |
b26e2dc4 RD |
2205 | return _resultobj; |
2206 | } | |
2207 | ||
ab2208b5 RD |
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)) | |
2220 | return NULL; | |
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."); | |
2225 | return NULL; | |
2226 | } | |
2227 | } | |
2228 | _arg2 = (bool ) tempbool2; | |
2229 | { | |
2230 | wxPy_BEGIN_ALLOW_THREADS; | |
2231 | wxToolBarBase_ToggleTool(_arg0,_arg1,_arg2); | |
2232 | ||
2233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2234 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2235 | } Py_INCREF(Py_None); |
2236 | _resultobj = Py_None; | |
2237 | return _resultobj; | |
b26e2dc4 RD |
2238 | } |
2239 | ||
ab2208b5 RD |
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."); | |
2257 | return NULL; | |
2258 | } | |
2259 | } | |
2260 | _arg2 = (bool ) tempbool2; | |
2261 | { | |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
2263 | wxToolBarBase_SetToggle(_arg0,_arg1,_arg2); | |
2264 | ||
2265 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2266 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2267 | } Py_INCREF(Py_None); |
2268 | _resultobj = Py_None; | |
2269 | return _resultobj; | |
b26e2dc4 RD |
2270 | } |
2271 | ||
ab2208b5 RD |
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."); | |
2297 | return NULL; | |
2298 | } | |
2299 | } | |
2300 | { | |
2301 | wxPy_BEGIN_ALLOW_THREADS; | |
2302 | _result = (PyObject *)wxToolBarBase_GetToolClientData(_arg0,_arg1); | |
2303 | ||
2304 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2305 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2306 | }{ |
2307 | _resultobj = _result; | |
2308 | } | |
2309 | return _resultobj; | |
b26e2dc4 RD |
2310 | } |
2311 | ||
ab2208b5 RD |
2312 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int index,PyObject * clientData) { |
2313 | self->SetToolClientData(index, new wxPyUserData(clientData)); | |
2314 | } | |
2315 | static PyObject *_wrap_wxToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2316 | PyObject * _resultobj; |
ab2208b5 RD |
2317 | wxToolBarBase * _arg0; |
2318 | int _arg1; | |
2319 | PyObject * _arg2; | |
2d091820 | 2320 | PyObject * _argo0 = 0; |
37f6a977 | 2321 | PyObject * _obj2 = 0; |
ab2208b5 | 2322 | char *_kwnames[] = { "self","index","clientData", NULL }; |
b26e2dc4 RD |
2323 | |
2324 | self = self; | |
ab2208b5 | 2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolClientData",_kwnames,&_argo0,&_arg1,&_obj2)) |
b26e2dc4 | 2326 | return NULL; |
2d091820 RD |
2327 | if (_argo0) { |
2328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2331 | return NULL; |
2332 | } | |
2333 | } | |
37f6a977 | 2334 | { |
ab2208b5 | 2335 | _arg2 = _obj2; |
37f6a977 | 2336 | } |
ab9bc19b RD |
2337 | { |
2338 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2339 | wxToolBarBase_SetToolClientData(_arg0,_arg1,_arg2); |
ab9bc19b RD |
2340 | |
2341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2342 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2343 | } Py_INCREF(Py_None); |
2344 | _resultobj = Py_None; | |
b26e2dc4 RD |
2345 | return _resultobj; |
2346 | } | |
2347 | ||
ab2208b5 RD |
2348 | #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0)) |
2349 | static PyObject *_wrap_wxToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 RD |
2350 | PyObject * _resultobj; |
2351 | bool _result; | |
ab2208b5 RD |
2352 | wxToolBarBase * _arg0; |
2353 | int _arg1; | |
56f5d962 | 2354 | PyObject * _argo0 = 0; |
ab2208b5 | 2355 | char *_kwnames[] = { "self","id", NULL }; |
56f5d962 RD |
2356 | |
2357 | self = self; | |
ab2208b5 | 2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolState",_kwnames,&_argo0,&_arg1)) |
56f5d962 RD |
2359 | return NULL; |
2360 | if (_argo0) { | |
2361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
2364 | return NULL; |
2365 | } | |
2366 | } | |
2367 | { | |
2368 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2369 | _result = (bool )wxToolBarBase_GetToolState(_arg0,_arg1); |
56f5d962 RD |
2370 | |
2371 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2372 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
2373 | } _resultobj = Py_BuildValue("i",_result); |
2374 | return _resultobj; | |
2375 | } | |
2376 | ||
ab2208b5 RD |
2377 | #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0)) |
2378 | static PyObject *_wrap_wxToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2379 | PyObject * _resultobj; |
ab2208b5 RD |
2380 | bool _result; |
2381 | wxToolBarBase * _arg0; | |
2382 | int _arg1; | |
2d091820 | 2383 | PyObject * _argo0 = 0; |
ab2208b5 | 2384 | char *_kwnames[] = { "self","id", NULL }; |
b26e2dc4 RD |
2385 | |
2386 | self = self; | |
ab2208b5 | 2387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolEnabled",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 2388 | return NULL; |
2d091820 RD |
2389 | if (_argo0) { |
2390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2393 | return NULL; |
2394 | } | |
2395 | } | |
ab9bc19b RD |
2396 | { |
2397 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2398 | _result = (bool )wxToolBarBase_GetToolEnabled(_arg0,_arg1); |
ab9bc19b RD |
2399 | |
2400 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2401 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 2402 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
2403 | return _resultobj; |
2404 | } | |
2405 | ||
ab2208b5 RD |
2406 | #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1)) |
2407 | static PyObject *_wrap_wxToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 2408 | PyObject * _resultobj; |
ab2208b5 RD |
2409 | wxToolBarBase * _arg0; |
2410 | int _arg1; | |
2411 | wxString * _arg2; | |
56f5d962 | 2412 | PyObject * _argo0 = 0; |
ab2208b5 RD |
2413 | PyObject * _obj2 = 0; |
2414 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
56f5d962 RD |
2415 | |
2416 | self = self; | |
ab2208b5 | 2417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2)) |
56f5d962 RD |
2418 | return NULL; |
2419 | if (_argo0) { | |
2420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
2423 | return NULL; |
2424 | } | |
2425 | } | |
ab2208b5 | 2426 | { |
2cd2fac8 RD |
2427 | #if PYTHON_API_VERSION >= 1009 |
2428 | char* tmpPtr; int tmpSize; | |
2429 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2430 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2431 | return NULL; |
2432 | } | |
2433 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2434 | return NULL; | |
2435 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2436 | #else | |
ab2208b5 RD |
2437 | if (!PyString_Check(_obj2)) { |
2438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2439 | return NULL; | |
2440 | } | |
2cd2fac8 RD |
2441 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2442 | #endif | |
ab2208b5 | 2443 | } |
56f5d962 RD |
2444 | { |
2445 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2446 | wxToolBarBase_SetToolShortHelp(_arg0,_arg1,*_arg2); |
56f5d962 RD |
2447 | |
2448 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2449 | if (PyErr_Occurred()) return NULL; |
56f5d962 RD |
2450 | } Py_INCREF(Py_None); |
2451 | _resultobj = Py_None; | |
ab2208b5 RD |
2452 | { |
2453 | if (_obj2) | |
2454 | delete _arg2; | |
2455 | } | |
56f5d962 RD |
2456 | return _resultobj; |
2457 | } | |
2458 | ||
ab2208b5 RD |
2459 | #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0)) |
2460 | static PyObject *_wrap_wxToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2461 | PyObject * _resultobj; |
ab2208b5 RD |
2462 | wxString * _result; |
2463 | wxToolBarBase * _arg0; | |
b26e2dc4 | 2464 | int _arg1; |
2d091820 | 2465 | PyObject * _argo0 = 0; |
ab2208b5 | 2466 | char *_kwnames[] = { "self","id", NULL }; |
b26e2dc4 RD |
2467 | |
2468 | self = self; | |
ab2208b5 | 2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 2470 | return NULL; |
2d091820 RD |
2471 | if (_argo0) { |
2472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2475 | return NULL; |
2476 | } | |
2477 | } | |
ab9bc19b RD |
2478 | { |
2479 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2480 | _result = new wxString (wxToolBarBase_GetToolShortHelp(_arg0,_arg1)); |
ab9bc19b RD |
2481 | |
2482 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2483 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 2484 | }{ |
e02c03a4 | 2485 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
b26e2dc4 RD |
2486 | } |
2487 | { | |
ab2208b5 | 2488 | delete _result; |
b26e2dc4 RD |
2489 | } |
2490 | return _resultobj; | |
2491 | } | |
2492 | ||
ab2208b5 RD |
2493 | #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1)) |
2494 | static PyObject *_wrap_wxToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
dd9a3de8 | 2495 | PyObject * _resultobj; |
ab2208b5 | 2496 | wxToolBarBase * _arg0; |
dd9a3de8 | 2497 | int _arg1; |
ab2208b5 | 2498 | wxString * _arg2; |
2d091820 | 2499 | PyObject * _argo0 = 0; |
ab2208b5 RD |
2500 | PyObject * _obj2 = 0; |
2501 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
dd9a3de8 RD |
2502 | |
2503 | self = self; | |
ab2208b5 | 2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2)) |
dd9a3de8 | 2505 | return NULL; |
2d091820 RD |
2506 | if (_argo0) { |
2507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
dd9a3de8 RD |
2510 | return NULL; |
2511 | } | |
2512 | } | |
dd9a3de8 | 2513 | { |
2cd2fac8 RD |
2514 | #if PYTHON_API_VERSION >= 1009 |
2515 | char* tmpPtr; int tmpSize; | |
2516 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2517 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2518 | return NULL; |
2519 | } | |
2520 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2521 | return NULL; | |
2522 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2523 | #else | |
ab2208b5 | 2524 | if (!PyString_Check(_obj2)) { |
dd9a3de8 RD |
2525 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2526 | return NULL; | |
2527 | } | |
2cd2fac8 RD |
2528 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2529 | #endif | |
dd9a3de8 | 2530 | } |
dd9a3de8 | 2531 | { |
ab2208b5 RD |
2532 | wxPy_BEGIN_ALLOW_THREADS; |
2533 | wxToolBarBase_SetToolLongHelp(_arg0,_arg1,*_arg2); | |
2534 | ||
2535 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2536 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2537 | } Py_INCREF(Py_None); |
2538 | _resultobj = Py_None; | |
2539 | { | |
2540 | if (_obj2) | |
2541 | delete _arg2; | |
2542 | } | |
2543 | return _resultobj; | |
2544 | } | |
2545 | ||
2546 | #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0)) | |
2547 | static PyObject *_wrap_wxToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2548 | PyObject * _resultobj; | |
2549 | wxString * _result; | |
2550 | wxToolBarBase * _arg0; | |
2551 | int _arg1; | |
2552 | PyObject * _argo0 = 0; | |
2553 | char *_kwnames[] = { "self","id", NULL }; | |
2554 | ||
2555 | self = self; | |
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames,&_argo0,&_arg1)) | |
dd9a3de8 | 2557 | return NULL; |
ab2208b5 RD |
2558 | if (_argo0) { |
2559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2562 | return NULL; | |
2563 | } | |
dd9a3de8 | 2564 | } |
ab9bc19b RD |
2565 | { |
2566 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2567 | _result = new wxString (wxToolBarBase_GetToolLongHelp(_arg0,_arg1)); |
ab9bc19b RD |
2568 | |
2569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2570 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 2571 | }{ |
e02c03a4 | 2572 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
dd9a3de8 RD |
2573 | } |
2574 | { | |
ab2208b5 | 2575 | delete _result; |
dd9a3de8 RD |
2576 | } |
2577 | return _resultobj; | |
2578 | } | |
2579 | ||
ab2208b5 RD |
2580 | #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) |
2581 | static PyObject *_wrap_wxToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2582 | PyObject * _resultobj; |
ab2208b5 | 2583 | wxToolBarBase * _arg0; |
b26e2dc4 | 2584 | int _arg1; |
ab2208b5 | 2585 | int _arg2; |
2d091820 | 2586 | PyObject * _argo0 = 0; |
ab2208b5 | 2587 | char *_kwnames[] = { "self","x","y", NULL }; |
b26e2dc4 RD |
2588 | |
2589 | self = self; | |
ab2208b5 | 2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
b26e2dc4 | 2591 | return NULL; |
2d091820 RD |
2592 | if (_argo0) { |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2596 | return NULL; |
2597 | } | |
2598 | } | |
ab9bc19b RD |
2599 | { |
2600 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2601 | wxToolBarBase_SetMarginsXY(_arg0,_arg1,_arg2); |
ab9bc19b RD |
2602 | |
2603 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2604 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2605 | } Py_INCREF(Py_None); |
b26e2dc4 RD |
2606 | _resultobj = Py_None; |
2607 | return _resultobj; | |
2608 | } | |
2609 | ||
ab2208b5 RD |
2610 | #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0)) |
2611 | static PyObject *_wrap_wxToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
56f5d962 | 2612 | PyObject * _resultobj; |
ab2208b5 RD |
2613 | wxToolBarBase * _arg0; |
2614 | wxSize * _arg1; | |
56f5d962 | 2615 | PyObject * _argo0 = 0; |
ab2208b5 RD |
2616 | wxSize temp; |
2617 | PyObject * _obj1 = 0; | |
2618 | char *_kwnames[] = { "self","size", NULL }; | |
56f5d962 RD |
2619 | |
2620 | self = self; | |
ab2208b5 | 2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetMargins",_kwnames,&_argo0,&_obj1)) |
56f5d962 RD |
2622 | return NULL; |
2623 | if (_argo0) { | |
2624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
56f5d962 RD |
2627 | return NULL; |
2628 | } | |
2629 | } | |
ab2208b5 RD |
2630 | { |
2631 | _arg1 = &temp; | |
2632 | if (! wxSize_helper(_obj1, &_arg1)) | |
2633 | return NULL; | |
2634 | } | |
56f5d962 RD |
2635 | { |
2636 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2637 | wxToolBarBase_SetMargins(_arg0,*_arg1); |
56f5d962 RD |
2638 | |
2639 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2640 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2641 | } Py_INCREF(Py_None); |
2642 | _resultobj = Py_None; | |
56f5d962 RD |
2643 | return _resultobj; |
2644 | } | |
2645 | ||
ab2208b5 RD |
2646 | #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0)) |
2647 | static PyObject *_wrap_wxToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2648 | PyObject * _resultobj; |
ab2208b5 | 2649 | wxToolBarBase * _arg0; |
b26e2dc4 | 2650 | int _arg1; |
2d091820 | 2651 | PyObject * _argo0 = 0; |
ab2208b5 | 2652 | char *_kwnames[] = { "self","packing", NULL }; |
b26e2dc4 RD |
2653 | |
2654 | self = self; | |
ab2208b5 | 2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolPacking",_kwnames,&_argo0,&_arg1)) |
b26e2dc4 | 2656 | return NULL; |
2d091820 RD |
2657 | if (_argo0) { |
2658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2661 | return NULL; |
2662 | } | |
2663 | } | |
ab9bc19b RD |
2664 | { |
2665 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2666 | wxToolBarBase_SetToolPacking(_arg0,_arg1); |
ab9bc19b RD |
2667 | |
2668 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2669 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2670 | } Py_INCREF(Py_None); |
2671 | _resultobj = Py_None; | |
b26e2dc4 RD |
2672 | return _resultobj; |
2673 | } | |
2674 | ||
ab2208b5 RD |
2675 | #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0)) |
2676 | static PyObject *_wrap_wxToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 | 2677 | PyObject * _resultobj; |
ab2208b5 | 2678 | wxToolBarBase * _arg0; |
c95e68d8 | 2679 | int _arg1; |
2d091820 | 2680 | PyObject * _argo0 = 0; |
ab2208b5 | 2681 | char *_kwnames[] = { "self","separation", NULL }; |
c95e68d8 RD |
2682 | |
2683 | self = self; | |
ab2208b5 | 2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolSeparation",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 2685 | return NULL; |
2d091820 RD |
2686 | if (_argo0) { |
2687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 RD |
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."); | |
c95e68d8 RD |
2690 | return NULL; |
2691 | } | |
2692 | } | |
c95e68d8 | 2693 | { |
ab9bc19b | 2694 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 2695 | wxToolBarBase_SetToolSeparation(_arg0,_arg1); |
ab9bc19b RD |
2696 | |
2697 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2698 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2699 | } Py_INCREF(Py_None); |
2700 | _resultobj = Py_None; | |
2701 | return _resultobj; | |
c95e68d8 | 2702 | } |
ab2208b5 RD |
2703 | |
2704 | #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins()) | |
2705 | static PyObject *_wrap_wxToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2706 | PyObject * _resultobj; | |
2707 | wxSize * _result; | |
2708 | wxToolBarBase * _arg0; | |
2709 | PyObject * _argo0 = 0; | |
2710 | char *_kwnames[] = { "self", NULL }; | |
2711 | char _ptemp[128]; | |
2712 | ||
2713 | self = self; | |
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolMargins",_kwnames,&_argo0)) | |
2715 | return NULL; | |
2716 | if (_argo0) { | |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2720 | return NULL; | |
2721 | } | |
2722 | } | |
c95e68d8 | 2723 | { |
ab2208b5 RD |
2724 | wxPy_BEGIN_ALLOW_THREADS; |
2725 | _result = new wxSize (wxToolBarBase_GetToolMargins(_arg0)); | |
2726 | ||
2727 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2728 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2729 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2730 | _resultobj = Py_BuildValue("s",_ptemp); | |
2731 | return _resultobj; | |
c95e68d8 | 2732 | } |
ab2208b5 | 2733 | |
5e40f9dd 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; | |
4dfaa61e | 2758 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
2759 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2760 | _resultobj = Py_BuildValue("s",_ptemp); | |
2761 | return _resultobj; | |
2762 | } | |
2763 | ||
ab2208b5 RD |
2764 | #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking()) |
2765 | static PyObject *_wrap_wxToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject * _resultobj; | |
2767 | int _result; | |
2768 | wxToolBarBase * _arg0; | |
2769 | PyObject * _argo0 = 0; | |
2770 | char *_kwnames[] = { "self", NULL }; | |
2771 | ||
2772 | self = self; | |
2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolPacking",_kwnames,&_argo0)) | |
2774 | return NULL; | |
2775 | if (_argo0) { | |
2776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
2779 | return NULL; | |
2780 | } | |
2781 | } | |
2782 | { | |
2783 | wxPy_BEGIN_ALLOW_THREADS; | |
2784 | _result = (int )wxToolBarBase_GetToolPacking(_arg0); | |
2785 | ||
2786 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2787 | if (PyErr_Occurred()) return NULL; |
ab2208b5 | 2788 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
2789 | return _resultobj; |
2790 | } | |
2791 | ||
ab2208b5 RD |
2792 | #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation()) |
2793 | static PyObject *_wrap_wxToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 RD |
2794 | PyObject * _resultobj; |
2795 | int _result; | |
ab2208b5 | 2796 | wxToolBarBase * _arg0; |
2d091820 | 2797 | PyObject * _argo0 = 0; |
107e4716 | 2798 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
2799 | |
2800 | self = self; | |
ab2208b5 | 2801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSeparation",_kwnames,&_argo0)) |
c95e68d8 | 2802 | return NULL; |
2d091820 RD |
2803 | if (_argo0) { |
2804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
c95e68d8 RD |
2807 | return NULL; |
2808 | } | |
2809 | } | |
ab9bc19b RD |
2810 | { |
2811 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2812 | _result = (int )wxToolBarBase_GetToolSeparation(_arg0); |
ab9bc19b RD |
2813 | |
2814 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2815 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2816 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
2817 | return _resultobj; |
2818 | } | |
2819 | ||
ab2208b5 RD |
2820 | #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0)) |
2821 | static PyObject *_wrap_wxToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 | 2822 | PyObject * _resultobj; |
ab2208b5 RD |
2823 | wxToolBarBase * _arg0; |
2824 | int _arg1; | |
2d091820 | 2825 | PyObject * _argo0 = 0; |
ab2208b5 | 2826 | char *_kwnames[] = { "self","nRows", NULL }; |
c95e68d8 RD |
2827 | |
2828 | self = self; | |
ab2208b5 | 2829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetRows",_kwnames,&_argo0,&_arg1)) |
c95e68d8 | 2830 | return NULL; |
2d091820 RD |
2831 | if (_argo0) { |
2832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
c95e68d8 RD |
2835 | return NULL; |
2836 | } | |
2837 | } | |
ab9bc19b RD |
2838 | { |
2839 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2840 | wxToolBarBase_SetRows(_arg0,_arg1); |
ab9bc19b RD |
2841 | |
2842 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2843 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2844 | } Py_INCREF(Py_None); |
2845 | _resultobj = Py_None; | |
c95e68d8 RD |
2846 | return _resultobj; |
2847 | } | |
2848 | ||
ab2208b5 RD |
2849 | #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1)) |
2850 | static PyObject *_wrap_wxToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 | 2851 | PyObject * _resultobj; |
ab2208b5 | 2852 | wxToolBarBase * _arg0; |
c95e68d8 | 2853 | int _arg1; |
ab2208b5 | 2854 | int _arg2; |
2d091820 | 2855 | PyObject * _argo0 = 0; |
ab2208b5 | 2856 | char *_kwnames[] = { "self","rows","cols", NULL }; |
c95e68d8 RD |
2857 | |
2858 | self = self; | |
ab2208b5 | 2859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 2860 | return NULL; |
2d091820 RD |
2861 | if (_argo0) { |
2862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
c95e68d8 RD |
2865 | return NULL; |
2866 | } | |
2867 | } | |
c95e68d8 | 2868 | { |
ab9bc19b | 2869 | wxPy_BEGIN_ALLOW_THREADS; |
ab2208b5 | 2870 | wxToolBarBase_SetMaxRowsCols(_arg0,_arg1,_arg2); |
ab9bc19b RD |
2871 | |
2872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2873 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2874 | } Py_INCREF(Py_None); |
2875 | _resultobj = Py_None; | |
c95e68d8 RD |
2876 | return _resultobj; |
2877 | } | |
2878 | ||
ab2208b5 RD |
2879 | #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows()) |
2880 | static PyObject *_wrap_wxToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2881 | PyObject * _resultobj; |
ab2208b5 RD |
2882 | int _result; |
2883 | wxToolBarBase * _arg0; | |
2d091820 | 2884 | PyObject * _argo0 = 0; |
ab2208b5 | 2885 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
2886 | |
2887 | self = self; | |
ab2208b5 | 2888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxRows",_kwnames,&_argo0)) |
b26e2dc4 | 2889 | return NULL; |
2d091820 RD |
2890 | if (_argo0) { |
2891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2894 | return NULL; |
2895 | } | |
2896 | } | |
ab9bc19b RD |
2897 | { |
2898 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2899 | _result = (int )wxToolBarBase_GetMaxRows(_arg0); |
ab9bc19b RD |
2900 | |
2901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2902 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2903 | } _resultobj = Py_BuildValue("i",_result); |
b26e2dc4 RD |
2904 | return _resultobj; |
2905 | } | |
2906 | ||
ab2208b5 RD |
2907 | #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols()) |
2908 | static PyObject *_wrap_wxToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 2909 | PyObject * _resultobj; |
ab2208b5 RD |
2910 | int _result; |
2911 | wxToolBarBase * _arg0; | |
2d091820 | 2912 | PyObject * _argo0 = 0; |
107e4716 | 2913 | char *_kwnames[] = { "self", NULL }; |
b26e2dc4 RD |
2914 | |
2915 | self = self; | |
ab2208b5 | 2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxCols",_kwnames,&_argo0)) |
b26e2dc4 | 2917 | return NULL; |
2d091820 RD |
2918 | if (_argo0) { |
2919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
2922 | return NULL; |
2923 | } | |
2924 | } | |
ab9bc19b RD |
2925 | { |
2926 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2927 | _result = (int )wxToolBarBase_GetMaxCols(_arg0); |
ab9bc19b RD |
2928 | |
2929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2930 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2931 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
2932 | return _resultobj; |
2933 | } | |
2934 | ||
ab2208b5 RD |
2935 | #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0)) |
2936 | static PyObject *_wrap_wxToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 | 2937 | PyObject * _resultobj; |
ab2208b5 RD |
2938 | wxToolBarBase * _arg0; |
2939 | wxSize * _arg1; | |
2d091820 | 2940 | PyObject * _argo0 = 0; |
ab2208b5 RD |
2941 | wxSize temp; |
2942 | PyObject * _obj1 = 0; | |
2943 | char *_kwnames[] = { "self","size", NULL }; | |
c95e68d8 RD |
2944 | |
2945 | self = self; | |
ab2208b5 | 2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 2947 | return NULL; |
2d091820 RD |
2948 | if (_argo0) { |
2949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
c95e68d8 RD |
2952 | return NULL; |
2953 | } | |
2954 | } | |
2955 | { | |
ab2208b5 RD |
2956 | _arg1 = &temp; |
2957 | if (! wxSize_helper(_obj1, &_arg1)) | |
c95e68d8 | 2958 | return NULL; |
c95e68d8 | 2959 | } |
ab9bc19b RD |
2960 | { |
2961 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 2962 | wxToolBarBase_SetToolBitmapSize(_arg0,*_arg1); |
ab9bc19b RD |
2963 | |
2964 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2965 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2966 | } Py_INCREF(Py_None); |
c95e68d8 | 2967 | _resultobj = Py_None; |
c95e68d8 RD |
2968 | return _resultobj; |
2969 | } | |
2970 | ||
ab2208b5 RD |
2971 | #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize()) |
2972 | static PyObject *_wrap_wxToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c95e68d8 | 2973 | PyObject * _resultobj; |
ab2208b5 RD |
2974 | wxSize * _result; |
2975 | wxToolBarBase * _arg0; | |
2d091820 | 2976 | PyObject * _argo0 = 0; |
ab2208b5 RD |
2977 | char *_kwnames[] = { "self", NULL }; |
2978 | char _ptemp[128]; | |
c95e68d8 RD |
2979 | |
2980 | self = self; | |
ab2208b5 | 2981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolBitmapSize",_kwnames,&_argo0)) |
c95e68d8 | 2982 | return NULL; |
2d091820 RD |
2983 | if (_argo0) { |
2984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
c95e68d8 RD |
2987 | return NULL; |
2988 | } | |
2989 | } | |
2990 | { | |
ab2208b5 RD |
2991 | wxPy_BEGIN_ALLOW_THREADS; |
2992 | _result = new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0)); | |
2993 | ||
2994 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2995 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
2996 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2997 | _resultobj = Py_BuildValue("s",_ptemp); | |
2998 | return _resultobj; | |
2999 | } | |
3000 | ||
3001 | #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize()) | |
3002 | static PyObject *_wrap_wxToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3003 | PyObject * _resultobj; | |
3004 | wxSize * _result; | |
3005 | wxToolBarBase * _arg0; | |
3006 | PyObject * _argo0 = 0; | |
3007 | char *_kwnames[] = { "self", NULL }; | |
3008 | char _ptemp[128]; | |
3009 | ||
3010 | self = self; | |
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSize",_kwnames,&_argo0)) | |
3012 | return NULL; | |
3013 | if (_argo0) { | |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
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."); | |
c95e68d8 | 3017 | return NULL; |
ab2208b5 | 3018 | } |
c95e68d8 | 3019 | } |
ab9bc19b RD |
3020 | { |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 3022 | _result = new wxSize (wxToolBarBase_GetToolSize(_arg0)); |
ab9bc19b RD |
3023 | |
3024 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3025 | if (PyErr_Occurred()) return NULL; |
ab2208b5 RD |
3026 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3027 | _resultobj = Py_BuildValue("s",_ptemp); | |
b26e2dc4 RD |
3028 | return _resultobj; |
3029 | } | |
3030 | ||
ab2208b5 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 | ||
9df61a29 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 | ||
ab2208b5 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) { | |
b26e2dc4 | 3073 | PyObject * _resultobj; |
ab2208b5 RD |
3074 | wxToolBar * _result; |
3075 | wxWindow * _arg0; | |
3076 | wxWindowID _arg1; | |
b68dc582 RD |
3077 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3078 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 3079 | long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL; |
8e425133 | 3080 | char * _arg5 = (char *) wxToolBarNameStr; |
2d091820 | 3081 | PyObject * _argo0 = 0; |
ab2208b5 RD |
3082 | wxPoint temp; |
3083 | PyObject * _obj2 = 0; | |
3084 | wxSize temp0; | |
3085 | PyObject * _obj3 = 0; | |
ab2208b5 RD |
3086 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
3087 | char _ptemp[128]; | |
b26e2dc4 RD |
3088 | |
3089 | self = self; | |
8e425133 | 3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
b26e2dc4 | 3091 | return NULL; |
2d091820 RD |
3092 | if (_argo0) { |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
3096 | return NULL; |
3097 | } | |
3098 | } | |
ab2208b5 | 3099 | if (_obj2) |
37f6a977 | 3100 | { |
ab2208b5 RD |
3101 | _arg2 = &temp; |
3102 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3103 | return NULL; | |
3104 | } | |
3105 | if (_obj3) | |
3106 | { | |
3107 | _arg3 = &temp0; | |
3108 | if (! wxSize_helper(_obj3, &_arg3)) | |
3109 | return NULL; | |
37f6a977 | 3110 | } |
ab9bc19b RD |
3111 | { |
3112 | wxPy_BEGIN_ALLOW_THREADS; | |
8e425133 | 3113 | _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
ab9bc19b RD |
3114 | |
3115 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3116 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
b26e2dc4 RD |
3124 | return _resultobj; |
3125 | } | |
3126 | ||
aa2a5b86 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 | ||
ab2208b5 RD |
3211 | #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1)) |
3212 | static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 3213 | PyObject * _resultobj; |
ab2208b5 | 3214 | wxToolBarToolBase * _result; |
b26e2dc4 | 3215 | wxToolBar * _arg0; |
ab2208b5 RD |
3216 | wxCoord _arg1; |
3217 | wxCoord _arg2; | |
2d091820 | 3218 | PyObject * _argo0 = 0; |
ab2208b5 | 3219 | char *_kwnames[] = { "self","x","y", NULL }; |
b26e2dc4 RD |
3220 | |
3221 | self = self; | |
ab2208b5 | 3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
b26e2dc4 | 3223 | return NULL; |
2d091820 RD |
3224 | if (_argo0) { |
3225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
ab2208b5 | 3227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p."); |
b26e2dc4 RD |
3228 | return NULL; |
3229 | } | |
3230 | } | |
ab9bc19b RD |
3231 | { |
3232 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 3233 | _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2); |
ab9bc19b RD |
3234 | |
3235 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3236 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3237 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b26e2dc4 RD |
3238 | return _resultobj; |
3239 | } | |
3240 | ||
ab2208b5 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 | ||
9df61a29 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 | ||
ab2208b5 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) { | |
b26e2dc4 | 3283 | PyObject * _resultobj; |
ab2208b5 RD |
3284 | wxToolBarSimple * _result; |
3285 | wxWindow * _arg0; | |
3286 | wxWindowID _arg1; | |
b68dc582 RD |
3287 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3288 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
ab2208b5 | 3289 | long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL; |
e02c03a4 | 3290 | char * _arg5 = (char *) wxToolBarNameStr; |
2d091820 | 3291 | PyObject * _argo0 = 0; |
ab2208b5 RD |
3292 | wxPoint temp; |
3293 | PyObject * _obj2 = 0; | |
3294 | wxSize temp0; | |
3295 | PyObject * _obj3 = 0; | |
ab2208b5 RD |
3296 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
3297 | char _ptemp[128]; | |
b26e2dc4 RD |
3298 | |
3299 | self = self; | |
e02c03a4 | 3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
b26e2dc4 | 3301 | return NULL; |
2d091820 RD |
3302 | if (_argo0) { |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
3306 | return NULL; |
3307 | } | |
3308 | } | |
ab2208b5 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; | |
ab2208b5 | 3320 | } |
ab9bc19b RD |
3321 | { |
3322 | wxPy_BEGIN_ALLOW_THREADS; | |
e02c03a4 | 3323 | _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
ab9bc19b RD |
3324 | |
3325 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3326 | if (PyErr_Occurred()) return NULL; |
ab2208b5 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 | } | |
b26e2dc4 RD |
3334 | return _resultobj; |
3335 | } | |
3336 | ||
aa2a5b86 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 | ||
ab2208b5 RD |
3421 | #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1)) |
3422 | static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b26e2dc4 | 3423 | PyObject * _resultobj; |
ab2208b5 RD |
3424 | wxToolBarToolBase * _result; |
3425 | wxToolBarSimple * _arg0; | |
3426 | wxCoord _arg1; | |
3427 | wxCoord _arg2; | |
2d091820 | 3428 | PyObject * _argo0 = 0; |
ab2208b5 | 3429 | char *_kwnames[] = { "self","x","y", NULL }; |
b26e2dc4 RD |
3430 | |
3431 | self = self; | |
ab2208b5 | 3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
b26e2dc4 | 3433 | return NULL; |
2d091820 RD |
3434 | if (_argo0) { |
3435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
ab2208b5 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."); | |
b26e2dc4 RD |
3438 | return NULL; |
3439 | } | |
3440 | } | |
ab9bc19b RD |
3441 | { |
3442 | wxPy_BEGIN_ALLOW_THREADS; | |
ab2208b5 | 3443 | _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2); |
ab9bc19b RD |
3444 | |
3445 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3446 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3447 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b26e2dc4 RD |
3448 | return _resultobj; |
3449 | } | |
3450 | ||
3451 | static PyMethodDef stattoolcMethods[] = { | |
ab2208b5 | 3452 | { "wxToolBarSimple_FindToolForPosition", (PyCFunction) _wrap_wxToolBarSimple_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
3453 | { "wxToolBarSimple_Create", (PyCFunction) _wrap_wxToolBarSimple_Create, METH_VARARGS | METH_KEYWORDS }, |
3454 | { "new_wxPreToolBarSimple", (PyCFunction) _wrap_new_wxPreToolBarSimple, METH_VARARGS | METH_KEYWORDS }, | |
ab2208b5 RD |
3455 | { "new_wxToolBarSimple", (PyCFunction) _wrap_new_wxToolBarSimple, METH_VARARGS | METH_KEYWORDS }, |
3456 | { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
3457 | { "wxToolBar_Create", (PyCFunction) _wrap_wxToolBar_Create, METH_VARARGS | METH_KEYWORDS }, |
3458 | { "new_wxPreToolBar", (PyCFunction) _wrap_new_wxPreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 3459 | { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 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 }, | |
5e40f9dd | 3469 | { "wxToolBarBase_GetMargins", (PyCFunction) _wrap_wxToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, |
ab2208b5 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 }, | |
2fc99549 | 3526 | { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, |
107e4716 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 }, | |
2fc99549 RD |
3530 | { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, |
3531 | { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 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 }, | |
aa2a5b86 RD |
3535 | { "wxStatusBar_Create", (PyCFunction) _wrap_wxStatusBar_Create, METH_VARARGS | METH_KEYWORDS }, |
3536 | { "new_wxPreStatusBar", (PyCFunction) _wrap_new_wxPreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 3537 | { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS }, |
b26e2dc4 RD |
3538 | { NULL, NULL } |
3539 | }; | |
2d091820 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[] = { | |
2d091820 | 3547 | { "_signed_long","_long",0}, |
4120ef2b | 3548 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 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}, |
ab2208b5 RD |
3557 | { "_class_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler}, |
3558 | { "_class_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler}, | |
2d091820 RD |
3559 | { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler}, |
3560 | { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
ab2208b5 RD |
3561 | { "_class_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler}, |
3562 | { "_class_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler}, | |
2d091820 RD |
3563 | { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, |
3564 | { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
ab2208b5 RD |
3565 | { "_class_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase}, |
3566 | { "_class_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase}, | |
3567 | { "_class_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase}, | |
3568 | { "_class_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase}, | |
2d091820 | 3569 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
3570 | { "_long","_unsigned_long",0}, |
3571 | { "_long","_signed_long",0}, | |
9df61a29 RD |
3572 | { "_class_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject}, |
3573 | { "_class_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject}, | |
3574 | { "_class_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject}, | |
3575 | { "_class_wxObject","_wxToolBar",SwigwxToolBarTowxObject}, | |
3576 | { "_class_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject}, | |
3577 | { "_class_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject}, | |
3578 | { "_class_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject}, | |
3579 | { "_class_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject}, | |
3580 | { "_class_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject}, | |
3581 | { "_class_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject}, | |
4120ef2b | 3582 | { "_size_t","_wxCoord",0}, |
2d091820 | 3583 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 3584 | { "_size_t","_time_t",0}, |
2d091820 RD |
3585 | { "_size_t","_unsigned_int",0}, |
3586 | { "_size_t","_int",0}, | |
3587 | { "_size_t","_wxWindowID",0}, | |
3588 | { "_size_t","_uint",0}, | |
4120ef2b | 3589 | { "_uint","_wxCoord",0}, |
2d091820 | 3590 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 3591 | { "_uint","_time_t",0}, |
2d091820 RD |
3592 | { "_uint","_size_t",0}, |
3593 | { "_uint","_unsigned_int",0}, | |
3594 | { "_uint","_int",0}, | |
3595 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 3596 | { "_wxChar","_char",0}, |
f6bcfd97 | 3597 | { "_char","_wxChar",0}, |
4120ef2b | 3598 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
3599 | { "_EBool","_wxPrintQuality",0}, |
3600 | { "_EBool","_signed_int",0}, | |
3601 | { "_EBool","_int",0}, | |
3602 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 3603 | { "_unsigned_long","_long",0}, |
4120ef2b | 3604 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
3605 | { "_signed_int","_wxPrintQuality",0}, |
3606 | { "_signed_int","_EBool",0}, | |
3607 | { "_signed_int","_wxWindowID",0}, | |
3608 | { "_signed_int","_int",0}, | |
2d091820 RD |
3609 | { "_WXTYPE","_short",0}, |
3610 | { "_WXTYPE","_signed_short",0}, | |
3611 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
3612 | { "_unsigned_short","_WXTYPE",0}, |
3613 | { "_unsigned_short","_short",0}, | |
ab2208b5 RD |
3614 | { "_class_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow}, |
3615 | { "_class_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow}, | |
2d091820 RD |
3616 | { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow}, |
3617 | { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow}, | |
ab2208b5 RD |
3618 | { "_class_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow}, |
3619 | { "_class_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow}, | |
2d091820 RD |
3620 | { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow}, |
3621 | { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
9df61a29 RD |
3622 | { "_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject}, |
3623 | { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject}, | |
3624 | { "_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject}, | |
3625 | { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject}, | |
3626 | { "_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject}, | |
3627 | { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject}, | |
3628 | { "_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject}, | |
3629 | { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject}, | |
3630 | { "_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject}, | |
3631 | { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject}, | |
2d091820 RD |
3632 | { "_signed_short","_WXTYPE",0}, |
3633 | { "_signed_short","_short",0}, | |
2d091820 | 3634 | { "_unsigned_char","_byte",0}, |
ab2208b5 RD |
3635 | { "_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl}, |
3636 | { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl}, | |
2d091820 RD |
3637 | { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl}, |
3638 | { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl}, | |
ab2208b5 RD |
3639 | { "_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl}, |
3640 | { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl}, | |
4120ef2b | 3641 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 3642 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 3643 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
3644 | { "_unsigned_int","_size_t",0}, |
3645 | { "_unsigned_int","_uint",0}, | |
3646 | { "_unsigned_int","_wxWindowID",0}, | |
3647 | { "_unsigned_int","_int",0}, | |
2d091820 RD |
3648 | { "_short","_WXTYPE",0}, |
3649 | { "_short","_unsigned_short",0}, | |
3650 | { "_short","_signed_short",0}, | |
4120ef2b | 3651 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 3652 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 3653 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
3654 | { "_wxWindowID","_size_t",0}, |
3655 | { "_wxWindowID","_EBool",0}, | |
3656 | { "_wxWindowID","_uint",0}, | |
3657 | { "_wxWindowID","_int",0}, | |
3658 | { "_wxWindowID","_signed_int",0}, | |
3659 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 3660 | { "_int","_wxCoord",0}, |
2d091820 | 3661 | { "_int","_wxPrintQuality",0}, |
c368d904 | 3662 | { "_int","_time_t",0}, |
2d091820 RD |
3663 | { "_int","_size_t",0}, |
3664 | { "_int","_EBool",0}, | |
3665 | { "_int","_uint",0}, | |
3666 | { "_int","_wxWindowID",0}, | |
3667 | { "_int","_unsigned_int",0}, | |
3668 | { "_int","_signed_int",0}, | |
c368d904 RD |
3669 | { "_time_t","_wxCoord",0}, |
3670 | { "_time_t","_wxPrintQuality",0}, | |
3671 | { "_time_t","_unsigned_int",0}, | |
3672 | { "_time_t","_int",0}, | |
3673 | { "_time_t","_wxWindowID",0}, | |
3674 | { "_time_t","_uint",0}, | |
3675 | { "_time_t","_size_t",0}, | |
ab2208b5 RD |
3676 | { "_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase}, |
3677 | { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase}, | |
3678 | { "_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase}, | |
3679 | { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase}, | |
ab2208b5 RD |
3680 | { "_class_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl}, |
3681 | { "_class_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl}, | |
2d091820 RD |
3682 | { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl}, |
3683 | { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl}, | |
ab2208b5 RD |
3684 | { "_class_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl}, |
3685 | { "_class_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl}, | |
4120ef2b RD |
3686 | { "_wxCoord","_int",0}, |
3687 | { "_wxCoord","_signed_int",0}, | |
3688 | { "_wxCoord","_unsigned_int",0}, | |
3689 | { "_wxCoord","_wxWindowID",0}, | |
3690 | { "_wxCoord","_uint",0}, | |
3691 | { "_wxCoord","_EBool",0}, | |
3692 | { "_wxCoord","_size_t",0}, | |
c368d904 | 3693 | { "_wxCoord","_time_t",0}, |
4120ef2b | 3694 | { "_wxCoord","_wxPrintQuality",0}, |
ab2208b5 RD |
3695 | { "_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler}, |
3696 | { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler}, | |
2d091820 RD |
3697 | { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler}, |
3698 | { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
ab2208b5 RD |
3699 | { "_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler}, |
3700 | { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler}, | |
2d091820 RD |
3701 | { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, |
3702 | { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
ab2208b5 RD |
3703 | { "_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow}, |
3704 | { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow}, | |
2d091820 RD |
3705 | { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow}, |
3706 | { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow}, | |
ab2208b5 RD |
3707 | { "_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow}, |
3708 | { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow}, | |
2d091820 RD |
3709 | { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow}, |
3710 | { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
2d091820 RD |
3711 | {0,0,0}}; |
3712 | ||
b26e2dc4 RD |
3713 | static PyObject *SWIG_globals; |
3714 | #ifdef __cplusplus | |
3715 | extern "C" | |
3716 | #endif | |
2d091820 | 3717 | SWIGEXPORT(void) initstattoolc() { |
b26e2dc4 RD |
3718 | PyObject *m, *d; |
3719 | SWIG_globals = SWIG_newvarlink(); | |
3720 | m = Py_InitModule("stattoolc", stattoolcMethods); | |
3721 | d = PyModule_GetDict(m); | |
ab2208b5 RD |
3722 | PyDict_SetItemString(d,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON)); |
3723 | PyDict_SetItemString(d,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR)); | |
3724 | PyDict_SetItemString(d,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL)); | |
2d091820 RD |
3725 | { |
3726 | int i; | |
3727 | for (i = 0; _swig_mapping[i].n1; i++) | |
3728 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
3729 | } | |
b26e2dc4 | 3730 | } |