]>
Commit | Line | Data |
---|---|---|
9c039d08 RD |
1 | /* |
2 | * FILE : msw/stattool.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
9c039d08 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
9c039d08 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
9c039d08 | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
9c039d08 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
9c039d08 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
9c039d08 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
9c039d08 RD |
52 | #define SWIG_init initstattoolc |
53 | ||
54 | #define SWIG_name "stattoolc" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/toolbar.h> | |
58 | #include <wx/tbarsmpl.h> | |
59 | ||
60 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
61 | PyObject* o2; | |
1d99702e RD |
62 | PyObject* o3; |
63 | if (!target) { | |
9c039d08 | 64 | target = o; |
1d99702e | 65 | } else if (target == Py_None) { |
9c039d08 RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
1d99702e | 68 | } else { |
9c039d08 RD |
69 | if (!PyList_Check(target)) { |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
1d99702e | 85 | if (!target) { |
9c039d08 | 86 | target = o; |
1d99702e | 87 | } else if (target == Py_None) { |
9c039d08 RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
1d99702e | 90 | } else { |
9c039d08 RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
1d99702e RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
9c039d08 RD |
98 | |
99 | o2 = target; | |
1d99702e RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
9c039d08 RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
107 | ||
1afc06c2 RD |
108 | HELPEREXPORT byte* byte_LIST_helper(PyObject* source); |
109 | HELPEREXPORT int* int_LIST_helper(PyObject* source); | |
110 | HELPEREXPORT long* long_LIST_helper(PyObject* source); | |
111 | HELPEREXPORT char** string_LIST_helper(PyObject* source); | |
112 | HELPEREXPORT wxPoint* wxPoint_LIST_helper(PyObject* source); | |
113 | HELPEREXPORT wxBitmap** wxBitmap_LIST_helper(PyObject* source); | |
114 | HELPEREXPORT wxString* wxString_LIST_helper(PyObject* source); | |
115 | HELPEREXPORT wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); | |
9c039d08 RD |
116 | |
117 | ||
118 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
1d99702e RD |
119 | #ifdef __cplusplus |
120 | extern "C" { | |
121 | #endif | |
9c039d08 RD |
122 | static void *SwigwxStatusBarTowxWindow(void *ptr) { |
123 | wxStatusBar *src; | |
124 | wxWindow *dest; | |
125 | src = (wxStatusBar *) ptr; | |
126 | dest = (wxWindow *) src; | |
127 | return (void *) dest; | |
128 | } | |
129 | ||
130 | static void *SwigwxStatusBarTowxEvtHandler(void *ptr) { | |
131 | wxStatusBar *src; | |
132 | wxEvtHandler *dest; | |
133 | src = (wxStatusBar *) ptr; | |
134 | dest = (wxEvtHandler *) src; | |
135 | return (void *) dest; | |
136 | } | |
137 | ||
138 | #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
efc5f224 | 139 | static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
140 | PyObject * _resultobj; |
141 | wxStatusBar * _result; | |
142 | wxWindow * _arg0; | |
143 | wxWindowID _arg1; | |
1d99702e RD |
144 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
145 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
146 | long _arg4 = (long ) wxST_SIZEGRIP; | |
147 | char * _arg5 = (char *) "statusBar"; | |
148 | PyObject * _argo0 = 0; | |
149 | PyObject * _argo2 = 0; | |
150 | PyObject * _argo3 = 0; | |
efc5f224 | 151 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
9c039d08 RD |
152 | char _ptemp[128]; |
153 | ||
154 | self = self; | |
efc5f224 | 155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStatusBar",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5)) |
9c039d08 | 156 | return NULL; |
1d99702e RD |
157 | if (_argo0) { |
158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p."); |
161 | return NULL; | |
162 | } | |
163 | } | |
1d99702e RD |
164 | if (_argo2) { |
165 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
166 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) { | |
9c039d08 RD |
167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStatusBar. Expected _wxPoint_p."); |
168 | return NULL; | |
169 | } | |
170 | } | |
1d99702e RD |
171 | if (_argo3) { |
172 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
173 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) { | |
9c039d08 RD |
174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxStatusBar. Expected _wxSize_p."); |
175 | return NULL; | |
176 | } | |
177 | } | |
cf694132 RD |
178 | { |
179 | wxPy_BEGIN_ALLOW_THREADS; | |
180 | _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
181 | ||
182 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
183 | } if (_result) { |
184 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p"); | |
185 | _resultobj = Py_BuildValue("s",_ptemp); | |
186 | } else { | |
187 | Py_INCREF(Py_None); | |
188 | _resultobj = Py_None; | |
189 | } | |
9c039d08 RD |
190 | return _resultobj; |
191 | } | |
192 | ||
193 | static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) { | |
194 | wxRect* rect= new wxRect; | |
195 | self->GetFieldRect(item, *rect); | |
196 | return rect; | |
197 | } | |
efc5f224 | 198 | static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
199 | PyObject * _resultobj; |
200 | wxRect * _result; | |
201 | wxStatusBar * _arg0; | |
202 | long _arg1; | |
1d99702e | 203 | PyObject * _argo0 = 0; |
efc5f224 | 204 | char *_kwnames[] = { "self","item", NULL }; |
9c039d08 RD |
205 | char _ptemp[128]; |
206 | ||
207 | self = self; | |
efc5f224 | 208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxStatusBar_GetFieldRect",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 209 | return NULL; |
1d99702e RD |
210 | if (_argo0) { |
211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p."); |
214 | return NULL; | |
215 | } | |
216 | } | |
cf694132 RD |
217 | { |
218 | wxPy_BEGIN_ALLOW_THREADS; | |
219 | _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1); | |
220 | ||
221 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
222 | } if (_result) { |
223 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
224 | _resultobj = Py_BuildValue("s",_ptemp); | |
225 | } else { | |
226 | Py_INCREF(Py_None); | |
227 | _resultobj = Py_None; | |
228 | } | |
9c039d08 RD |
229 | return _resultobj; |
230 | } | |
231 | ||
232 | #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount()) | |
efc5f224 | 233 | static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
234 | PyObject * _resultobj; |
235 | int _result; | |
236 | wxStatusBar * _arg0; | |
1d99702e | 237 | PyObject * _argo0 = 0; |
efc5f224 | 238 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
239 | |
240 | self = self; | |
efc5f224 | 241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetFieldsCount",_kwnames,&_argo0)) |
9c039d08 | 242 | return NULL; |
1d99702e RD |
243 | if (_argo0) { |
244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p."); |
247 | return NULL; | |
248 | } | |
249 | } | |
cf694132 RD |
250 | { |
251 | wxPy_BEGIN_ALLOW_THREADS; | |
252 | _result = (int )wxStatusBar_GetFieldsCount(_arg0); | |
253 | ||
254 | wxPy_END_ALLOW_THREADS; | |
255 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
256 | return _resultobj; |
257 | } | |
258 | ||
259 | #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0)) | |
efc5f224 | 260 | static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
261 | PyObject * _resultobj; |
262 | wxString * _result; | |
263 | wxStatusBar * _arg0; | |
1d99702e RD |
264 | int _arg1 = (int ) 0; |
265 | PyObject * _argo0 = 0; | |
efc5f224 | 266 | char *_kwnames[] = { "self","ir", NULL }; |
9c039d08 RD |
267 | |
268 | self = self; | |
efc5f224 | 269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_GetStatusText",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 270 | return NULL; |
1d99702e RD |
271 | if (_argo0) { |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p."); |
275 | return NULL; | |
276 | } | |
277 | } | |
9c039d08 | 278 | { |
cf694132 RD |
279 | wxPy_BEGIN_ALLOW_THREADS; |
280 | _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1)); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
283 | }{ | |
9c039d08 RD |
284 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
285 | } | |
286 | { | |
287 | delete _result; | |
288 | } | |
289 | return _resultobj; | |
290 | } | |
291 | ||
292 | #define wxStatusBar_DrawField(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawField(_swigarg0,_swigarg1)) | |
efc5f224 | 293 | static PyObject *_wrap_wxStatusBar_DrawField(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
294 | PyObject * _resultobj; |
295 | wxStatusBar * _arg0; | |
296 | wxDC * _arg1; | |
297 | int _arg2; | |
1d99702e RD |
298 | PyObject * _argo0 = 0; |
299 | PyObject * _argo1 = 0; | |
efc5f224 | 300 | char *_kwnames[] = { "self","dc","i", NULL }; |
9c039d08 RD |
301 | |
302 | self = self; | |
efc5f224 | 303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawField",_kwnames,&_argo0,&_argo1,&_arg2)) |
9c039d08 | 304 | return NULL; |
1d99702e RD |
305 | if (_argo0) { |
306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawField. Expected _wxStatusBar_p."); |
309 | return NULL; | |
310 | } | |
311 | } | |
1d99702e RD |
312 | if (_argo1) { |
313 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
314 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
9c039d08 RD |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawField. Expected _wxDC_p."); |
316 | return NULL; | |
317 | } | |
318 | } | |
cf694132 RD |
319 | { |
320 | wxPy_BEGIN_ALLOW_THREADS; | |
321 | wxStatusBar_DrawField(_arg0,*_arg1,_arg2); | |
322 | ||
323 | wxPy_END_ALLOW_THREADS; | |
324 | } Py_INCREF(Py_None); | |
9c039d08 RD |
325 | _resultobj = Py_None; |
326 | return _resultobj; | |
327 | } | |
328 | ||
329 | #define wxStatusBar_DrawFieldText(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawFieldText(_swigarg0,_swigarg1)) | |
efc5f224 | 330 | static PyObject *_wrap_wxStatusBar_DrawFieldText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
331 | PyObject * _resultobj; |
332 | wxStatusBar * _arg0; | |
333 | wxDC * _arg1; | |
334 | int _arg2; | |
1d99702e RD |
335 | PyObject * _argo0 = 0; |
336 | PyObject * _argo1 = 0; | |
efc5f224 | 337 | char *_kwnames[] = { "self","dc","i", NULL }; |
9c039d08 RD |
338 | |
339 | self = self; | |
efc5f224 | 340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawFieldText",_kwnames,&_argo0,&_argo1,&_arg2)) |
9c039d08 | 341 | return NULL; |
1d99702e RD |
342 | if (_argo0) { |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawFieldText. Expected _wxStatusBar_p."); |
346 | return NULL; | |
347 | } | |
348 | } | |
1d99702e RD |
349 | if (_argo1) { |
350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
9c039d08 RD |
352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawFieldText. Expected _wxDC_p."); |
353 | return NULL; | |
354 | } | |
355 | } | |
cf694132 RD |
356 | { |
357 | wxPy_BEGIN_ALLOW_THREADS; | |
358 | wxStatusBar_DrawFieldText(_arg0,*_arg1,_arg2); | |
359 | ||
360 | wxPy_END_ALLOW_THREADS; | |
361 | } Py_INCREF(Py_None); | |
9c039d08 RD |
362 | _resultobj = Py_None; |
363 | return _resultobj; | |
364 | } | |
365 | ||
366 | #define wxStatusBar_InitColours(_swigobj) (_swigobj->InitColours()) | |
efc5f224 | 367 | static PyObject *_wrap_wxStatusBar_InitColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
368 | PyObject * _resultobj; |
369 | wxStatusBar * _arg0; | |
1d99702e | 370 | PyObject * _argo0 = 0; |
efc5f224 | 371 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
372 | |
373 | self = self; | |
efc5f224 | 374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_InitColours",_kwnames,&_argo0)) |
9c039d08 | 375 | return NULL; |
1d99702e RD |
376 | if (_argo0) { |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_InitColours. Expected _wxStatusBar_p."); |
380 | return NULL; | |
381 | } | |
382 | } | |
cf694132 RD |
383 | { |
384 | wxPy_BEGIN_ALLOW_THREADS; | |
385 | wxStatusBar_InitColours(_arg0); | |
386 | ||
387 | wxPy_END_ALLOW_THREADS; | |
388 | } Py_INCREF(Py_None); | |
9c039d08 RD |
389 | _resultobj = Py_None; |
390 | return _resultobj; | |
391 | } | |
392 | ||
393 | #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0)) | |
efc5f224 | 394 | static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
395 | PyObject * _resultobj; |
396 | wxStatusBar * _arg0; | |
1d99702e RD |
397 | int _arg1 = (int ) 1; |
398 | PyObject * _argo0 = 0; | |
efc5f224 | 399 | char *_kwnames[] = { "self","number", NULL }; |
9c039d08 RD |
400 | |
401 | self = self; | |
efc5f224 | 402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_SetFieldsCount",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 403 | return NULL; |
1d99702e RD |
404 | if (_argo0) { |
405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p."); |
408 | return NULL; | |
409 | } | |
410 | } | |
cf694132 RD |
411 | { |
412 | wxPy_BEGIN_ALLOW_THREADS; | |
413 | wxStatusBar_SetFieldsCount(_arg0,_arg1); | |
414 | ||
415 | wxPy_END_ALLOW_THREADS; | |
416 | } Py_INCREF(Py_None); | |
9c039d08 RD |
417 | _resultobj = Py_None; |
418 | return _resultobj; | |
419 | } | |
420 | ||
421 | #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
efc5f224 | 422 | static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
423 | PyObject * _resultobj; |
424 | wxStatusBar * _arg0; | |
425 | wxString * _arg1; | |
1d99702e RD |
426 | int _arg2 = (int ) 0; |
427 | PyObject * _argo0 = 0; | |
9c039d08 | 428 | PyObject * _obj1 = 0; |
efc5f224 | 429 | char *_kwnames[] = { "self","text","i", NULL }; |
9c039d08 RD |
430 | |
431 | self = self; | |
efc5f224 | 432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxStatusBar_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2)) |
9c039d08 | 433 | return NULL; |
1d99702e RD |
434 | if (_argo0) { |
435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p."); |
438 | return NULL; | |
439 | } | |
440 | } | |
441 | { | |
442 | if (!PyString_Check(_obj1)) { | |
443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
444 | return NULL; | |
445 | } | |
cf694132 | 446 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
9c039d08 | 447 | } |
cf694132 RD |
448 | { |
449 | wxPy_BEGIN_ALLOW_THREADS; | |
450 | wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2); | |
451 | ||
452 | wxPy_END_ALLOW_THREADS; | |
453 | } Py_INCREF(Py_None); | |
9c039d08 RD |
454 | _resultobj = Py_None; |
455 | { | |
456 | if (_obj1) | |
457 | delete _arg1; | |
458 | } | |
459 | return _resultobj; | |
460 | } | |
461 | ||
462 | #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1)) | |
efc5f224 | 463 | static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
464 | PyObject * _resultobj; |
465 | wxStatusBar * _arg0; | |
466 | int _arg1; | |
467 | int * _arg2; | |
1d99702e | 468 | PyObject * _argo0 = 0; |
9c039d08 | 469 | PyObject * _obj2 = 0; |
efc5f224 | 470 | char *_kwnames[] = { "self","LIST", NULL }; |
9c039d08 RD |
471 | |
472 | self = self; | |
efc5f224 | 473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStatusBar_SetStatusWidths",_kwnames,&_argo0,&_obj2)) |
9c039d08 | 474 | return NULL; |
1d99702e RD |
475 | if (_argo0) { |
476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) { | |
9c039d08 RD |
478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p."); |
479 | return NULL; | |
480 | } | |
481 | } | |
482 | if (_obj2) | |
483 | { | |
484 | _arg2 = int_LIST_helper(_obj2); | |
485 | if (_arg2 == NULL) { | |
486 | return NULL; | |
487 | } | |
488 | } | |
489 | { | |
cf694132 RD |
490 | if (_obj2) { |
491 | _arg1 = PyList_Size(_obj2); | |
492 | } | |
493 | else { | |
494 | _arg1 = 0; | |
495 | } | |
9c039d08 | 496 | } |
cf694132 RD |
497 | { |
498 | wxPy_BEGIN_ALLOW_THREADS; | |
499 | wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2); | |
500 | ||
501 | wxPy_END_ALLOW_THREADS; | |
502 | } Py_INCREF(Py_None); | |
9c039d08 RD |
503 | _resultobj = Py_None; |
504 | { | |
505 | delete [] _arg2; | |
506 | } | |
507 | return _resultobj; | |
508 | } | |
509 | ||
510 | #define new_wxToolBarTool() (new wxToolBarTool()) | |
efc5f224 | 511 | static PyObject *_wrap_new_wxToolBarTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
512 | PyObject * _resultobj; |
513 | wxToolBarTool * _result; | |
efc5f224 | 514 | char *_kwnames[] = { NULL }; |
9c039d08 RD |
515 | char _ptemp[128]; |
516 | ||
517 | self = self; | |
efc5f224 | 518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxToolBarTool",_kwnames)) |
9c039d08 | 519 | return NULL; |
cf694132 RD |
520 | { |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | _result = (wxToolBarTool *)new_wxToolBarTool(); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
525 | } if (_result) { |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
9c039d08 RD |
532 | return _resultobj; |
533 | } | |
534 | ||
535 | #define delete_wxToolBarTool(_swigobj) (delete _swigobj) | |
efc5f224 | 536 | static PyObject *_wrap_delete_wxToolBarTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
537 | PyObject * _resultobj; |
538 | wxToolBarTool * _arg0; | |
1d99702e | 539 | PyObject * _argo0 = 0; |
efc5f224 | 540 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
541 | |
542 | self = self; | |
efc5f224 | 543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxToolBarTool",_kwnames,&_argo0)) |
9c039d08 | 544 | return NULL; |
1d99702e RD |
545 | if (_argo0) { |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxToolBarTool. Expected _wxToolBarTool_p."); |
549 | return NULL; | |
550 | } | |
551 | } | |
cf694132 RD |
552 | { |
553 | wxPy_BEGIN_ALLOW_THREADS; | |
554 | delete_wxToolBarTool(_arg0); | |
555 | ||
556 | wxPy_END_ALLOW_THREADS; | |
557 | } Py_INCREF(Py_None); | |
9c039d08 RD |
558 | _resultobj = Py_None; |
559 | return _resultobj; | |
560 | } | |
561 | ||
562 | #define wxToolBarTool_SetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
efc5f224 | 563 | static PyObject *_wrap_wxToolBarTool_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
564 | PyObject * _resultobj; |
565 | wxToolBarTool * _arg0; | |
566 | long _arg1; | |
567 | long _arg2; | |
1d99702e | 568 | PyObject * _argo0 = 0; |
efc5f224 | 569 | char *_kwnames[] = { "self","w","h", NULL }; |
9c039d08 RD |
570 | |
571 | self = self; | |
efc5f224 | 572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxToolBarTool_SetSize",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 573 | return NULL; |
1d99702e RD |
574 | if (_argo0) { |
575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_SetSize. Expected _wxToolBarTool_p."); |
578 | return NULL; | |
579 | } | |
580 | } | |
cf694132 RD |
581 | { |
582 | wxPy_BEGIN_ALLOW_THREADS; | |
583 | wxToolBarTool_SetSize(_arg0,_arg1,_arg2); | |
584 | ||
585 | wxPy_END_ALLOW_THREADS; | |
586 | } Py_INCREF(Py_None); | |
9c039d08 RD |
587 | _resultobj = Py_None; |
588 | return _resultobj; | |
589 | } | |
590 | ||
591 | #define wxToolBarTool_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
efc5f224 | 592 | static PyObject *_wrap_wxToolBarTool_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
593 | PyObject * _resultobj; |
594 | long _result; | |
595 | wxToolBarTool * _arg0; | |
1d99702e | 596 | PyObject * _argo0 = 0; |
efc5f224 | 597 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
598 | |
599 | self = self; | |
efc5f224 | 600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_GetWidth",_kwnames,&_argo0)) |
9c039d08 | 601 | return NULL; |
1d99702e RD |
602 | if (_argo0) { |
603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_GetWidth. Expected _wxToolBarTool_p."); |
606 | return NULL; | |
607 | } | |
608 | } | |
cf694132 RD |
609 | { |
610 | wxPy_BEGIN_ALLOW_THREADS; | |
611 | _result = (long )wxToolBarTool_GetWidth(_arg0); | |
612 | ||
613 | wxPy_END_ALLOW_THREADS; | |
614 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
615 | return _resultobj; |
616 | } | |
617 | ||
618 | #define wxToolBarTool_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
efc5f224 | 619 | static PyObject *_wrap_wxToolBarTool_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
620 | PyObject * _resultobj; |
621 | long _result; | |
622 | wxToolBarTool * _arg0; | |
1d99702e | 623 | PyObject * _argo0 = 0; |
efc5f224 | 624 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
625 | |
626 | self = self; | |
efc5f224 | 627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_GetHeight",_kwnames,&_argo0)) |
9c039d08 | 628 | return NULL; |
1d99702e RD |
629 | if (_argo0) { |
630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_GetHeight. Expected _wxToolBarTool_p."); |
633 | return NULL; | |
634 | } | |
635 | } | |
cf694132 RD |
636 | { |
637 | wxPy_BEGIN_ALLOW_THREADS; | |
638 | _result = (long )wxToolBarTool_GetHeight(_arg0); | |
639 | ||
640 | wxPy_END_ALLOW_THREADS; | |
641 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
642 | return _resultobj; |
643 | } | |
644 | ||
af309447 | 645 | #define wxToolBarTool_m_toolStyle_set(_swigobj,_swigval) (_swigobj->m_toolStyle = _swigval,_swigval) |
efc5f224 | 646 | static PyObject *_wrap_wxToolBarTool_m_toolStyle_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
647 | PyObject * _resultobj; |
648 | int _result; | |
649 | wxToolBarTool * _arg0; | |
650 | int _arg1; | |
1d99702e | 651 | PyObject * _argo0 = 0; |
efc5f224 | 652 | char *_kwnames[] = { "self","m_toolStyle", NULL }; |
af309447 RD |
653 | |
654 | self = self; | |
efc5f224 | 655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_toolStyle_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 656 | return NULL; |
1d99702e RD |
657 | if (_argo0) { |
658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toolStyle_set. Expected _wxToolBarTool_p."); |
661 | return NULL; | |
662 | } | |
663 | } | |
cf694132 RD |
664 | { |
665 | wxPy_BEGIN_ALLOW_THREADS; | |
666 | _result = (int )wxToolBarTool_m_toolStyle_set(_arg0,_arg1); | |
667 | ||
668 | wxPy_END_ALLOW_THREADS; | |
669 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
670 | return _resultobj; |
671 | } | |
672 | ||
9c039d08 | 673 | #define wxToolBarTool_m_toolStyle_get(_swigobj) ((int ) _swigobj->m_toolStyle) |
efc5f224 | 674 | static PyObject *_wrap_wxToolBarTool_m_toolStyle_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
675 | PyObject * _resultobj; |
676 | int _result; | |
677 | wxToolBarTool * _arg0; | |
1d99702e | 678 | PyObject * _argo0 = 0; |
efc5f224 | 679 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
680 | |
681 | self = self; | |
efc5f224 | 682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_toolStyle_get",_kwnames,&_argo0)) |
9c039d08 | 683 | return NULL; |
1d99702e RD |
684 | if (_argo0) { |
685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toolStyle_get. Expected _wxToolBarTool_p."); |
688 | return NULL; | |
689 | } | |
690 | } | |
cf694132 RD |
691 | { |
692 | wxPy_BEGIN_ALLOW_THREADS; | |
693 | _result = (int )wxToolBarTool_m_toolStyle_get(_arg0); | |
694 | ||
695 | wxPy_END_ALLOW_THREADS; | |
696 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
697 | return _resultobj; |
698 | } | |
699 | ||
af309447 | 700 | #define wxToolBarTool_m_clientData_set(_swigobj,_swigval) (_swigobj->m_clientData = _swigval,_swigval) |
efc5f224 | 701 | static PyObject *_wrap_wxToolBarTool_m_clientData_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
702 | PyObject * _resultobj; |
703 | wxObject * _result; | |
704 | wxToolBarTool * _arg0; | |
705 | wxObject * _arg1; | |
1d99702e RD |
706 | PyObject * _argo0 = 0; |
707 | PyObject * _argo1 = 0; | |
efc5f224 | 708 | char *_kwnames[] = { "self","m_clientData", NULL }; |
af309447 RD |
709 | char _ptemp[128]; |
710 | ||
711 | self = self; | |
efc5f224 | 712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarTool_m_clientData_set",_kwnames,&_argo0,&_argo1)) |
af309447 | 713 | return NULL; |
1d99702e RD |
714 | if (_argo0) { |
715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_clientData_set. Expected _wxToolBarTool_p."); |
718 | return NULL; | |
719 | } | |
720 | } | |
1d99702e RD |
721 | if (_argo1) { |
722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxObject_p")) { | |
af309447 RD |
724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_clientData_set. Expected _wxObject_p."); |
725 | return NULL; | |
726 | } | |
727 | } | |
cf694132 RD |
728 | { |
729 | wxPy_BEGIN_ALLOW_THREADS; | |
730 | _result = (wxObject *)wxToolBarTool_m_clientData_set(_arg0,_arg1); | |
731 | ||
732 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
733 | } if (_result) { |
734 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p"); | |
735 | _resultobj = Py_BuildValue("s",_ptemp); | |
736 | } else { | |
737 | Py_INCREF(Py_None); | |
738 | _resultobj = Py_None; | |
739 | } | |
af309447 RD |
740 | return _resultobj; |
741 | } | |
742 | ||
9c039d08 | 743 | #define wxToolBarTool_m_clientData_get(_swigobj) ((wxObject *) _swigobj->m_clientData) |
efc5f224 | 744 | static PyObject *_wrap_wxToolBarTool_m_clientData_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
745 | PyObject * _resultobj; |
746 | wxObject * _result; | |
747 | wxToolBarTool * _arg0; | |
1d99702e | 748 | PyObject * _argo0 = 0; |
efc5f224 | 749 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
750 | char _ptemp[128]; |
751 | ||
752 | self = self; | |
efc5f224 | 753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_clientData_get",_kwnames,&_argo0)) |
9c039d08 | 754 | return NULL; |
1d99702e RD |
755 | if (_argo0) { |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_clientData_get. Expected _wxToolBarTool_p."); |
759 | return NULL; | |
760 | } | |
761 | } | |
cf694132 RD |
762 | { |
763 | wxPy_BEGIN_ALLOW_THREADS; | |
764 | _result = (wxObject *)wxToolBarTool_m_clientData_get(_arg0); | |
765 | ||
766 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
767 | } if (_result) { |
768 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p"); | |
769 | _resultobj = Py_BuildValue("s",_ptemp); | |
770 | } else { | |
771 | Py_INCREF(Py_None); | |
772 | _resultobj = Py_None; | |
773 | } | |
9c039d08 RD |
774 | return _resultobj; |
775 | } | |
776 | ||
af309447 | 777 | #define wxToolBarTool_m_index_set(_swigobj,_swigval) (_swigobj->m_index = _swigval,_swigval) |
efc5f224 | 778 | static PyObject *_wrap_wxToolBarTool_m_index_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
779 | PyObject * _resultobj; |
780 | int _result; | |
781 | wxToolBarTool * _arg0; | |
782 | int _arg1; | |
1d99702e | 783 | PyObject * _argo0 = 0; |
efc5f224 | 784 | char *_kwnames[] = { "self","m_index", NULL }; |
af309447 RD |
785 | |
786 | self = self; | |
efc5f224 | 787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_index_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 788 | return NULL; |
1d99702e RD |
789 | if (_argo0) { |
790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_index_set. Expected _wxToolBarTool_p."); |
793 | return NULL; | |
794 | } | |
795 | } | |
cf694132 RD |
796 | { |
797 | wxPy_BEGIN_ALLOW_THREADS; | |
798 | _result = (int )wxToolBarTool_m_index_set(_arg0,_arg1); | |
799 | ||
800 | wxPy_END_ALLOW_THREADS; | |
801 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
802 | return _resultobj; |
803 | } | |
804 | ||
9c039d08 | 805 | #define wxToolBarTool_m_index_get(_swigobj) ((int ) _swigobj->m_index) |
efc5f224 | 806 | static PyObject *_wrap_wxToolBarTool_m_index_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
807 | PyObject * _resultobj; |
808 | int _result; | |
809 | wxToolBarTool * _arg0; | |
1d99702e | 810 | PyObject * _argo0 = 0; |
efc5f224 | 811 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
812 | |
813 | self = self; | |
efc5f224 | 814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_index_get",_kwnames,&_argo0)) |
9c039d08 | 815 | return NULL; |
1d99702e RD |
816 | if (_argo0) { |
817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_index_get. Expected _wxToolBarTool_p."); |
820 | return NULL; | |
821 | } | |
822 | } | |
cf694132 RD |
823 | { |
824 | wxPy_BEGIN_ALLOW_THREADS; | |
825 | _result = (int )wxToolBarTool_m_index_get(_arg0); | |
826 | ||
827 | wxPy_END_ALLOW_THREADS; | |
828 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
829 | return _resultobj; |
830 | } | |
831 | ||
af309447 | 832 | #define wxToolBarTool_m_x_set(_swigobj,_swigval) (_swigobj->m_x = _swigval,_swigval) |
efc5f224 | 833 | static PyObject *_wrap_wxToolBarTool_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
834 | PyObject * _resultobj; |
835 | long _result; | |
836 | wxToolBarTool * _arg0; | |
837 | long _arg1; | |
1d99702e | 838 | PyObject * _argo0 = 0; |
efc5f224 | 839 | char *_kwnames[] = { "self","m_x", NULL }; |
af309447 RD |
840 | |
841 | self = self; | |
efc5f224 | 842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxToolBarTool_m_x_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 843 | return NULL; |
1d99702e RD |
844 | if (_argo0) { |
845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_x_set. Expected _wxToolBarTool_p."); |
848 | return NULL; | |
849 | } | |
850 | } | |
cf694132 RD |
851 | { |
852 | wxPy_BEGIN_ALLOW_THREADS; | |
853 | _result = (long )wxToolBarTool_m_x_set(_arg0,_arg1); | |
854 | ||
855 | wxPy_END_ALLOW_THREADS; | |
856 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
857 | return _resultobj; |
858 | } | |
859 | ||
9c039d08 | 860 | #define wxToolBarTool_m_x_get(_swigobj) ((long ) _swigobj->m_x) |
efc5f224 | 861 | static PyObject *_wrap_wxToolBarTool_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
862 | PyObject * _resultobj; |
863 | long _result; | |
864 | wxToolBarTool * _arg0; | |
1d99702e | 865 | PyObject * _argo0 = 0; |
efc5f224 | 866 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
867 | |
868 | self = self; | |
efc5f224 | 869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_x_get",_kwnames,&_argo0)) |
9c039d08 | 870 | return NULL; |
1d99702e RD |
871 | if (_argo0) { |
872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_x_get. Expected _wxToolBarTool_p."); |
875 | return NULL; | |
876 | } | |
877 | } | |
cf694132 RD |
878 | { |
879 | wxPy_BEGIN_ALLOW_THREADS; | |
880 | _result = (long )wxToolBarTool_m_x_get(_arg0); | |
881 | ||
882 | wxPy_END_ALLOW_THREADS; | |
883 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
884 | return _resultobj; |
885 | } | |
886 | ||
af309447 | 887 | #define wxToolBarTool_m_y_set(_swigobj,_swigval) (_swigobj->m_y = _swigval,_swigval) |
efc5f224 | 888 | static PyObject *_wrap_wxToolBarTool_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
889 | PyObject * _resultobj; |
890 | long _result; | |
891 | wxToolBarTool * _arg0; | |
892 | long _arg1; | |
1d99702e | 893 | PyObject * _argo0 = 0; |
efc5f224 | 894 | char *_kwnames[] = { "self","m_y", NULL }; |
af309447 RD |
895 | |
896 | self = self; | |
efc5f224 | 897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxToolBarTool_m_y_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 898 | return NULL; |
1d99702e RD |
899 | if (_argo0) { |
900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_y_set. Expected _wxToolBarTool_p."); |
903 | return NULL; | |
904 | } | |
905 | } | |
cf694132 RD |
906 | { |
907 | wxPy_BEGIN_ALLOW_THREADS; | |
908 | _result = (long )wxToolBarTool_m_y_set(_arg0,_arg1); | |
909 | ||
910 | wxPy_END_ALLOW_THREADS; | |
911 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
912 | return _resultobj; |
913 | } | |
914 | ||
9c039d08 | 915 | #define wxToolBarTool_m_y_get(_swigobj) ((long ) _swigobj->m_y) |
efc5f224 | 916 | static PyObject *_wrap_wxToolBarTool_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
917 | PyObject * _resultobj; |
918 | long _result; | |
919 | wxToolBarTool * _arg0; | |
1d99702e | 920 | PyObject * _argo0 = 0; |
efc5f224 | 921 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
922 | |
923 | self = self; | |
efc5f224 | 924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_y_get",_kwnames,&_argo0)) |
9c039d08 | 925 | return NULL; |
1d99702e RD |
926 | if (_argo0) { |
927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_y_get. Expected _wxToolBarTool_p."); |
930 | return NULL; | |
931 | } | |
932 | } | |
cf694132 RD |
933 | { |
934 | wxPy_BEGIN_ALLOW_THREADS; | |
935 | _result = (long )wxToolBarTool_m_y_get(_arg0); | |
936 | ||
937 | wxPy_END_ALLOW_THREADS; | |
938 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
939 | return _resultobj; |
940 | } | |
941 | ||
af309447 | 942 | #define wxToolBarTool_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
efc5f224 | 943 | static PyObject *_wrap_wxToolBarTool_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
944 | PyObject * _resultobj; |
945 | long _result; | |
946 | wxToolBarTool * _arg0; | |
947 | long _arg1; | |
1d99702e | 948 | PyObject * _argo0 = 0; |
efc5f224 | 949 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
950 | |
951 | self = self; | |
efc5f224 | 952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxToolBarTool_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 953 | return NULL; |
1d99702e RD |
954 | if (_argo0) { |
955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_width_set. Expected _wxToolBarTool_p."); |
958 | return NULL; | |
959 | } | |
960 | } | |
cf694132 RD |
961 | { |
962 | wxPy_BEGIN_ALLOW_THREADS; | |
963 | _result = (long )wxToolBarTool_m_width_set(_arg0,_arg1); | |
964 | ||
965 | wxPy_END_ALLOW_THREADS; | |
966 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
967 | return _resultobj; |
968 | } | |
969 | ||
9c039d08 | 970 | #define wxToolBarTool_m_width_get(_swigobj) ((long ) _swigobj->m_width) |
efc5f224 | 971 | static PyObject *_wrap_wxToolBarTool_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
972 | PyObject * _resultobj; |
973 | long _result; | |
974 | wxToolBarTool * _arg0; | |
1d99702e | 975 | PyObject * _argo0 = 0; |
efc5f224 | 976 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
977 | |
978 | self = self; | |
efc5f224 | 979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_width_get",_kwnames,&_argo0)) |
9c039d08 | 980 | return NULL; |
1d99702e RD |
981 | if (_argo0) { |
982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_width_get. Expected _wxToolBarTool_p."); |
985 | return NULL; | |
986 | } | |
987 | } | |
cf694132 RD |
988 | { |
989 | wxPy_BEGIN_ALLOW_THREADS; | |
990 | _result = (long )wxToolBarTool_m_width_get(_arg0); | |
991 | ||
992 | wxPy_END_ALLOW_THREADS; | |
993 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
994 | return _resultobj; |
995 | } | |
996 | ||
af309447 | 997 | #define wxToolBarTool_m_height_set(_swigobj,_swigval) (_swigobj->m_height = _swigval,_swigval) |
efc5f224 | 998 | static PyObject *_wrap_wxToolBarTool_m_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
999 | PyObject * _resultobj; |
1000 | long _result; | |
1001 | wxToolBarTool * _arg0; | |
1002 | long _arg1; | |
1d99702e | 1003 | PyObject * _argo0 = 0; |
efc5f224 | 1004 | char *_kwnames[] = { "self","m_height", NULL }; |
af309447 RD |
1005 | |
1006 | self = self; | |
efc5f224 | 1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxToolBarTool_m_height_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1008 | return NULL; |
1d99702e RD |
1009 | if (_argo0) { |
1010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_height_set. Expected _wxToolBarTool_p."); |
1013 | return NULL; | |
1014 | } | |
1015 | } | |
cf694132 RD |
1016 | { |
1017 | wxPy_BEGIN_ALLOW_THREADS; | |
1018 | _result = (long )wxToolBarTool_m_height_set(_arg0,_arg1); | |
1019 | ||
1020 | wxPy_END_ALLOW_THREADS; | |
1021 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
1022 | return _resultobj; |
1023 | } | |
1024 | ||
9c039d08 | 1025 | #define wxToolBarTool_m_height_get(_swigobj) ((long ) _swigobj->m_height) |
efc5f224 | 1026 | static PyObject *_wrap_wxToolBarTool_m_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1027 | PyObject * _resultobj; |
1028 | long _result; | |
1029 | wxToolBarTool * _arg0; | |
1d99702e | 1030 | PyObject * _argo0 = 0; |
efc5f224 | 1031 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1032 | |
1033 | self = self; | |
efc5f224 | 1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_height_get",_kwnames,&_argo0)) |
9c039d08 | 1035 | return NULL; |
1d99702e RD |
1036 | if (_argo0) { |
1037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_height_get. Expected _wxToolBarTool_p."); |
1040 | return NULL; | |
1041 | } | |
1042 | } | |
cf694132 RD |
1043 | { |
1044 | wxPy_BEGIN_ALLOW_THREADS; | |
1045 | _result = (long )wxToolBarTool_m_height_get(_arg0); | |
1046 | ||
1047 | wxPy_END_ALLOW_THREADS; | |
1048 | } _resultobj = Py_BuildValue("l",_result); | |
9c039d08 RD |
1049 | return _resultobj; |
1050 | } | |
1051 | ||
af309447 | 1052 | #define wxToolBarTool_m_toggleState_set(_swigobj,_swigval) (_swigobj->m_toggleState = _swigval,_swigval) |
efc5f224 | 1053 | static PyObject *_wrap_wxToolBarTool_m_toggleState_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1054 | PyObject * _resultobj; |
1055 | bool _result; | |
1056 | wxToolBarTool * _arg0; | |
1057 | bool _arg1; | |
1d99702e | 1058 | PyObject * _argo0 = 0; |
af309447 | 1059 | int tempbool1; |
efc5f224 | 1060 | char *_kwnames[] = { "self","m_toggleState", NULL }; |
af309447 RD |
1061 | |
1062 | self = self; | |
efc5f224 | 1063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_toggleState_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1064 | return NULL; |
1d99702e RD |
1065 | if (_argo0) { |
1066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toggleState_set. Expected _wxToolBarTool_p."); |
1069 | return NULL; | |
1070 | } | |
1071 | } | |
1072 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1073 | { |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | _result = (bool )wxToolBarTool_m_toggleState_set(_arg0,_arg1); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
1078 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1079 | return _resultobj; |
1080 | } | |
1081 | ||
9c039d08 | 1082 | #define wxToolBarTool_m_toggleState_get(_swigobj) ((bool ) _swigobj->m_toggleState) |
efc5f224 | 1083 | static PyObject *_wrap_wxToolBarTool_m_toggleState_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1084 | PyObject * _resultobj; |
1085 | bool _result; | |
1086 | wxToolBarTool * _arg0; | |
1d99702e | 1087 | PyObject * _argo0 = 0; |
efc5f224 | 1088 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1089 | |
1090 | self = self; | |
efc5f224 | 1091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_toggleState_get",_kwnames,&_argo0)) |
9c039d08 | 1092 | return NULL; |
1d99702e RD |
1093 | if (_argo0) { |
1094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toggleState_get. Expected _wxToolBarTool_p."); |
1097 | return NULL; | |
1098 | } | |
1099 | } | |
cf694132 RD |
1100 | { |
1101 | wxPy_BEGIN_ALLOW_THREADS; | |
1102 | _result = (bool )wxToolBarTool_m_toggleState_get(_arg0); | |
1103 | ||
1104 | wxPy_END_ALLOW_THREADS; | |
1105 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
1106 | return _resultobj; |
1107 | } | |
1108 | ||
af309447 | 1109 | #define wxToolBarTool_m_isToggle_set(_swigobj,_swigval) (_swigobj->m_isToggle = _swigval,_swigval) |
efc5f224 | 1110 | static PyObject *_wrap_wxToolBarTool_m_isToggle_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1111 | PyObject * _resultobj; |
1112 | bool _result; | |
1113 | wxToolBarTool * _arg0; | |
1114 | bool _arg1; | |
1d99702e | 1115 | PyObject * _argo0 = 0; |
af309447 | 1116 | int tempbool1; |
efc5f224 | 1117 | char *_kwnames[] = { "self","m_isToggle", NULL }; |
af309447 RD |
1118 | |
1119 | self = self; | |
efc5f224 | 1120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_isToggle_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1121 | return NULL; |
1d99702e RD |
1122 | if (_argo0) { |
1123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isToggle_set. Expected _wxToolBarTool_p."); |
1126 | return NULL; | |
1127 | } | |
1128 | } | |
1129 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1130 | { |
1131 | wxPy_BEGIN_ALLOW_THREADS; | |
1132 | _result = (bool )wxToolBarTool_m_isToggle_set(_arg0,_arg1); | |
1133 | ||
1134 | wxPy_END_ALLOW_THREADS; | |
1135 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1136 | return _resultobj; |
1137 | } | |
1138 | ||
9c039d08 | 1139 | #define wxToolBarTool_m_isToggle_get(_swigobj) ((bool ) _swigobj->m_isToggle) |
efc5f224 | 1140 | static PyObject *_wrap_wxToolBarTool_m_isToggle_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1141 | PyObject * _resultobj; |
1142 | bool _result; | |
1143 | wxToolBarTool * _arg0; | |
1d99702e | 1144 | PyObject * _argo0 = 0; |
efc5f224 | 1145 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1146 | |
1147 | self = self; | |
efc5f224 | 1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_isToggle_get",_kwnames,&_argo0)) |
9c039d08 | 1149 | return NULL; |
1d99702e RD |
1150 | if (_argo0) { |
1151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isToggle_get. Expected _wxToolBarTool_p."); |
1154 | return NULL; | |
1155 | } | |
1156 | } | |
cf694132 RD |
1157 | { |
1158 | wxPy_BEGIN_ALLOW_THREADS; | |
1159 | _result = (bool )wxToolBarTool_m_isToggle_get(_arg0); | |
1160 | ||
1161 | wxPy_END_ALLOW_THREADS; | |
1162 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
1163 | return _resultobj; |
1164 | } | |
1165 | ||
af309447 | 1166 | #define wxToolBarTool_m_deleteSecondBitmap_set(_swigobj,_swigval) (_swigobj->m_deleteSecondBitmap = _swigval,_swigval) |
efc5f224 | 1167 | static PyObject *_wrap_wxToolBarTool_m_deleteSecondBitmap_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1168 | PyObject * _resultobj; |
1169 | bool _result; | |
1170 | wxToolBarTool * _arg0; | |
1171 | bool _arg1; | |
1d99702e | 1172 | PyObject * _argo0 = 0; |
af309447 | 1173 | int tempbool1; |
efc5f224 | 1174 | char *_kwnames[] = { "self","m_deleteSecondBitmap", NULL }; |
af309447 RD |
1175 | |
1176 | self = self; | |
efc5f224 | 1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_deleteSecondBitmap_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1178 | return NULL; |
1d99702e RD |
1179 | if (_argo0) { |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_deleteSecondBitmap_set. Expected _wxToolBarTool_p."); |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
1186 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1187 | { |
1188 | wxPy_BEGIN_ALLOW_THREADS; | |
1189 | _result = (bool )wxToolBarTool_m_deleteSecondBitmap_set(_arg0,_arg1); | |
1190 | ||
1191 | wxPy_END_ALLOW_THREADS; | |
1192 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1193 | return _resultobj; |
1194 | } | |
1195 | ||
9c039d08 | 1196 | #define wxToolBarTool_m_deleteSecondBitmap_get(_swigobj) ((bool ) _swigobj->m_deleteSecondBitmap) |
efc5f224 | 1197 | static PyObject *_wrap_wxToolBarTool_m_deleteSecondBitmap_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1198 | PyObject * _resultobj; |
1199 | bool _result; | |
1200 | wxToolBarTool * _arg0; | |
1d99702e | 1201 | PyObject * _argo0 = 0; |
efc5f224 | 1202 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1203 | |
1204 | self = self; | |
efc5f224 | 1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_deleteSecondBitmap_get",_kwnames,&_argo0)) |
9c039d08 | 1206 | return NULL; |
1d99702e RD |
1207 | if (_argo0) { |
1208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_deleteSecondBitmap_get. Expected _wxToolBarTool_p."); |
1211 | return NULL; | |
1212 | } | |
1213 | } | |
cf694132 RD |
1214 | { |
1215 | wxPy_BEGIN_ALLOW_THREADS; | |
1216 | _result = (bool )wxToolBarTool_m_deleteSecondBitmap_get(_arg0); | |
1217 | ||
1218 | wxPy_END_ALLOW_THREADS; | |
1219 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
1220 | return _resultobj; |
1221 | } | |
1222 | ||
af309447 | 1223 | #define wxToolBarTool_m_enabled_set(_swigobj,_swigval) (_swigobj->m_enabled = _swigval,_swigval) |
efc5f224 | 1224 | static PyObject *_wrap_wxToolBarTool_m_enabled_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1225 | PyObject * _resultobj; |
1226 | bool _result; | |
1227 | wxToolBarTool * _arg0; | |
1228 | bool _arg1; | |
1d99702e | 1229 | PyObject * _argo0 = 0; |
af309447 | 1230 | int tempbool1; |
efc5f224 | 1231 | char *_kwnames[] = { "self","m_enabled", NULL }; |
af309447 RD |
1232 | |
1233 | self = self; | |
efc5f224 | 1234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_enabled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1235 | return NULL; |
1d99702e RD |
1236 | if (_argo0) { |
1237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_enabled_set. Expected _wxToolBarTool_p."); |
1240 | return NULL; | |
1241 | } | |
1242 | } | |
1243 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1244 | { |
1245 | wxPy_BEGIN_ALLOW_THREADS; | |
1246 | _result = (bool )wxToolBarTool_m_enabled_set(_arg0,_arg1); | |
1247 | ||
1248 | wxPy_END_ALLOW_THREADS; | |
1249 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1250 | return _resultobj; |
1251 | } | |
1252 | ||
9c039d08 | 1253 | #define wxToolBarTool_m_enabled_get(_swigobj) ((bool ) _swigobj->m_enabled) |
efc5f224 | 1254 | static PyObject *_wrap_wxToolBarTool_m_enabled_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1255 | PyObject * _resultobj; |
1256 | bool _result; | |
1257 | wxToolBarTool * _arg0; | |
1d99702e | 1258 | PyObject * _argo0 = 0; |
efc5f224 | 1259 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1260 | |
1261 | self = self; | |
efc5f224 | 1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_enabled_get",_kwnames,&_argo0)) |
9c039d08 | 1263 | return NULL; |
1d99702e RD |
1264 | if (_argo0) { |
1265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_enabled_get. Expected _wxToolBarTool_p."); |
1268 | return NULL; | |
1269 | } | |
1270 | } | |
cf694132 RD |
1271 | { |
1272 | wxPy_BEGIN_ALLOW_THREADS; | |
1273 | _result = (bool )wxToolBarTool_m_enabled_get(_arg0); | |
1274 | ||
1275 | wxPy_END_ALLOW_THREADS; | |
1276 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
1277 | return _resultobj; |
1278 | } | |
1279 | ||
af309447 | 1280 | #define wxToolBarTool_m_bitmap1_set(_swigobj,_swigval) (_swigobj->m_bitmap1 = *(_swigval),_swigval) |
efc5f224 | 1281 | static PyObject *_wrap_wxToolBarTool_m_bitmap1_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1282 | PyObject * _resultobj; |
1283 | wxBitmap * _result; | |
1284 | wxToolBarTool * _arg0; | |
1285 | wxBitmap * _arg1; | |
1d99702e RD |
1286 | PyObject * _argo0 = 0; |
1287 | PyObject * _argo1 = 0; | |
efc5f224 | 1288 | char *_kwnames[] = { "self","m_bitmap1", NULL }; |
af309447 RD |
1289 | char _ptemp[128]; |
1290 | ||
1291 | self = self; | |
efc5f224 | 1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarTool_m_bitmap1_set",_kwnames,&_argo0,&_argo1)) |
af309447 | 1293 | return NULL; |
1d99702e RD |
1294 | if (_argo0) { |
1295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap1_set. Expected _wxToolBarTool_p."); |
1298 | return NULL; | |
1299 | } | |
1300 | } | |
1d99702e RD |
1301 | if (_argo1) { |
1302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
1304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_bitmap1_set. Expected _wxBitmap_p."); |
1305 | return NULL; | |
1306 | } | |
1307 | } | |
cf694132 RD |
1308 | { |
1309 | wxPy_BEGIN_ALLOW_THREADS; | |
1310 | _result = (wxBitmap *)wxToolBarTool_m_bitmap1_set(_arg0,_arg1); | |
1311 | ||
1312 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1313 | } if (_result) { |
1314 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1315 | _resultobj = Py_BuildValue("s",_ptemp); | |
1316 | } else { | |
1317 | Py_INCREF(Py_None); | |
1318 | _resultobj = Py_None; | |
1319 | } | |
af309447 RD |
1320 | return _resultobj; |
1321 | } | |
1322 | ||
9c039d08 | 1323 | #define wxToolBarTool_m_bitmap1_get(_swigobj) (&_swigobj->m_bitmap1) |
efc5f224 | 1324 | static PyObject *_wrap_wxToolBarTool_m_bitmap1_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1325 | PyObject * _resultobj; |
1326 | wxBitmap * _result; | |
1327 | wxToolBarTool * _arg0; | |
1d99702e | 1328 | PyObject * _argo0 = 0; |
efc5f224 | 1329 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1330 | char _ptemp[128]; |
1331 | ||
1332 | self = self; | |
efc5f224 | 1333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_bitmap1_get",_kwnames,&_argo0)) |
9c039d08 | 1334 | return NULL; |
1d99702e RD |
1335 | if (_argo0) { |
1336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap1_get. Expected _wxToolBarTool_p."); |
1339 | return NULL; | |
1340 | } | |
1341 | } | |
cf694132 RD |
1342 | { |
1343 | wxPy_BEGIN_ALLOW_THREADS; | |
1344 | _result = (wxBitmap *)wxToolBarTool_m_bitmap1_get(_arg0); | |
1345 | ||
1346 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1347 | } if (_result) { |
1348 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1349 | _resultobj = Py_BuildValue("s",_ptemp); | |
1350 | } else { | |
1351 | Py_INCREF(Py_None); | |
1352 | _resultobj = Py_None; | |
1353 | } | |
9c039d08 RD |
1354 | return _resultobj; |
1355 | } | |
1356 | ||
af309447 | 1357 | #define wxToolBarTool_m_bitmap2_set(_swigobj,_swigval) (_swigobj->m_bitmap2 = *(_swigval),_swigval) |
efc5f224 | 1358 | static PyObject *_wrap_wxToolBarTool_m_bitmap2_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1359 | PyObject * _resultobj; |
1360 | wxBitmap * _result; | |
1361 | wxToolBarTool * _arg0; | |
1362 | wxBitmap * _arg1; | |
1d99702e RD |
1363 | PyObject * _argo0 = 0; |
1364 | PyObject * _argo1 = 0; | |
efc5f224 | 1365 | char *_kwnames[] = { "self","m_bitmap2", NULL }; |
af309447 RD |
1366 | char _ptemp[128]; |
1367 | ||
1368 | self = self; | |
efc5f224 | 1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarTool_m_bitmap2_set",_kwnames,&_argo0,&_argo1)) |
af309447 | 1370 | return NULL; |
1d99702e RD |
1371 | if (_argo0) { |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap2_set. Expected _wxToolBarTool_p."); |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1d99702e RD |
1378 | if (_argo1) { |
1379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
1381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_bitmap2_set. Expected _wxBitmap_p."); |
1382 | return NULL; | |
1383 | } | |
1384 | } | |
cf694132 RD |
1385 | { |
1386 | wxPy_BEGIN_ALLOW_THREADS; | |
1387 | _result = (wxBitmap *)wxToolBarTool_m_bitmap2_set(_arg0,_arg1); | |
1388 | ||
1389 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1390 | } if (_result) { |
1391 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1392 | _resultobj = Py_BuildValue("s",_ptemp); | |
1393 | } else { | |
1394 | Py_INCREF(Py_None); | |
1395 | _resultobj = Py_None; | |
1396 | } | |
af309447 RD |
1397 | return _resultobj; |
1398 | } | |
1399 | ||
9c039d08 | 1400 | #define wxToolBarTool_m_bitmap2_get(_swigobj) (&_swigobj->m_bitmap2) |
efc5f224 | 1401 | static PyObject *_wrap_wxToolBarTool_m_bitmap2_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1402 | PyObject * _resultobj; |
1403 | wxBitmap * _result; | |
1404 | wxToolBarTool * _arg0; | |
1d99702e | 1405 | PyObject * _argo0 = 0; |
efc5f224 | 1406 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1407 | char _ptemp[128]; |
1408 | ||
1409 | self = self; | |
efc5f224 | 1410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_bitmap2_get",_kwnames,&_argo0)) |
9c039d08 | 1411 | return NULL; |
1d99702e RD |
1412 | if (_argo0) { |
1413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap2_get. Expected _wxToolBarTool_p."); |
1416 | return NULL; | |
1417 | } | |
1418 | } | |
cf694132 RD |
1419 | { |
1420 | wxPy_BEGIN_ALLOW_THREADS; | |
1421 | _result = (wxBitmap *)wxToolBarTool_m_bitmap2_get(_arg0); | |
1422 | ||
1423 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1424 | } if (_result) { |
1425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1426 | _resultobj = Py_BuildValue("s",_ptemp); | |
1427 | } else { | |
1428 | Py_INCREF(Py_None); | |
1429 | _resultobj = Py_None; | |
1430 | } | |
9c039d08 RD |
1431 | return _resultobj; |
1432 | } | |
1433 | ||
af309447 | 1434 | #define wxToolBarTool_m_isMenuCommand_set(_swigobj,_swigval) (_swigobj->m_isMenuCommand = _swigval,_swigval) |
efc5f224 | 1435 | static PyObject *_wrap_wxToolBarTool_m_isMenuCommand_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1436 | PyObject * _resultobj; |
1437 | bool _result; | |
1438 | wxToolBarTool * _arg0; | |
1439 | bool _arg1; | |
1d99702e | 1440 | PyObject * _argo0 = 0; |
af309447 | 1441 | int tempbool1; |
efc5f224 | 1442 | char *_kwnames[] = { "self","m_isMenuCommand", NULL }; |
af309447 RD |
1443 | |
1444 | self = self; | |
efc5f224 | 1445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarTool_m_isMenuCommand_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1446 | return NULL; |
1d99702e RD |
1447 | if (_argo0) { |
1448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isMenuCommand_set. Expected _wxToolBarTool_p."); |
1451 | return NULL; | |
1452 | } | |
1453 | } | |
1454 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1455 | { |
1456 | wxPy_BEGIN_ALLOW_THREADS; | |
1457 | _result = (bool )wxToolBarTool_m_isMenuCommand_set(_arg0,_arg1); | |
1458 | ||
1459 | wxPy_END_ALLOW_THREADS; | |
1460 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1461 | return _resultobj; |
1462 | } | |
1463 | ||
9c039d08 | 1464 | #define wxToolBarTool_m_isMenuCommand_get(_swigobj) ((bool ) _swigobj->m_isMenuCommand) |
efc5f224 | 1465 | static PyObject *_wrap_wxToolBarTool_m_isMenuCommand_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1466 | PyObject * _resultobj; |
1467 | bool _result; | |
1468 | wxToolBarTool * _arg0; | |
1d99702e | 1469 | PyObject * _argo0 = 0; |
efc5f224 | 1470 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1471 | |
1472 | self = self; | |
efc5f224 | 1473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_isMenuCommand_get",_kwnames,&_argo0)) |
9c039d08 | 1474 | return NULL; |
1d99702e RD |
1475 | if (_argo0) { |
1476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isMenuCommand_get. Expected _wxToolBarTool_p."); |
1479 | return NULL; | |
1480 | } | |
1481 | } | |
cf694132 RD |
1482 | { |
1483 | wxPy_BEGIN_ALLOW_THREADS; | |
1484 | _result = (bool )wxToolBarTool_m_isMenuCommand_get(_arg0); | |
1485 | ||
1486 | wxPy_END_ALLOW_THREADS; | |
1487 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
1488 | return _resultobj; |
1489 | } | |
1490 | ||
af309447 | 1491 | #define wxToolBarTool_m_shortHelpString_set(_swigobj,_swigval) (_swigobj->m_shortHelpString = *(_swigval),_swigval) |
efc5f224 | 1492 | static PyObject *_wrap_wxToolBarTool_m_shortHelpString_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1493 | PyObject * _resultobj; |
1494 | wxString * _result; | |
1495 | wxToolBarTool * _arg0; | |
1496 | wxString * _arg1; | |
1d99702e | 1497 | PyObject * _argo0 = 0; |
af309447 | 1498 | PyObject * _obj1 = 0; |
efc5f224 | 1499 | char *_kwnames[] = { "self","m_shortHelpString", NULL }; |
af309447 RD |
1500 | |
1501 | self = self; | |
efc5f224 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarTool_m_shortHelpString_set",_kwnames,&_argo0,&_obj1)) |
af309447 | 1503 | return NULL; |
1d99702e RD |
1504 | if (_argo0) { |
1505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_shortHelpString_set. Expected _wxToolBarTool_p."); |
1508 | return NULL; | |
1509 | } | |
1510 | } | |
1511 | { | |
1512 | if (!PyString_Check(_obj1)) { | |
1513 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1514 | return NULL; | |
1515 | } | |
cf694132 | 1516 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 1517 | } |
af309447 | 1518 | { |
cf694132 RD |
1519 | wxPy_BEGIN_ALLOW_THREADS; |
1520 | _result = (wxString *)wxToolBarTool_m_shortHelpString_set(_arg0,_arg1); | |
1521 | ||
1522 | wxPy_END_ALLOW_THREADS; | |
1523 | }{ | |
af309447 RD |
1524 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); |
1525 | } | |
1526 | { | |
1527 | if (_obj1) | |
1528 | delete _arg1; | |
1529 | } | |
1530 | return _resultobj; | |
1531 | } | |
1532 | ||
9c039d08 | 1533 | #define wxToolBarTool_m_shortHelpString_get(_swigobj) (&_swigobj->m_shortHelpString) |
efc5f224 | 1534 | static PyObject *_wrap_wxToolBarTool_m_shortHelpString_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1535 | PyObject * _resultobj; |
1536 | wxString * _result; | |
1537 | wxToolBarTool * _arg0; | |
1d99702e | 1538 | PyObject * _argo0 = 0; |
efc5f224 | 1539 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1540 | |
1541 | self = self; | |
efc5f224 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_shortHelpString_get",_kwnames,&_argo0)) |
9c039d08 | 1543 | return NULL; |
1d99702e RD |
1544 | if (_argo0) { |
1545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_shortHelpString_get. Expected _wxToolBarTool_p."); |
1548 | return NULL; | |
1549 | } | |
1550 | } | |
9c039d08 | 1551 | { |
cf694132 RD |
1552 | wxPy_BEGIN_ALLOW_THREADS; |
1553 | _result = (wxString *)wxToolBarTool_m_shortHelpString_get(_arg0); | |
1554 | ||
1555 | wxPy_END_ALLOW_THREADS; | |
1556 | }{ | |
9c039d08 RD |
1557 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); |
1558 | } | |
1559 | return _resultobj; | |
1560 | } | |
1561 | ||
af309447 | 1562 | #define wxToolBarTool_m_longHelpString_set(_swigobj,_swigval) (_swigobj->m_longHelpString = *(_swigval),_swigval) |
efc5f224 | 1563 | static PyObject *_wrap_wxToolBarTool_m_longHelpString_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1564 | PyObject * _resultobj; |
1565 | wxString * _result; | |
1566 | wxToolBarTool * _arg0; | |
1567 | wxString * _arg1; | |
1d99702e | 1568 | PyObject * _argo0 = 0; |
af309447 | 1569 | PyObject * _obj1 = 0; |
efc5f224 | 1570 | char *_kwnames[] = { "self","m_longHelpString", NULL }; |
af309447 RD |
1571 | |
1572 | self = self; | |
efc5f224 | 1573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarTool_m_longHelpString_set",_kwnames,&_argo0,&_obj1)) |
af309447 | 1574 | return NULL; |
1d99702e RD |
1575 | if (_argo0) { |
1576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
af309447 RD |
1578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_longHelpString_set. Expected _wxToolBarTool_p."); |
1579 | return NULL; | |
1580 | } | |
1581 | } | |
1582 | { | |
1583 | if (!PyString_Check(_obj1)) { | |
1584 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1585 | return NULL; | |
1586 | } | |
cf694132 | 1587 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 1588 | } |
af309447 | 1589 | { |
cf694132 RD |
1590 | wxPy_BEGIN_ALLOW_THREADS; |
1591 | _result = (wxString *)wxToolBarTool_m_longHelpString_set(_arg0,_arg1); | |
1592 | ||
1593 | wxPy_END_ALLOW_THREADS; | |
1594 | }{ | |
af309447 RD |
1595 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); |
1596 | } | |
1597 | { | |
1598 | if (_obj1) | |
1599 | delete _arg1; | |
1600 | } | |
1601 | return _resultobj; | |
1602 | } | |
1603 | ||
9c039d08 | 1604 | #define wxToolBarTool_m_longHelpString_get(_swigobj) (&_swigobj->m_longHelpString) |
efc5f224 | 1605 | static PyObject *_wrap_wxToolBarTool_m_longHelpString_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1606 | PyObject * _resultobj; |
1607 | wxString * _result; | |
1608 | wxToolBarTool * _arg0; | |
1d99702e | 1609 | PyObject * _argo0 = 0; |
efc5f224 | 1610 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1611 | |
1612 | self = self; | |
efc5f224 | 1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarTool_m_longHelpString_get",_kwnames,&_argo0)) |
9c039d08 | 1614 | return NULL; |
1d99702e RD |
1615 | if (_argo0) { |
1616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) { | |
9c039d08 RD |
1618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_longHelpString_get. Expected _wxToolBarTool_p."); |
1619 | return NULL; | |
1620 | } | |
1621 | } | |
9c039d08 | 1622 | { |
cf694132 RD |
1623 | wxPy_BEGIN_ALLOW_THREADS; |
1624 | _result = (wxString *)wxToolBarTool_m_longHelpString_get(_arg0); | |
1625 | ||
1626 | wxPy_END_ALLOW_THREADS; | |
1627 | }{ | |
9c039d08 RD |
1628 | _resultobj = PyString_FromString(WXSTRINGCAST (*_result)); |
1629 | } | |
1630 | return _resultobj; | |
1631 | } | |
1632 | ||
d5c9047a RD |
1633 | static void *SwigwxToolBarTowxControl(void *ptr) { |
1634 | wxToolBar *src; | |
9c039d08 | 1635 | wxControl *dest; |
d5c9047a | 1636 | src = (wxToolBar *) ptr; |
9c039d08 RD |
1637 | dest = (wxControl *) src; |
1638 | return (void *) dest; | |
1639 | } | |
1640 | ||
d5c9047a RD |
1641 | static void *SwigwxToolBarTowxWindow(void *ptr) { |
1642 | wxToolBar *src; | |
9c039d08 | 1643 | wxWindow *dest; |
d5c9047a | 1644 | src = (wxToolBar *) ptr; |
9c039d08 RD |
1645 | dest = (wxWindow *) src; |
1646 | return (void *) dest; | |
1647 | } | |
1648 | ||
d5c9047a RD |
1649 | static void *SwigwxToolBarTowxEvtHandler(void *ptr) { |
1650 | wxToolBar *src; | |
9c039d08 | 1651 | wxEvtHandler *dest; |
d5c9047a | 1652 | src = (wxToolBar *) ptr; |
9c039d08 RD |
1653 | dest = (wxEvtHandler *) src; |
1654 | return (void *) dest; | |
1655 | } | |
1656 | ||
d5c9047a | 1657 | #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 1658 | static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
1659 | PyObject * _resultobj; |
1660 | wxToolBar * _result; | |
1661 | wxWindow * _arg0; | |
1662 | wxWindowID _arg1; | |
1d99702e RD |
1663 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
1664 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
1665 | long _arg4 = (long ) wxTB_HORIZONTAL|wxNO_BORDER; | |
1666 | char * _arg5 = (char *) "toolBar"; | |
1667 | PyObject * _argo0 = 0; | |
1668 | PyObject * _argo2 = 0; | |
1669 | PyObject * _argo3 = 0; | |
efc5f224 | 1670 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
d5c9047a RD |
1671 | char _ptemp[128]; |
1672 | ||
1673 | self = self; | |
efc5f224 | 1674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5)) |
d5c9047a | 1675 | return NULL; |
1d99702e RD |
1676 | if (_argo0) { |
1677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d5c9047a RD |
1679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p."); |
1680 | return NULL; | |
1681 | } | |
1682 | } | |
1d99702e RD |
1683 | if (_argo2) { |
1684 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) { | |
d5c9047a RD |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxToolBar. Expected _wxPoint_p."); |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1d99702e RD |
1690 | if (_argo3) { |
1691 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) { | |
d5c9047a RD |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxToolBar. Expected _wxSize_p."); |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
cf694132 RD |
1697 | { |
1698 | wxPy_BEGIN_ALLOW_THREADS; | |
1699 | _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
1700 | ||
1701 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1702 | } if (_result) { |
1703 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p"); | |
1704 | _resultobj = Py_BuildValue("s",_ptemp); | |
1705 | } else { | |
1706 | Py_INCREF(Py_None); | |
1707 | _resultobj = Py_None; | |
1708 | } | |
d5c9047a RD |
1709 | return _resultobj; |
1710 | } | |
1711 | ||
1712 | #define wxToolBar_AddSeparator(_swigobj) (_swigobj->AddSeparator()) | |
efc5f224 | 1713 | static PyObject *_wrap_wxToolBar_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 1714 | PyObject * _resultobj; |
d5c9047a | 1715 | wxToolBar * _arg0; |
1d99702e | 1716 | PyObject * _argo0 = 0; |
efc5f224 | 1717 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1718 | |
1719 | self = self; | |
efc5f224 | 1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_AddSeparator",_kwnames,&_argo0)) |
9c039d08 | 1721 | return NULL; |
1d99702e RD |
1722 | if (_argo0) { |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddSeparator. Expected _wxToolBar_p."); |
9c039d08 RD |
1726 | return NULL; |
1727 | } | |
1728 | } | |
cf694132 RD |
1729 | { |
1730 | wxPy_BEGIN_ALLOW_THREADS; | |
1731 | wxToolBar_AddSeparator(_arg0); | |
1732 | ||
1733 | wxPy_END_ALLOW_THREADS; | |
1734 | } Py_INCREF(Py_None); | |
9c039d08 RD |
1735 | _resultobj = Py_None; |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
d5c9047a | 1739 | static wxToolBarTool * wxToolBar_AddTool(wxToolBar *self,int toolIndex,const wxBitmap & bitmap1,const wxBitmap & bitmap2,int isToggle,long xPos,long yPos,const wxString & shortHelpString,const wxString & longHelpString) { |
9c039d08 RD |
1740 | return self->AddTool(toolIndex, bitmap1, bitmap2, |
1741 | isToggle, xPos, yPos, NULL, | |
1742 | shortHelpString, longHelpString); | |
1743 | } | |
efc5f224 | 1744 | static PyObject *_wrap_wxToolBar_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1745 | PyObject * _resultobj; |
1746 | wxToolBarTool * _result; | |
d5c9047a | 1747 | wxToolBar * _arg0; |
9c039d08 RD |
1748 | int _arg1; |
1749 | wxBitmap * _arg2; | |
1d99702e RD |
1750 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
1751 | int _arg4 = (int ) FALSE; | |
1752 | long _arg5 = (long ) -1; | |
1753 | long _arg6 = (long ) -1; | |
1754 | wxString * _arg7 = (wxString *) &wxPyEmptyStr; | |
1755 | wxString * _arg8 = (wxString *) &wxPyEmptyStr; | |
1756 | PyObject * _argo0 = 0; | |
1757 | PyObject * _argo2 = 0; | |
1758 | PyObject * _argo3 = 0; | |
9c039d08 RD |
1759 | PyObject * _obj7 = 0; |
1760 | PyObject * _obj8 = 0; | |
efc5f224 | 1761 | char *_kwnames[] = { "self","toolIndex","bitmap1","bitmap2","isToggle","xPos","yPos","shortHelpString","longHelpString", NULL }; |
9c039d08 RD |
1762 | char _ptemp[128]; |
1763 | ||
1764 | self = self; | |
efc5f224 | 1765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OillOO:wxToolBar_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5,&_arg6,&_obj7,&_obj8)) |
9c039d08 | 1766 | return NULL; |
1d99702e RD |
1767 | if (_argo0) { |
1768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 1770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddTool. Expected _wxToolBar_p."); |
9c039d08 RD |
1771 | return NULL; |
1772 | } | |
1773 | } | |
1d99702e RD |
1774 | if (_argo2) { |
1775 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1776 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
d5c9047a | 1777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBar_AddTool. Expected _wxBitmap_p."); |
9c039d08 RD |
1778 | return NULL; |
1779 | } | |
1780 | } | |
1d99702e RD |
1781 | if (_argo3) { |
1782 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1783 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
d5c9047a | 1784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBar_AddTool. Expected _wxBitmap_p."); |
9c039d08 RD |
1785 | return NULL; |
1786 | } | |
1787 | } | |
1788 | if (_obj7) | |
1789 | { | |
1790 | if (!PyString_Check(_obj7)) { | |
1791 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1792 | return NULL; | |
1793 | } | |
cf694132 | 1794 | _arg7 = new wxString(PyString_AsString(_obj7), PyString_Size(_obj7)); |
9c039d08 RD |
1795 | } |
1796 | if (_obj8) | |
1797 | { | |
1798 | if (!PyString_Check(_obj8)) { | |
1799 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1800 | return NULL; | |
1801 | } | |
cf694132 | 1802 | _arg8 = new wxString(PyString_AsString(_obj8), PyString_Size(_obj8)); |
9c039d08 | 1803 | } |
cf694132 RD |
1804 | { |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (wxToolBarTool *)wxToolBar_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1809 | } if (_result) { |
1810 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p"); | |
1811 | _resultobj = Py_BuildValue("s",_ptemp); | |
1812 | } else { | |
1813 | Py_INCREF(Py_None); | |
1814 | _resultobj = Py_None; | |
1815 | } | |
9c039d08 RD |
1816 | { |
1817 | if (_obj7) | |
1818 | delete _arg7; | |
1819 | } | |
1820 | { | |
1821 | if (_obj8) | |
1822 | delete _arg8; | |
1823 | } | |
1824 | return _resultobj; | |
1825 | } | |
1826 | ||
08127323 RD |
1827 | static wxToolBarTool * wxToolBar_AddSimpleTool(wxToolBar *self,int toolIndex,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString) { |
1828 | return self->AddTool(toolIndex, bitmap, wxNullBitmap, | |
1829 | FALSE, -1, -1, NULL, | |
1830 | shortHelpString, longHelpString); | |
1831 | } | |
efc5f224 | 1832 | static PyObject *_wrap_wxToolBar_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 RD |
1833 | PyObject * _resultobj; |
1834 | wxToolBarTool * _result; | |
1835 | wxToolBar * _arg0; | |
1836 | int _arg1; | |
1837 | wxBitmap * _arg2; | |
1d99702e RD |
1838 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
1839 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; | |
1840 | PyObject * _argo0 = 0; | |
1841 | PyObject * _argo2 = 0; | |
08127323 RD |
1842 | PyObject * _obj3 = 0; |
1843 | PyObject * _obj4 = 0; | |
efc5f224 | 1844 | char *_kwnames[] = { "self","toolIndex","bitmap","shortHelpString","longHelpString", NULL }; |
08127323 RD |
1845 | char _ptemp[128]; |
1846 | ||
1847 | self = self; | |
efc5f224 | 1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OO:wxToolBar_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4)) |
08127323 | 1849 | return NULL; |
1d99702e RD |
1850 | if (_argo0) { |
1851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
08127323 RD |
1853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddSimpleTool. Expected _wxToolBar_p."); |
1854 | return NULL; | |
1855 | } | |
1856 | } | |
1d99702e RD |
1857 | if (_argo2) { |
1858 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1859 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
08127323 RD |
1860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBar_AddSimpleTool. Expected _wxBitmap_p."); |
1861 | return NULL; | |
1862 | } | |
1863 | } | |
1864 | if (_obj3) | |
1865 | { | |
1866 | if (!PyString_Check(_obj3)) { | |
1867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1868 | return NULL; | |
1869 | } | |
cf694132 | 1870 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
08127323 RD |
1871 | } |
1872 | if (_obj4) | |
1873 | { | |
1874 | if (!PyString_Check(_obj4)) { | |
1875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1876 | return NULL; | |
1877 | } | |
cf694132 | 1878 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); |
08127323 | 1879 | } |
cf694132 RD |
1880 | { |
1881 | wxPy_BEGIN_ALLOW_THREADS; | |
1882 | _result = (wxToolBarTool *)wxToolBar_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4); | |
1883 | ||
1884 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1885 | } if (_result) { |
1886 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p"); | |
1887 | _resultobj = Py_BuildValue("s",_ptemp); | |
1888 | } else { | |
1889 | Py_INCREF(Py_None); | |
1890 | _resultobj = Py_None; | |
1891 | } | |
08127323 RD |
1892 | { |
1893 | if (_obj3) | |
1894 | delete _arg3; | |
1895 | } | |
1896 | { | |
1897 | if (_obj4) | |
1898 | delete _arg4; | |
1899 | } | |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
d5c9047a | 1903 | #define wxToolBar_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1)) |
efc5f224 | 1904 | static PyObject *_wrap_wxToolBar_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 1905 | PyObject * _resultobj; |
d5c9047a | 1906 | wxToolBar * _arg0; |
9c039d08 RD |
1907 | int _arg1; |
1908 | bool _arg2; | |
1d99702e | 1909 | PyObject * _argo0 = 0; |
9c039d08 | 1910 | int tempbool2; |
efc5f224 | 1911 | char *_kwnames[] = { "self","toolIndex","enable", NULL }; |
9c039d08 RD |
1912 | |
1913 | self = self; | |
efc5f224 | 1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2)) |
9c039d08 | 1915 | return NULL; |
1d99702e RD |
1916 | if (_argo0) { |
1917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 1919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_EnableTool. Expected _wxToolBar_p."); |
9c039d08 RD |
1920 | return NULL; |
1921 | } | |
1922 | } | |
1923 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
1924 | { |
1925 | wxPy_BEGIN_ALLOW_THREADS; | |
1926 | wxToolBar_EnableTool(_arg0,_arg1,_arg2); | |
1927 | ||
1928 | wxPy_END_ALLOW_THREADS; | |
1929 | } Py_INCREF(Py_None); | |
9c039d08 RD |
1930 | _resultobj = Py_None; |
1931 | return _resultobj; | |
1932 | } | |
1933 | ||
d5c9047a | 1934 | #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1)) |
efc5f224 | 1935 | static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1936 | PyObject * _resultobj; |
1937 | wxToolBarTool * _result; | |
d5c9047a | 1938 | wxToolBar * _arg0; |
9c039d08 RD |
1939 | float _arg1; |
1940 | float _arg2; | |
1d99702e | 1941 | PyObject * _argo0 = 0; |
efc5f224 | 1942 | char *_kwnames[] = { "self","x","y", NULL }; |
9c039d08 RD |
1943 | char _ptemp[128]; |
1944 | ||
1945 | self = self; | |
efc5f224 | 1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Off:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2)) |
9c039d08 | 1947 | return NULL; |
1d99702e RD |
1948 | if (_argo0) { |
1949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 1951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p."); |
9c039d08 RD |
1952 | return NULL; |
1953 | } | |
1954 | } | |
cf694132 RD |
1955 | { |
1956 | wxPy_BEGIN_ALLOW_THREADS; | |
1957 | _result = (wxToolBarTool *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2); | |
1958 | ||
1959 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1960 | } if (_result) { |
1961 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p"); | |
1962 | _resultobj = Py_BuildValue("s",_ptemp); | |
1963 | } else { | |
1964 | Py_INCREF(Py_None); | |
1965 | _resultobj = Py_None; | |
1966 | } | |
9c039d08 RD |
1967 | return _resultobj; |
1968 | } | |
1969 | ||
d5c9047a | 1970 | #define wxToolBar_GetToolSize(_swigobj) (_swigobj->GetToolSize()) |
efc5f224 | 1971 | static PyObject *_wrap_wxToolBar_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1972 | PyObject * _resultobj; |
1973 | wxSize * _result; | |
d5c9047a | 1974 | wxToolBar * _arg0; |
1d99702e | 1975 | PyObject * _argo0 = 0; |
efc5f224 | 1976 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
1977 | char _ptemp[128]; |
1978 | ||
1979 | self = self; | |
efc5f224 | 1980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_GetToolSize",_kwnames,&_argo0)) |
9c039d08 | 1981 | return NULL; |
1d99702e RD |
1982 | if (_argo0) { |
1983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 1985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolSize. Expected _wxToolBar_p."); |
9c039d08 RD |
1986 | return NULL; |
1987 | } | |
1988 | } | |
cf694132 RD |
1989 | { |
1990 | wxPy_BEGIN_ALLOW_THREADS; | |
1991 | _result = new wxSize (wxToolBar_GetToolSize(_arg0)); | |
1992 | ||
1993 | wxPy_END_ALLOW_THREADS; | |
1994 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9c039d08 RD |
1995 | _resultobj = Py_BuildValue("s",_ptemp); |
1996 | return _resultobj; | |
1997 | } | |
1998 | ||
d5c9047a | 1999 | #define wxToolBar_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize()) |
efc5f224 | 2000 | static PyObject *_wrap_wxToolBar_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2001 | PyObject * _resultobj; |
2002 | wxSize * _result; | |
d5c9047a | 2003 | wxToolBar * _arg0; |
1d99702e | 2004 | PyObject * _argo0 = 0; |
efc5f224 | 2005 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2006 | char _ptemp[128]; |
2007 | ||
2008 | self = self; | |
efc5f224 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_GetToolBitmapSize",_kwnames,&_argo0)) |
9c039d08 | 2010 | return NULL; |
1d99702e RD |
2011 | if (_argo0) { |
2012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolBitmapSize. Expected _wxToolBar_p."); |
9c039d08 RD |
2015 | return NULL; |
2016 | } | |
2017 | } | |
cf694132 RD |
2018 | { |
2019 | wxPy_BEGIN_ALLOW_THREADS; | |
2020 | _result = new wxSize (wxToolBar_GetToolBitmapSize(_arg0)); | |
2021 | ||
2022 | wxPy_END_ALLOW_THREADS; | |
2023 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9c039d08 RD |
2024 | _resultobj = Py_BuildValue("s",_ptemp); |
2025 | return _resultobj; | |
2026 | } | |
2027 | ||
be4d9c1f | 2028 | #define wxToolBar_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0)) |
efc5f224 | 2029 | static PyObject *_wrap_wxToolBar_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
2030 | PyObject * _resultobj; |
2031 | wxToolBar * _arg0; | |
2032 | wxSize * _arg1; | |
1d99702e RD |
2033 | PyObject * _argo0 = 0; |
2034 | PyObject * _argo1 = 0; | |
efc5f224 | 2035 | char *_kwnames[] = { "self","size", NULL }; |
be4d9c1f RD |
2036 | |
2037 | self = self; | |
efc5f224 | 2038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBar_SetToolBitmapSize",_kwnames,&_argo0,&_argo1)) |
be4d9c1f | 2039 | return NULL; |
1d99702e RD |
2040 | if (_argo0) { |
2041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
be4d9c1f RD |
2043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolBitmapSize. Expected _wxToolBar_p."); |
2044 | return NULL; | |
2045 | } | |
2046 | } | |
1d99702e RD |
2047 | if (_argo1) { |
2048 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2049 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) { | |
be4d9c1f RD |
2050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_SetToolBitmapSize. Expected _wxSize_p."); |
2051 | return NULL; | |
2052 | } | |
2053 | } | |
cf694132 RD |
2054 | { |
2055 | wxPy_BEGIN_ALLOW_THREADS; | |
2056 | wxToolBar_SetToolBitmapSize(_arg0,*_arg1); | |
2057 | ||
2058 | wxPy_END_ALLOW_THREADS; | |
2059 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
2060 | _resultobj = Py_None; |
2061 | return _resultobj; | |
2062 | } | |
2063 | ||
d5c9047a | 2064 | #define wxToolBar_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
efc5f224 | 2065 | static PyObject *_wrap_wxToolBar_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2066 | PyObject * _resultobj; |
2067 | wxSize * _result; | |
d5c9047a | 2068 | wxToolBar * _arg0; |
1d99702e | 2069 | PyObject * _argo0 = 0; |
efc5f224 | 2070 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2071 | char _ptemp[128]; |
2072 | ||
2073 | self = self; | |
efc5f224 | 2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_GetMaxSize",_kwnames,&_argo0)) |
9c039d08 | 2075 | return NULL; |
1d99702e RD |
2076 | if (_argo0) { |
2077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetMaxSize. Expected _wxToolBar_p."); |
9c039d08 RD |
2080 | return NULL; |
2081 | } | |
2082 | } | |
cf694132 RD |
2083 | { |
2084 | wxPy_BEGIN_ALLOW_THREADS; | |
2085 | _result = new wxSize (wxToolBar_GetMaxSize(_arg0)); | |
2086 | ||
2087 | wxPy_END_ALLOW_THREADS; | |
2088 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9c039d08 RD |
2089 | _resultobj = Py_BuildValue("s",_ptemp); |
2090 | return _resultobj; | |
2091 | } | |
2092 | ||
d5c9047a | 2093 | #define wxToolBar_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0)) |
efc5f224 | 2094 | static PyObject *_wrap_wxToolBar_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2095 | PyObject * _resultobj; |
2096 | bool _result; | |
d5c9047a | 2097 | wxToolBar * _arg0; |
9c039d08 | 2098 | int _arg1; |
1d99702e | 2099 | PyObject * _argo0 = 0; |
efc5f224 | 2100 | char *_kwnames[] = { "self","toolIndex", NULL }; |
9c039d08 RD |
2101 | |
2102 | self = self; | |
efc5f224 | 2103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_GetToolEnabled",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2104 | return NULL; |
1d99702e RD |
2105 | if (_argo0) { |
2106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolEnabled. Expected _wxToolBar_p."); |
9c039d08 RD |
2109 | return NULL; |
2110 | } | |
2111 | } | |
cf694132 RD |
2112 | { |
2113 | wxPy_BEGIN_ALLOW_THREADS; | |
2114 | _result = (bool )wxToolBar_GetToolEnabled(_arg0,_arg1); | |
2115 | ||
2116 | wxPy_END_ALLOW_THREADS; | |
2117 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
2118 | return _resultobj; |
2119 | } | |
2120 | ||
d5c9047a | 2121 | #define wxToolBar_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0)) |
efc5f224 | 2122 | static PyObject *_wrap_wxToolBar_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2123 | PyObject * _resultobj; |
2124 | wxString * _result; | |
d5c9047a | 2125 | wxToolBar * _arg0; |
9c039d08 | 2126 | int _arg1; |
1d99702e | 2127 | PyObject * _argo0 = 0; |
efc5f224 | 2128 | char *_kwnames[] = { "self","toolIndex", NULL }; |
9c039d08 RD |
2129 | |
2130 | self = self; | |
efc5f224 | 2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_GetToolLongHelp",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2132 | return NULL; |
1d99702e RD |
2133 | if (_argo0) { |
2134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolLongHelp. Expected _wxToolBar_p."); |
9c039d08 RD |
2137 | return NULL; |
2138 | } | |
2139 | } | |
9c039d08 | 2140 | { |
cf694132 RD |
2141 | wxPy_BEGIN_ALLOW_THREADS; |
2142 | _result = new wxString (wxToolBar_GetToolLongHelp(_arg0,_arg1)); | |
2143 | ||
2144 | wxPy_END_ALLOW_THREADS; | |
2145 | }{ | |
9c039d08 RD |
2146 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
2147 | } | |
2148 | { | |
2149 | delete _result; | |
2150 | } | |
2151 | return _resultobj; | |
2152 | } | |
2153 | ||
d5c9047a | 2154 | #define wxToolBar_GetToolPacking(_swigobj) (_swigobj->GetToolPacking()) |
efc5f224 | 2155 | static PyObject *_wrap_wxToolBar_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2156 | PyObject * _resultobj; |
2157 | int _result; | |
d5c9047a | 2158 | wxToolBar * _arg0; |
1d99702e | 2159 | PyObject * _argo0 = 0; |
efc5f224 | 2160 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2161 | |
2162 | self = self; | |
efc5f224 | 2163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_GetToolPacking",_kwnames,&_argo0)) |
9c039d08 | 2164 | return NULL; |
1d99702e RD |
2165 | if (_argo0) { |
2166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolPacking. Expected _wxToolBar_p."); |
9c039d08 RD |
2169 | return NULL; |
2170 | } | |
2171 | } | |
cf694132 RD |
2172 | { |
2173 | wxPy_BEGIN_ALLOW_THREADS; | |
2174 | _result = (int )wxToolBar_GetToolPacking(_arg0); | |
2175 | ||
2176 | wxPy_END_ALLOW_THREADS; | |
2177 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
2178 | return _resultobj; |
2179 | } | |
2180 | ||
d5c9047a | 2181 | #define wxToolBar_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation()) |
efc5f224 | 2182 | static PyObject *_wrap_wxToolBar_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2183 | PyObject * _resultobj; |
2184 | int _result; | |
d5c9047a | 2185 | wxToolBar * _arg0; |
1d99702e | 2186 | PyObject * _argo0 = 0; |
efc5f224 | 2187 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2188 | |
2189 | self = self; | |
efc5f224 | 2190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_GetToolSeparation",_kwnames,&_argo0)) |
9c039d08 | 2191 | return NULL; |
1d99702e RD |
2192 | if (_argo0) { |
2193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolSeparation. Expected _wxToolBar_p."); |
9c039d08 RD |
2196 | return NULL; |
2197 | } | |
2198 | } | |
cf694132 RD |
2199 | { |
2200 | wxPy_BEGIN_ALLOW_THREADS; | |
2201 | _result = (int )wxToolBar_GetToolSeparation(_arg0); | |
2202 | ||
2203 | wxPy_END_ALLOW_THREADS; | |
2204 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
2205 | return _resultobj; |
2206 | } | |
2207 | ||
d5c9047a | 2208 | #define wxToolBar_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0)) |
efc5f224 | 2209 | static PyObject *_wrap_wxToolBar_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2210 | PyObject * _resultobj; |
2211 | wxString * _result; | |
d5c9047a | 2212 | wxToolBar * _arg0; |
9c039d08 | 2213 | int _arg1; |
1d99702e | 2214 | PyObject * _argo0 = 0; |
efc5f224 | 2215 | char *_kwnames[] = { "self","toolIndex", NULL }; |
9c039d08 RD |
2216 | |
2217 | self = self; | |
efc5f224 | 2218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_GetToolShortHelp",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2219 | return NULL; |
1d99702e RD |
2220 | if (_argo0) { |
2221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolShortHelp. Expected _wxToolBar_p."); |
9c039d08 RD |
2224 | return NULL; |
2225 | } | |
2226 | } | |
9c039d08 | 2227 | { |
cf694132 RD |
2228 | wxPy_BEGIN_ALLOW_THREADS; |
2229 | _result = new wxString (wxToolBar_GetToolShortHelp(_arg0,_arg1)); | |
2230 | ||
2231 | wxPy_END_ALLOW_THREADS; | |
2232 | }{ | |
9c039d08 RD |
2233 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
2234 | } | |
2235 | { | |
2236 | delete _result; | |
2237 | } | |
2238 | return _resultobj; | |
2239 | } | |
2240 | ||
d5c9047a | 2241 | #define wxToolBar_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0)) |
efc5f224 | 2242 | static PyObject *_wrap_wxToolBar_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2243 | PyObject * _resultobj; |
2244 | bool _result; | |
d5c9047a | 2245 | wxToolBar * _arg0; |
9c039d08 | 2246 | int _arg1; |
1d99702e | 2247 | PyObject * _argo0 = 0; |
efc5f224 | 2248 | char *_kwnames[] = { "self","toolIndex", NULL }; |
9c039d08 RD |
2249 | |
2250 | self = self; | |
efc5f224 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_GetToolState",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2252 | return NULL; |
1d99702e RD |
2253 | if (_argo0) { |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolState. Expected _wxToolBar_p."); |
9c039d08 RD |
2257 | return NULL; |
2258 | } | |
2259 | } | |
cf694132 RD |
2260 | { |
2261 | wxPy_BEGIN_ALLOW_THREADS; | |
2262 | _result = (bool )wxToolBar_GetToolState(_arg0,_arg1); | |
2263 | ||
2264 | wxPy_END_ALLOW_THREADS; | |
2265 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
2266 | return _resultobj; |
2267 | } | |
2268 | ||
d5c9047a | 2269 | #define wxToolBar_Realize(_swigobj) (_swigobj->Realize()) |
efc5f224 | 2270 | static PyObject *_wrap_wxToolBar_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
2271 | PyObject * _resultobj; |
2272 | bool _result; | |
d5c9047a | 2273 | wxToolBar * _arg0; |
1d99702e | 2274 | PyObject * _argo0 = 0; |
efc5f224 | 2275 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
2276 | |
2277 | self = self; | |
efc5f224 | 2278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBar_Realize",_kwnames,&_argo0)) |
9c039d08 | 2279 | return NULL; |
1d99702e RD |
2280 | if (_argo0) { |
2281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Realize. Expected _wxToolBar_p."); |
9c039d08 RD |
2284 | return NULL; |
2285 | } | |
2286 | } | |
cf694132 RD |
2287 | { |
2288 | wxPy_BEGIN_ALLOW_THREADS; | |
2289 | _result = (bool )wxToolBar_Realize(_arg0); | |
2290 | ||
2291 | wxPy_END_ALLOW_THREADS; | |
2292 | } _resultobj = Py_BuildValue("i",_result); | |
9c039d08 RD |
2293 | return _resultobj; |
2294 | } | |
2295 | ||
d5c9047a | 2296 | #define wxToolBar_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1)) |
efc5f224 | 2297 | static PyObject *_wrap_wxToolBar_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2298 | PyObject * _resultobj; |
d5c9047a | 2299 | wxToolBar * _arg0; |
9c039d08 RD |
2300 | int _arg1; |
2301 | wxString * _arg2; | |
1d99702e | 2302 | PyObject * _argo0 = 0; |
9c039d08 | 2303 | PyObject * _obj2 = 0; |
efc5f224 | 2304 | char *_kwnames[] = { "self","toolIndex","helpString", NULL }; |
9c039d08 RD |
2305 | |
2306 | self = self; | |
efc5f224 | 2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBar_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2)) |
9c039d08 | 2308 | return NULL; |
1d99702e RD |
2309 | if (_argo0) { |
2310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolLongHelp. Expected _wxToolBar_p."); |
9c039d08 RD |
2313 | return NULL; |
2314 | } | |
2315 | } | |
2316 | { | |
2317 | if (!PyString_Check(_obj2)) { | |
2318 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2319 | return NULL; | |
2320 | } | |
cf694132 | 2321 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
9c039d08 | 2322 | } |
cf694132 RD |
2323 | { |
2324 | wxPy_BEGIN_ALLOW_THREADS; | |
2325 | wxToolBar_SetToolLongHelp(_arg0,_arg1,*_arg2); | |
2326 | ||
2327 | wxPy_END_ALLOW_THREADS; | |
2328 | } Py_INCREF(Py_None); | |
9c039d08 RD |
2329 | _resultobj = Py_None; |
2330 | { | |
2331 | if (_obj2) | |
2332 | delete _arg2; | |
2333 | } | |
2334 | return _resultobj; | |
2335 | } | |
2336 | ||
d5c9047a | 2337 | #define wxToolBar_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1)) |
efc5f224 | 2338 | static PyObject *_wrap_wxToolBar_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2339 | PyObject * _resultobj; |
d5c9047a | 2340 | wxToolBar * _arg0; |
9c039d08 RD |
2341 | int _arg1; |
2342 | wxString * _arg2; | |
1d99702e | 2343 | PyObject * _argo0 = 0; |
9c039d08 | 2344 | PyObject * _obj2 = 0; |
efc5f224 | 2345 | char *_kwnames[] = { "self","toolIndex","helpString", NULL }; |
9c039d08 RD |
2346 | |
2347 | self = self; | |
efc5f224 | 2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBar_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2)) |
9c039d08 | 2349 | return NULL; |
1d99702e RD |
2350 | if (_argo0) { |
2351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolShortHelp. Expected _wxToolBar_p."); |
9c039d08 RD |
2354 | return NULL; |
2355 | } | |
2356 | } | |
2357 | { | |
2358 | if (!PyString_Check(_obj2)) { | |
2359 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2360 | return NULL; | |
2361 | } | |
cf694132 | 2362 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
9c039d08 | 2363 | } |
cf694132 RD |
2364 | { |
2365 | wxPy_BEGIN_ALLOW_THREADS; | |
2366 | wxToolBar_SetToolShortHelp(_arg0,_arg1,*_arg2); | |
2367 | ||
2368 | wxPy_END_ALLOW_THREADS; | |
2369 | } Py_INCREF(Py_None); | |
9c039d08 RD |
2370 | _resultobj = Py_None; |
2371 | { | |
2372 | if (_obj2) | |
2373 | delete _arg2; | |
2374 | } | |
2375 | return _resultobj; | |
2376 | } | |
2377 | ||
d5c9047a | 2378 | #define wxToolBar_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0)) |
efc5f224 | 2379 | static PyObject *_wrap_wxToolBar_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2380 | PyObject * _resultobj; |
d5c9047a RD |
2381 | wxToolBar * _arg0; |
2382 | wxSize * _arg1; | |
1d99702e RD |
2383 | PyObject * _argo0 = 0; |
2384 | PyObject * _argo1 = 0; | |
efc5f224 | 2385 | char *_kwnames[] = { "self","size", NULL }; |
9c039d08 RD |
2386 | |
2387 | self = self; | |
efc5f224 | 2388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBar_SetMargins",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 2389 | return NULL; |
1d99702e RD |
2390 | if (_argo0) { |
2391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetMargins. Expected _wxToolBar_p."); |
9c039d08 RD |
2394 | return NULL; |
2395 | } | |
2396 | } | |
1d99702e RD |
2397 | if (_argo1) { |
2398 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2399 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) { | |
d5c9047a RD |
2400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_SetMargins. Expected _wxSize_p."); |
2401 | return NULL; | |
2402 | } | |
2403 | } | |
cf694132 RD |
2404 | { |
2405 | wxPy_BEGIN_ALLOW_THREADS; | |
2406 | wxToolBar_SetMargins(_arg0,*_arg1); | |
2407 | ||
2408 | wxPy_END_ALLOW_THREADS; | |
2409 | } Py_INCREF(Py_None); | |
9c039d08 RD |
2410 | _resultobj = Py_None; |
2411 | return _resultobj; | |
2412 | } | |
2413 | ||
d5c9047a | 2414 | #define wxToolBar_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0)) |
efc5f224 | 2415 | static PyObject *_wrap_wxToolBar_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2416 | PyObject * _resultobj; |
d5c9047a | 2417 | wxToolBar * _arg0; |
9c039d08 | 2418 | int _arg1; |
1d99702e | 2419 | PyObject * _argo0 = 0; |
efc5f224 | 2420 | char *_kwnames[] = { "self","packing", NULL }; |
9c039d08 RD |
2421 | |
2422 | self = self; | |
efc5f224 | 2423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_SetToolPacking",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2424 | return NULL; |
1d99702e RD |
2425 | if (_argo0) { |
2426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolPacking. Expected _wxToolBar_p."); |
9c039d08 RD |
2429 | return NULL; |
2430 | } | |
2431 | } | |
cf694132 RD |
2432 | { |
2433 | wxPy_BEGIN_ALLOW_THREADS; | |
2434 | wxToolBar_SetToolPacking(_arg0,_arg1); | |
2435 | ||
2436 | wxPy_END_ALLOW_THREADS; | |
2437 | } Py_INCREF(Py_None); | |
9c039d08 RD |
2438 | _resultobj = Py_None; |
2439 | return _resultobj; | |
2440 | } | |
2441 | ||
d5c9047a | 2442 | #define wxToolBar_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0)) |
efc5f224 | 2443 | static PyObject *_wrap_wxToolBar_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2444 | PyObject * _resultobj; |
d5c9047a RD |
2445 | wxToolBar * _arg0; |
2446 | int _arg1; | |
1d99702e | 2447 | PyObject * _argo0 = 0; |
efc5f224 | 2448 | char *_kwnames[] = { "self","separation", NULL }; |
9c039d08 RD |
2449 | |
2450 | self = self; | |
efc5f224 | 2451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBar_SetToolSeparation",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 2452 | return NULL; |
1d99702e RD |
2453 | if (_argo0) { |
2454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolSeparation. Expected _wxToolBar_p."); |
9c039d08 RD |
2457 | return NULL; |
2458 | } | |
2459 | } | |
cf694132 RD |
2460 | { |
2461 | wxPy_BEGIN_ALLOW_THREADS; | |
2462 | wxToolBar_SetToolSeparation(_arg0,_arg1); | |
2463 | ||
2464 | wxPy_END_ALLOW_THREADS; | |
2465 | } Py_INCREF(Py_None); | |
d5c9047a | 2466 | _resultobj = Py_None; |
9c039d08 RD |
2467 | return _resultobj; |
2468 | } | |
2469 | ||
d5c9047a | 2470 | #define wxToolBar_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1)) |
efc5f224 | 2471 | static PyObject *_wrap_wxToolBar_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 | 2472 | PyObject * _resultobj; |
d5c9047a RD |
2473 | wxToolBar * _arg0; |
2474 | int _arg1; | |
2475 | bool _arg2; | |
1d99702e | 2476 | PyObject * _argo0 = 0; |
d5c9047a | 2477 | int tempbool2; |
efc5f224 | 2478 | char *_kwnames[] = { "self","toolIndex","toggle", NULL }; |
9c039d08 RD |
2479 | |
2480 | self = self; | |
efc5f224 | 2481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_ToggleTool",_kwnames,&_argo0,&_arg1,&tempbool2)) |
9c039d08 | 2482 | return NULL; |
1d99702e RD |
2483 | if (_argo0) { |
2484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) { | |
d5c9047a | 2486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_ToggleTool. Expected _wxToolBar_p."); |
9c039d08 RD |
2487 | return NULL; |
2488 | } | |
2489 | } | |
d5c9047a | 2490 | _arg2 = (bool ) tempbool2; |
cf694132 RD |
2491 | { |
2492 | wxPy_BEGIN_ALLOW_THREADS; | |
2493 | wxToolBar_ToggleTool(_arg0,_arg1,_arg2); | |
2494 | ||
2495 | wxPy_END_ALLOW_THREADS; | |
2496 | } Py_INCREF(Py_None); | |
d5c9047a | 2497 | _resultobj = Py_None; |
9c039d08 RD |
2498 | return _resultobj; |
2499 | } | |
2500 | ||
2501 | static PyMethodDef stattoolcMethods[] = { | |
efc5f224 RD |
2502 | { "wxToolBar_ToggleTool", (PyCFunction) _wrap_wxToolBar_ToggleTool, METH_VARARGS | METH_KEYWORDS }, |
2503 | { "wxToolBar_SetToolSeparation", (PyCFunction) _wrap_wxToolBar_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
2504 | { "wxToolBar_SetToolPacking", (PyCFunction) _wrap_wxToolBar_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
2505 | { "wxToolBar_SetMargins", (PyCFunction) _wrap_wxToolBar_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
2506 | { "wxToolBar_SetToolShortHelp", (PyCFunction) _wrap_wxToolBar_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
2507 | { "wxToolBar_SetToolLongHelp", (PyCFunction) _wrap_wxToolBar_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
2508 | { "wxToolBar_Realize", (PyCFunction) _wrap_wxToolBar_Realize, METH_VARARGS | METH_KEYWORDS }, | |
2509 | { "wxToolBar_GetToolState", (PyCFunction) _wrap_wxToolBar_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
2510 | { "wxToolBar_GetToolShortHelp", (PyCFunction) _wrap_wxToolBar_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
2511 | { "wxToolBar_GetToolSeparation", (PyCFunction) _wrap_wxToolBar_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
2512 | { "wxToolBar_GetToolPacking", (PyCFunction) _wrap_wxToolBar_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
2513 | { "wxToolBar_GetToolLongHelp", (PyCFunction) _wrap_wxToolBar_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
2514 | { "wxToolBar_GetToolEnabled", (PyCFunction) _wrap_wxToolBar_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
2515 | { "wxToolBar_GetMaxSize", (PyCFunction) _wrap_wxToolBar_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
2516 | { "wxToolBar_SetToolBitmapSize", (PyCFunction) _wrap_wxToolBar_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
2517 | { "wxToolBar_GetToolBitmapSize", (PyCFunction) _wrap_wxToolBar_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
2518 | { "wxToolBar_GetToolSize", (PyCFunction) _wrap_wxToolBar_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
2519 | { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
2520 | { "wxToolBar_EnableTool", (PyCFunction) _wrap_wxToolBar_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
2521 | { "wxToolBar_AddSimpleTool", (PyCFunction) _wrap_wxToolBar_AddSimpleTool, METH_VARARGS | METH_KEYWORDS }, | |
2522 | { "wxToolBar_AddTool", (PyCFunction) _wrap_wxToolBar_AddTool, METH_VARARGS | METH_KEYWORDS }, | |
2523 | { "wxToolBar_AddSeparator", (PyCFunction) _wrap_wxToolBar_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
2524 | { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS }, | |
2525 | { "wxToolBarTool_m_longHelpString_get", (PyCFunction) _wrap_wxToolBarTool_m_longHelpString_get, METH_VARARGS | METH_KEYWORDS }, | |
2526 | { "wxToolBarTool_m_longHelpString_set", (PyCFunction) _wrap_wxToolBarTool_m_longHelpString_set, METH_VARARGS | METH_KEYWORDS }, | |
2527 | { "wxToolBarTool_m_shortHelpString_get", (PyCFunction) _wrap_wxToolBarTool_m_shortHelpString_get, METH_VARARGS | METH_KEYWORDS }, | |
2528 | { "wxToolBarTool_m_shortHelpString_set", (PyCFunction) _wrap_wxToolBarTool_m_shortHelpString_set, METH_VARARGS | METH_KEYWORDS }, | |
2529 | { "wxToolBarTool_m_isMenuCommand_get", (PyCFunction) _wrap_wxToolBarTool_m_isMenuCommand_get, METH_VARARGS | METH_KEYWORDS }, | |
2530 | { "wxToolBarTool_m_isMenuCommand_set", (PyCFunction) _wrap_wxToolBarTool_m_isMenuCommand_set, METH_VARARGS | METH_KEYWORDS }, | |
2531 | { "wxToolBarTool_m_bitmap2_get", (PyCFunction) _wrap_wxToolBarTool_m_bitmap2_get, METH_VARARGS | METH_KEYWORDS }, | |
2532 | { "wxToolBarTool_m_bitmap2_set", (PyCFunction) _wrap_wxToolBarTool_m_bitmap2_set, METH_VARARGS | METH_KEYWORDS }, | |
2533 | { "wxToolBarTool_m_bitmap1_get", (PyCFunction) _wrap_wxToolBarTool_m_bitmap1_get, METH_VARARGS | METH_KEYWORDS }, | |
2534 | { "wxToolBarTool_m_bitmap1_set", (PyCFunction) _wrap_wxToolBarTool_m_bitmap1_set, METH_VARARGS | METH_KEYWORDS }, | |
2535 | { "wxToolBarTool_m_enabled_get", (PyCFunction) _wrap_wxToolBarTool_m_enabled_get, METH_VARARGS | METH_KEYWORDS }, | |
2536 | { "wxToolBarTool_m_enabled_set", (PyCFunction) _wrap_wxToolBarTool_m_enabled_set, METH_VARARGS | METH_KEYWORDS }, | |
2537 | { "wxToolBarTool_m_deleteSecondBitmap_get", (PyCFunction) _wrap_wxToolBarTool_m_deleteSecondBitmap_get, METH_VARARGS | METH_KEYWORDS }, | |
2538 | { "wxToolBarTool_m_deleteSecondBitmap_set", (PyCFunction) _wrap_wxToolBarTool_m_deleteSecondBitmap_set, METH_VARARGS | METH_KEYWORDS }, | |
2539 | { "wxToolBarTool_m_isToggle_get", (PyCFunction) _wrap_wxToolBarTool_m_isToggle_get, METH_VARARGS | METH_KEYWORDS }, | |
2540 | { "wxToolBarTool_m_isToggle_set", (PyCFunction) _wrap_wxToolBarTool_m_isToggle_set, METH_VARARGS | METH_KEYWORDS }, | |
2541 | { "wxToolBarTool_m_toggleState_get", (PyCFunction) _wrap_wxToolBarTool_m_toggleState_get, METH_VARARGS | METH_KEYWORDS }, | |
2542 | { "wxToolBarTool_m_toggleState_set", (PyCFunction) _wrap_wxToolBarTool_m_toggleState_set, METH_VARARGS | METH_KEYWORDS }, | |
2543 | { "wxToolBarTool_m_height_get", (PyCFunction) _wrap_wxToolBarTool_m_height_get, METH_VARARGS | METH_KEYWORDS }, | |
2544 | { "wxToolBarTool_m_height_set", (PyCFunction) _wrap_wxToolBarTool_m_height_set, METH_VARARGS | METH_KEYWORDS }, | |
2545 | { "wxToolBarTool_m_width_get", (PyCFunction) _wrap_wxToolBarTool_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
2546 | { "wxToolBarTool_m_width_set", (PyCFunction) _wrap_wxToolBarTool_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
2547 | { "wxToolBarTool_m_y_get", (PyCFunction) _wrap_wxToolBarTool_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
2548 | { "wxToolBarTool_m_y_set", (PyCFunction) _wrap_wxToolBarTool_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
2549 | { "wxToolBarTool_m_x_get", (PyCFunction) _wrap_wxToolBarTool_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
2550 | { "wxToolBarTool_m_x_set", (PyCFunction) _wrap_wxToolBarTool_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
2551 | { "wxToolBarTool_m_index_get", (PyCFunction) _wrap_wxToolBarTool_m_index_get, METH_VARARGS | METH_KEYWORDS }, | |
2552 | { "wxToolBarTool_m_index_set", (PyCFunction) _wrap_wxToolBarTool_m_index_set, METH_VARARGS | METH_KEYWORDS }, | |
2553 | { "wxToolBarTool_m_clientData_get", (PyCFunction) _wrap_wxToolBarTool_m_clientData_get, METH_VARARGS | METH_KEYWORDS }, | |
2554 | { "wxToolBarTool_m_clientData_set", (PyCFunction) _wrap_wxToolBarTool_m_clientData_set, METH_VARARGS | METH_KEYWORDS }, | |
2555 | { "wxToolBarTool_m_toolStyle_get", (PyCFunction) _wrap_wxToolBarTool_m_toolStyle_get, METH_VARARGS | METH_KEYWORDS }, | |
2556 | { "wxToolBarTool_m_toolStyle_set", (PyCFunction) _wrap_wxToolBarTool_m_toolStyle_set, METH_VARARGS | METH_KEYWORDS }, | |
2557 | { "wxToolBarTool_GetHeight", (PyCFunction) _wrap_wxToolBarTool_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
2558 | { "wxToolBarTool_GetWidth", (PyCFunction) _wrap_wxToolBarTool_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
2559 | { "wxToolBarTool_SetSize", (PyCFunction) _wrap_wxToolBarTool_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
2560 | { "delete_wxToolBarTool", (PyCFunction) _wrap_delete_wxToolBarTool, METH_VARARGS | METH_KEYWORDS }, | |
2561 | { "new_wxToolBarTool", (PyCFunction) _wrap_new_wxToolBarTool, METH_VARARGS | METH_KEYWORDS }, | |
2562 | { "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
2563 | { "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
2564 | { "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
2565 | { "wxStatusBar_InitColours", (PyCFunction) _wrap_wxStatusBar_InitColours, METH_VARARGS | METH_KEYWORDS }, | |
2566 | { "wxStatusBar_DrawFieldText", (PyCFunction) _wrap_wxStatusBar_DrawFieldText, METH_VARARGS | METH_KEYWORDS }, | |
2567 | { "wxStatusBar_DrawField", (PyCFunction) _wrap_wxStatusBar_DrawField, METH_VARARGS | METH_KEYWORDS }, | |
2568 | { "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
2569 | { "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
2570 | { "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
2571 | { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
9c039d08 RD |
2572 | { NULL, NULL } |
2573 | }; | |
1d99702e RD |
2574 | #ifdef __cplusplus |
2575 | } | |
2576 | #endif | |
2577 | /* | |
2578 | * This table is used by the pointer type-checker | |
2579 | */ | |
2580 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2581 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
2582 | { "_wxEvent","_class_wxEvent",0}, | |
2583 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
2584 | { "_signed_long","_long",0}, | |
2585 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
2586 | { "_wxPrintQuality","_int",0}, | |
2587 | { "_wxPrintQuality","_signed_int",0}, | |
2588 | { "_wxPrintQuality","_unsigned_int",0}, | |
2589 | { "_wxPrintQuality","_wxWindowID",0}, | |
2590 | { "_wxPrintQuality","_uint",0}, | |
2591 | { "_wxPrintQuality","_EBool",0}, | |
2592 | { "_wxPrintQuality","_size_t",0}, | |
2593 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
2594 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
2595 | { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
2596 | { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
2597 | { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
2598 | { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
2599 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
2600 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
2601 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
2602 | { "_wxCursor","_class_wxCursor",0}, | |
2603 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
2604 | { "_wxMask","_class_wxMask",0}, | |
2605 | { "_wxPen","_class_wxPen",0}, | |
2606 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
2607 | { "_byte","_unsigned_char",0}, | |
2608 | { "_wxStaticBox","_class_wxStaticBox",0}, | |
2609 | { "_wxChoice","_class_wxChoice",0}, | |
2610 | { "_wxSlider","_class_wxSlider",0}, | |
2611 | { "_long","_wxDash",0}, | |
2612 | { "_long","_unsigned_long",0}, | |
2613 | { "_long","_signed_long",0}, | |
2614 | { "_wxImageList","_class_wxImageList",0}, | |
2615 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
2616 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
2617 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
2618 | { "_class_wxGauge","_wxGauge",0}, | |
2619 | { "_wxDC","_class_wxDC",0}, | |
2620 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
2621 | { "_size_t","_wxPrintQuality",0}, | |
2622 | { "_size_t","_unsigned_int",0}, | |
2623 | { "_size_t","_int",0}, | |
2624 | { "_size_t","_wxWindowID",0}, | |
2625 | { "_size_t","_uint",0}, | |
2626 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
2627 | { "_wxPrinterDC","_class_wxPrinterDC",0}, | |
2628 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
2629 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
2630 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
2631 | { "_class_wxStatusBar","_wxStatusBar",0}, | |
2632 | { "_wxPanel","_class_wxPanel",0}, | |
2633 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
2634 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
2635 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
2636 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
2637 | { "_class_wxMask","_wxMask",0}, | |
2638 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
2639 | { "_wxColour","_class_wxColour",0}, | |
2640 | { "_class_wxDialog","_wxDialog",0}, | |
2641 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
2642 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
2643 | { "_wxToolBar","_class_wxToolBar",0}, | |
2644 | { "_wxStaticLine","_class_wxStaticLine",0}, | |
2645 | { "_wxBrush","_class_wxBrush",0}, | |
2646 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
2647 | { "_uint","_wxPrintQuality",0}, | |
2648 | { "_uint","_size_t",0}, | |
2649 | { "_uint","_unsigned_int",0}, | |
2650 | { "_uint","_int",0}, | |
2651 | { "_uint","_wxWindowID",0}, | |
2652 | { "_class_wxEvent","_wxEvent",0}, | |
2653 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
2654 | { "_wxRect","_class_wxRect",0}, | |
2655 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
2656 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
2657 | { "_wxPoint","_class_wxPoint",0}, | |
2658 | { "_class_wxButton","_wxButton",0}, | |
2659 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
2660 | { "_wxBitmap","_class_wxBitmap",0}, | |
2661 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
2662 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
2663 | { "_wxScrollBar","_class_wxScrollBar",0}, | |
2664 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
2665 | { "_wxToolBarTool","_class_wxToolBarTool",0}, | |
2666 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
2667 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
2668 | { "_class_wxPyEvent","_wxPyEvent",0}, | |
2669 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
2670 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
2671 | { "_class_wxToolBar","_wxToolBar",0}, | |
2672 | { "_class_wxStaticLine","_wxStaticLine",0}, | |
2673 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
2674 | { "_EBool","_wxPrintQuality",0}, | |
2675 | { "_EBool","_signed_int",0}, | |
2676 | { "_EBool","_int",0}, | |
2677 | { "_EBool","_wxWindowID",0}, | |
2678 | { "_class_wxRegion","_wxRegion",0}, | |
2679 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
2680 | { "_wxStaticText","_class_wxStaticText",0}, | |
2681 | { "_wxFont","_class_wxFont",0}, | |
2682 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
2683 | { "_unsigned_long","_wxDash",0}, | |
2684 | { "_unsigned_long","_long",0}, | |
2685 | { "_class_wxRect","_wxRect",0}, | |
2686 | { "_class_wxDC","_wxDC",0}, | |
2687 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
2688 | { "_wxFocusEvent","_class_wxFocusEvent",0}, | |
2689 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
2690 | { "_class_wxSpinButton","_wxSpinButton",0}, | |
2691 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
2692 | { "_class_wxPanel","_wxPanel",0}, | |
2693 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
2694 | { "_wxComboBox","_class_wxComboBox",0}, | |
2695 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
2696 | { "_signed_int","_wxPrintQuality",0}, | |
2697 | { "_signed_int","_EBool",0}, | |
2698 | { "_signed_int","_wxWindowID",0}, | |
2699 | { "_signed_int","_int",0}, | |
2700 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
2701 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
2702 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
2703 | { "_wxMenu","_class_wxMenu",0}, | |
2704 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
2705 | { "_wxListBox","_class_wxListBox",0}, | |
2706 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
2707 | { "_WXTYPE","_short",0}, | |
2708 | { "_WXTYPE","_signed_short",0}, | |
2709 | { "_WXTYPE","_unsigned_short",0}, | |
2710 | { "_class_wxBrush","_wxBrush",0}, | |
2711 | { "_unsigned_short","_WXTYPE",0}, | |
2712 | { "_unsigned_short","_short",0}, | |
2713 | { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow}, | |
2714 | { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow}, | |
2715 | { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
2716 | { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
2717 | { "_class_wxWindow","_wxWindow",0}, | |
2718 | { "_class_wxStaticText","_wxStaticText",0}, | |
2719 | { "_class_wxFont","_wxFont",0}, | |
2720 | { "_class_wxCloseEvent","_wxCloseEvent",0}, | |
2721 | { "_class_wxMenuEvent","_wxMenuEvent",0}, | |
2722 | { "_wxClientDC","_class_wxClientDC",0}, | |
2723 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
2724 | { "_class_wxPoint","_wxPoint",0}, | |
2725 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
2726 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
2727 | { "_signed_short","_WXTYPE",0}, | |
2728 | { "_signed_short","_short",0}, | |
2729 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
2730 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
2731 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
2732 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
2733 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
2734 | { "_wxStatusBar","_class_wxStatusBar",0}, | |
2735 | { "_class_wxToolBarTool","_wxToolBarTool",0}, | |
2736 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
2737 | { "_class_wxCursor","_wxCursor",0}, | |
2738 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
2739 | { "_unsigned_char","_byte",0}, | |
2740 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
2741 | { "_class_wxMenu","_wxMenu",0}, | |
2742 | { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl}, | |
2743 | { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl}, | |
2744 | { "_wxControl","_class_wxControl",0}, | |
2745 | { "_class_wxListBox","_wxListBox",0}, | |
2746 | { "_unsigned_int","_wxPrintQuality",0}, | |
2747 | { "_unsigned_int","_size_t",0}, | |
2748 | { "_unsigned_int","_uint",0}, | |
2749 | { "_unsigned_int","_wxWindowID",0}, | |
2750 | { "_unsigned_int","_int",0}, | |
2751 | { "_wxIcon","_class_wxIcon",0}, | |
2752 | { "_wxDialog","_class_wxDialog",0}, | |
2753 | { "_class_wxPen","_wxPen",0}, | |
2754 | { "_short","_WXTYPE",0}, | |
2755 | { "_short","_unsigned_short",0}, | |
2756 | { "_short","_signed_short",0}, | |
2757 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
2758 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
2759 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
2760 | { "_class_wxChoice","_wxChoice",0}, | |
2761 | { "_class_wxSlider","_wxSlider",0}, | |
2762 | { "_class_wxImageList","_wxImageList",0}, | |
2763 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
2764 | { "_wxWindowID","_wxPrintQuality",0}, | |
2765 | { "_wxWindowID","_size_t",0}, | |
2766 | { "_wxWindowID","_EBool",0}, | |
2767 | { "_wxWindowID","_uint",0}, | |
2768 | { "_wxWindowID","_int",0}, | |
2769 | { "_wxWindowID","_signed_int",0}, | |
2770 | { "_wxWindowID","_unsigned_int",0}, | |
2771 | { "_int","_wxPrintQuality",0}, | |
2772 | { "_int","_size_t",0}, | |
2773 | { "_int","_EBool",0}, | |
2774 | { "_int","_uint",0}, | |
2775 | { "_int","_wxWindowID",0}, | |
2776 | { "_int","_unsigned_int",0}, | |
2777 | { "_int","_signed_int",0}, | |
2778 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2779 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
2780 | { "_wxButton","_class_wxButton",0}, | |
2781 | { "_wxSize","_class_wxSize",0}, | |
2782 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
2783 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
2784 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
2785 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
2786 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
2787 | { "_class_wxComboBox","_wxComboBox",0}, | |
2788 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2789 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
2790 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
2791 | { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl}, | |
2792 | { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl}, | |
2793 | { "_class_wxControl","_wxControl",0}, | |
2794 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
2795 | { "_class_wxIcon","_wxIcon",0}, | |
2796 | { "_class_wxColour","_wxColour",0}, | |
2797 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
2798 | { "_wxPalette","_class_wxPalette",0}, | |
2799 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
2800 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
2801 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
2802 | { "_wxRegion","_class_wxRegion",0}, | |
2803 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
2804 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
2805 | { "_wxGauge","_class_wxGauge",0}, | |
2806 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2807 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
2808 | { "_class_wxClientDC","_wxClientDC",0}, | |
2809 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
2810 | { "_class_wxSize","_wxSize",0}, | |
2811 | { "_class_wxBitmap","_wxBitmap",0}, | |
2812 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
2813 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
2814 | { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
2815 | { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler}, | |
2816 | { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
2817 | { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler}, | |
2818 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
2819 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
2820 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
2821 | { "_wxDash","_unsigned_long",0}, | |
2822 | { "_wxDash","_long",0}, | |
2823 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
2824 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
2825 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
2826 | { "_class_wxPalette","_wxPalette",0}, | |
2827 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
2828 | { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow}, | |
2829 | { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow}, | |
2830 | { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
2831 | { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow}, | |
2832 | { "_wxWindow","_class_wxWindow",0}, | |
2833 | {0,0,0}}; | |
2834 | ||
9c039d08 RD |
2835 | static PyObject *SWIG_globals; |
2836 | #ifdef __cplusplus | |
2837 | extern "C" | |
2838 | #endif | |
1d99702e | 2839 | SWIGEXPORT(void) initstattoolc() { |
9c039d08 RD |
2840 | PyObject *m, *d; |
2841 | SWIG_globals = SWIG_newvarlink(); | |
2842 | m = Py_InitModule("stattoolc", stattoolcMethods); | |
2843 | d = PyModule_GetDict(m); | |
1d99702e RD |
2844 | { |
2845 | int i; | |
2846 | for (i = 0; _swig_mapping[i].n1; i++) | |
2847 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2848 | } | |
9c039d08 | 2849 | } |