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