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