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