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