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