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