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