]>
Commit | Line | Data |
---|---|---|
b26e2dc4 RD |
1 | /* |
2 | * FILE : gtk/frames.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2d091820 | 6 | * Version 1.1 (Patch 6) |
b26e2dc4 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
b26e2dc4 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
2d091820 | 30 | # define SWIGEXPORT(a) a _export |
b26e2dc4 | 31 | # else |
2d091820 | 32 | # define SWIGEXPORT(a) a |
b26e2dc4 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
2d091820 | 36 | # define SWIGEXPORT(a) a |
b26e2dc4 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
b26e2dc4 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
b26e2dc4 RD |
52 | #define SWIG_init initframesc |
53 | ||
54 | #define SWIG_name "framesc" | |
55 | ||
56 | #include "helpers.h" | |
b26e2dc4 | 57 | #include <wx/minifram.h> |
b26e2dc4 RD |
58 | |
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
61 | PyObject* o3; | |
62 | if (!target) { | |
63 | target = o; | |
64 | } else if (target == Py_None) { | |
65 | Py_DECREF(Py_None); | |
66 | target = o; | |
67 | } else { | |
68 | if (!PyList_Check(target)) { | |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
84 | if (!target) { | |
85 | target = o; | |
86 | } else if (target == Py_None) { | |
87 | Py_DECREF(Py_None); | |
88 | target = o; | |
89 | } else { | |
90 | if (!PyTuple_Check(target)) { | |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
95 | o3 = PyTuple_New(1); | |
96 | PyTuple_SetItem(o3, 0, o); | |
97 | ||
98 | o2 = target; | |
99 | target = PySequence_Concat(o2, o3); | |
100 | Py_DECREF(o2); | |
101 | Py_DECREF(o3); | |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
106 | ||
105e45b9 | 107 | extern byte* byte_LIST_helper(PyObject* source); |
b26e2dc4 RD |
108 | extern int* int_LIST_helper(PyObject* source); |
109 | extern long* long_LIST_helper(PyObject* source); | |
110 | extern char** string_LIST_helper(PyObject* source); | |
111 | extern wxPoint* wxPoint_LIST_helper(PyObject* source); | |
112 | extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); | |
113 | extern wxString* wxString_LIST_helper(PyObject* source); | |
b26e2dc4 | 114 | extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); |
b26e2dc4 RD |
115 | |
116 | ||
117 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
2d091820 RD |
118 | #ifdef __cplusplus |
119 | extern "C" { | |
120 | #endif | |
b26e2dc4 RD |
121 | static void *SwigwxFrameTowxWindow(void *ptr) { |
122 | wxFrame *src; | |
123 | wxWindow *dest; | |
124 | src = (wxFrame *) ptr; | |
125 | dest = (wxWindow *) src; | |
126 | return (void *) dest; | |
127 | } | |
128 | ||
129 | static void *SwigwxFrameTowxEvtHandler(void *ptr) { | |
130 | wxFrame *src; | |
131 | wxEvtHandler *dest; | |
132 | src = (wxFrame *) ptr; | |
133 | dest = (wxEvtHandler *) src; | |
134 | return (void *) dest; | |
135 | } | |
136 | ||
137 | #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
138 | static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args) { | |
139 | PyObject * _resultobj; | |
140 | wxFrame * _result; | |
141 | wxWindow * _arg0; | |
142 | wxWindowID _arg1; | |
143 | wxString * _arg2; | |
2d091820 RD |
144 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
145 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
146 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
147 | char * _arg6 = (char *) "frame"; | |
148 | PyObject * _argo0 = 0; | |
b26e2dc4 | 149 | PyObject * _obj2 = 0; |
2d091820 RD |
150 | PyObject * _argo3 = 0; |
151 | PyObject * _argo4 = 0; | |
b26e2dc4 RD |
152 | char _ptemp[128]; |
153 | ||
154 | self = self; | |
2d091820 | 155 | if(!PyArg_ParseTuple(args,"OiO|OOls:new_wxFrame",&_argo0,&_arg1,&_obj2,&_argo3,&_argo4,&_arg5,&_arg6)) |
b26e2dc4 | 156 | return NULL; |
2d091820 RD |
157 | if (_argo0) { |
158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b26e2dc4 RD |
160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p."); |
161 | return NULL; | |
162 | } | |
163 | } | |
164 | { | |
165 | if (!PyString_Check(_obj2)) { | |
166 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
167 | return NULL; | |
168 | } | |
ab9bc19b | 169 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
b26e2dc4 | 170 | } |
2d091820 RD |
171 | if (_argo3) { |
172 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
173 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPoint_p")) { | |
b26e2dc4 RD |
174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxFrame. Expected _wxPoint_p."); |
175 | return NULL; | |
176 | } | |
177 | } | |
2d091820 RD |
178 | if (_argo4) { |
179 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
180 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxSize_p")) { | |
b26e2dc4 RD |
181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxFrame. Expected _wxSize_p."); |
182 | return NULL; | |
183 | } | |
184 | } | |
ab9bc19b RD |
185 | { |
186 | wxPy_BEGIN_ALLOW_THREADS; | |
187 | _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
188 | ||
189 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
190 | } if (_result) { |
191 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
192 | _resultobj = Py_BuildValue("s",_ptemp); | |
193 | } else { | |
194 | Py_INCREF(Py_None); | |
195 | _resultobj = Py_None; | |
196 | } | |
b26e2dc4 RD |
197 | { |
198 | if (_obj2) | |
199 | delete _arg2; | |
200 | } | |
201 | return _resultobj; | |
202 | } | |
203 | ||
204 | #define wxFrame_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
205 | static PyObject *_wrap_wxFrame_Centre(PyObject *self, PyObject *args) { | |
206 | PyObject * _resultobj; | |
207 | wxFrame * _arg0; | |
2d091820 RD |
208 | int _arg1 = (int ) wxBOTH; |
209 | PyObject * _argo0 = 0; | |
b26e2dc4 RD |
210 | |
211 | self = self; | |
2d091820 | 212 | if(!PyArg_ParseTuple(args,"O|i:wxFrame_Centre",&_argo0,&_arg1)) |
b26e2dc4 | 213 | return NULL; |
2d091820 RD |
214 | if (_argo0) { |
215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Centre. Expected _wxFrame_p."); |
218 | return NULL; | |
219 | } | |
220 | } | |
ab9bc19b RD |
221 | { |
222 | wxPy_BEGIN_ALLOW_THREADS; | |
223 | wxFrame_Centre(_arg0,_arg1); | |
224 | ||
225 | wxPy_END_ALLOW_THREADS; | |
226 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
227 | _resultobj = Py_None; |
228 | return _resultobj; | |
229 | } | |
230 | ||
231 | #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
232 | static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args) { | |
233 | PyObject * _resultobj; | |
234 | wxStatusBar * _result; | |
235 | wxFrame * _arg0; | |
2d091820 RD |
236 | int _arg1 = (int ) 1; |
237 | long _arg2 = (long ) wxST_SIZEGRIP; | |
238 | wxWindowID _arg3 = (wxWindowID ) -1; | |
239 | char * _arg4 = (char *) "statusBar"; | |
240 | PyObject * _argo0 = 0; | |
b26e2dc4 RD |
241 | char _ptemp[128]; |
242 | ||
243 | self = self; | |
2d091820 | 244 | if(!PyArg_ParseTuple(args,"O|ilis:wxFrame_CreateStatusBar",&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
b26e2dc4 | 245 | return NULL; |
2d091820 RD |
246 | if (_argo0) { |
247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p."); |
250 | return NULL; | |
251 | } | |
252 | } | |
ab9bc19b RD |
253 | { |
254 | wxPy_BEGIN_ALLOW_THREADS; | |
255 | _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4); | |
256 | ||
257 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
258 | } if (_result) { |
259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p"); | |
260 | _resultobj = Py_BuildValue("s",_ptemp); | |
261 | } else { | |
262 | Py_INCREF(Py_None); | |
263 | _resultobj = Py_None; | |
264 | } | |
b26e2dc4 RD |
265 | return _resultobj; |
266 | } | |
267 | ||
268 | #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2)) | |
269 | static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args) { | |
270 | PyObject * _resultobj; | |
271 | wxToolBar * _result; | |
272 | wxFrame * _arg0; | |
2d091820 RD |
273 | long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT; |
274 | wxWindowID _arg2 = (wxWindowID ) -1; | |
275 | char * _arg3 = (char *) "toolBar"; | |
276 | PyObject * _argo0 = 0; | |
b26e2dc4 RD |
277 | char _ptemp[128]; |
278 | ||
279 | self = self; | |
2d091820 | 280 | if(!PyArg_ParseTuple(args,"O|lis:wxFrame_CreateToolBar",&_argo0,&_arg1,&_arg2,&_arg3)) |
b26e2dc4 | 281 | return NULL; |
2d091820 RD |
282 | if (_argo0) { |
283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p."); |
286 | return NULL; | |
287 | } | |
288 | } | |
ab9bc19b RD |
289 | { |
290 | wxPy_BEGIN_ALLOW_THREADS; | |
291 | _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3); | |
292 | ||
293 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
294 | } if (_result) { |
295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p"); | |
296 | _resultobj = Py_BuildValue("s",_ptemp); | |
297 | } else { | |
298 | Py_INCREF(Py_None); | |
299 | _resultobj = Py_None; | |
300 | } | |
b26e2dc4 RD |
301 | return _resultobj; |
302 | } | |
303 | ||
304 | #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar()) | |
305 | static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args) { | |
306 | PyObject * _resultobj; | |
307 | wxMenuBar * _result; | |
308 | wxFrame * _arg0; | |
2d091820 | 309 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
310 | char _ptemp[128]; |
311 | ||
312 | self = self; | |
2d091820 | 313 | if(!PyArg_ParseTuple(args,"O:wxFrame_GetMenuBar",&_argo0)) |
b26e2dc4 | 314 | return NULL; |
2d091820 RD |
315 | if (_argo0) { |
316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p."); |
319 | return NULL; | |
320 | } | |
321 | } | |
ab9bc19b RD |
322 | { |
323 | wxPy_BEGIN_ALLOW_THREADS; | |
324 | _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0); | |
325 | ||
326 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
327 | } if (_result) { |
328 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
329 | _resultobj = Py_BuildValue("s",_ptemp); | |
330 | } else { | |
331 | Py_INCREF(Py_None); | |
332 | _resultobj = Py_None; | |
333 | } | |
b26e2dc4 RD |
334 | return _resultobj; |
335 | } | |
336 | ||
337 | #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar()) | |
338 | static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args) { | |
339 | PyObject * _resultobj; | |
340 | wxStatusBar * _result; | |
341 | wxFrame * _arg0; | |
2d091820 | 342 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
343 | char _ptemp[128]; |
344 | ||
345 | self = self; | |
2d091820 | 346 | if(!PyArg_ParseTuple(args,"O:wxFrame_GetStatusBar",&_argo0)) |
b26e2dc4 | 347 | return NULL; |
2d091820 RD |
348 | if (_argo0) { |
349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p."); |
352 | return NULL; | |
353 | } | |
354 | } | |
ab9bc19b RD |
355 | { |
356 | wxPy_BEGIN_ALLOW_THREADS; | |
357 | _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0); | |
358 | ||
359 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
360 | } if (_result) { |
361 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p"); | |
362 | _resultobj = Py_BuildValue("s",_ptemp); | |
363 | } else { | |
364 | Py_INCREF(Py_None); | |
365 | _resultobj = Py_None; | |
366 | } | |
b26e2dc4 RD |
367 | return _resultobj; |
368 | } | |
369 | ||
370 | #define wxFrame_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
371 | static PyObject *_wrap_wxFrame_GetTitle(PyObject *self, PyObject *args) { | |
372 | PyObject * _resultobj; | |
373 | wxString * _result; | |
374 | wxFrame * _arg0; | |
2d091820 | 375 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
376 | |
377 | self = self; | |
2d091820 | 378 | if(!PyArg_ParseTuple(args,"O:wxFrame_GetTitle",&_argo0)) |
b26e2dc4 | 379 | return NULL; |
2d091820 RD |
380 | if (_argo0) { |
381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetTitle. Expected _wxFrame_p."); |
384 | return NULL; | |
385 | } | |
386 | } | |
b26e2dc4 | 387 | { |
ab9bc19b RD |
388 | wxPy_BEGIN_ALLOW_THREADS; |
389 | _result = new wxString (wxFrame_GetTitle(_arg0)); | |
390 | ||
391 | wxPy_END_ALLOW_THREADS; | |
392 | }{ | |
b26e2dc4 RD |
393 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
394 | } | |
395 | { | |
396 | delete _result; | |
397 | } | |
398 | return _resultobj; | |
399 | } | |
400 | ||
401 | #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar()) | |
402 | static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args) { | |
403 | PyObject * _resultobj; | |
404 | wxToolBar * _result; | |
405 | wxFrame * _arg0; | |
2d091820 | 406 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
407 | char _ptemp[128]; |
408 | ||
409 | self = self; | |
2d091820 | 410 | if(!PyArg_ParseTuple(args,"O:wxFrame_GetToolBar",&_argo0)) |
b26e2dc4 | 411 | return NULL; |
2d091820 RD |
412 | if (_argo0) { |
413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p."); |
416 | return NULL; | |
417 | } | |
418 | } | |
ab9bc19b RD |
419 | { |
420 | wxPy_BEGIN_ALLOW_THREADS; | |
421 | _result = (wxToolBar *)wxFrame_GetToolBar(_arg0); | |
422 | ||
423 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
424 | } if (_result) { |
425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p"); | |
426 | _resultobj = Py_BuildValue("s",_ptemp); | |
427 | } else { | |
428 | Py_INCREF(Py_None); | |
429 | _resultobj = Py_None; | |
430 | } | |
b26e2dc4 RD |
431 | return _resultobj; |
432 | } | |
433 | ||
434 | #define wxFrame_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
435 | static PyObject *_wrap_wxFrame_Iconize(PyObject *self, PyObject *args) { | |
436 | PyObject * _resultobj; | |
437 | wxFrame * _arg0; | |
438 | bool _arg1; | |
2d091820 | 439 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
440 | int tempbool1; |
441 | ||
442 | self = self; | |
2d091820 | 443 | if(!PyArg_ParseTuple(args,"Oi:wxFrame_Iconize",&_argo0,&tempbool1)) |
b26e2dc4 | 444 | return NULL; |
2d091820 RD |
445 | if (_argo0) { |
446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Iconize. Expected _wxFrame_p."); |
449 | return NULL; | |
450 | } | |
451 | } | |
452 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
453 | { |
454 | wxPy_BEGIN_ALLOW_THREADS; | |
455 | wxFrame_Iconize(_arg0,_arg1); | |
456 | ||
457 | wxPy_END_ALLOW_THREADS; | |
458 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
459 | _resultobj = Py_None; |
460 | return _resultobj; | |
461 | } | |
462 | ||
463 | #define wxFrame_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
464 | static PyObject *_wrap_wxFrame_IsIconized(PyObject *self, PyObject *args) { | |
465 | PyObject * _resultobj; | |
466 | bool _result; | |
467 | wxFrame * _arg0; | |
2d091820 | 468 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
469 | |
470 | self = self; | |
2d091820 | 471 | if(!PyArg_ParseTuple(args,"O:wxFrame_IsIconized",&_argo0)) |
b26e2dc4 | 472 | return NULL; |
2d091820 RD |
473 | if (_argo0) { |
474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsIconized. Expected _wxFrame_p."); |
477 | return NULL; | |
478 | } | |
479 | } | |
ab9bc19b RD |
480 | { |
481 | wxPy_BEGIN_ALLOW_THREADS; | |
482 | _result = (bool )wxFrame_IsIconized(_arg0); | |
483 | ||
484 | wxPy_END_ALLOW_THREADS; | |
485 | } _resultobj = Py_BuildValue("i",_result); | |
b26e2dc4 RD |
486 | return _resultobj; |
487 | } | |
488 | ||
489 | #define wxFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) | |
490 | static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args) { | |
491 | PyObject * _resultobj; | |
492 | wxFrame * _arg0; | |
493 | bool _arg1; | |
2d091820 | 494 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
495 | int tempbool1; |
496 | ||
497 | self = self; | |
2d091820 | 498 | if(!PyArg_ParseTuple(args,"Oi:wxFrame_Maximize",&_argo0,&tempbool1)) |
b26e2dc4 | 499 | return NULL; |
2d091820 RD |
500 | if (_argo0) { |
501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Maximize. Expected _wxFrame_p."); |
504 | return NULL; | |
505 | } | |
506 | } | |
507 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
508 | { |
509 | wxPy_BEGIN_ALLOW_THREADS; | |
510 | wxFrame_Maximize(_arg0,_arg1); | |
511 | ||
512 | wxPy_END_ALLOW_THREADS; | |
513 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
514 | _resultobj = Py_None; |
515 | return _resultobj; | |
516 | } | |
517 | ||
faf3cb35 RD |
518 | #define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
519 | static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *args) { | |
520 | PyObject * _resultobj; | |
521 | wxFrame * _arg0; | |
522 | wxAcceleratorTable * _arg1; | |
2d091820 RD |
523 | PyObject * _argo0 = 0; |
524 | PyObject * _argo1 = 0; | |
faf3cb35 RD |
525 | |
526 | self = self; | |
2d091820 | 527 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetAcceleratorTable",&_argo0,&_argo1)) |
faf3cb35 | 528 | return NULL; |
2d091820 RD |
529 | if (_argo0) { |
530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
faf3cb35 RD |
532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p."); |
533 | return NULL; | |
534 | } | |
535 | } | |
2d091820 RD |
536 | if (_argo1) { |
537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
faf3cb35 RD |
539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
540 | return NULL; | |
541 | } | |
542 | } | |
ab9bc19b RD |
543 | { |
544 | wxPy_BEGIN_ALLOW_THREADS; | |
545 | wxFrame_SetAcceleratorTable(_arg0,*_arg1); | |
546 | ||
547 | wxPy_END_ALLOW_THREADS; | |
548 | } Py_INCREF(Py_None); | |
faf3cb35 RD |
549 | _resultobj = Py_None; |
550 | return _resultobj; | |
551 | } | |
552 | ||
b26e2dc4 RD |
553 | #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
554 | static PyObject *_wrap_wxFrame_SetIcon(PyObject *self, PyObject *args) { | |
555 | PyObject * _resultobj; | |
556 | wxFrame * _arg0; | |
557 | wxIcon * _arg1; | |
2d091820 RD |
558 | PyObject * _argo0 = 0; |
559 | PyObject * _argo1 = 0; | |
b26e2dc4 RD |
560 | |
561 | self = self; | |
2d091820 | 562 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetIcon",&_argo0,&_argo1)) |
b26e2dc4 | 563 | return NULL; |
2d091820 RD |
564 | if (_argo0) { |
565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetIcon. Expected _wxFrame_p."); |
568 | return NULL; | |
569 | } | |
570 | } | |
2d091820 RD |
571 | if (_argo1) { |
572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
b26e2dc4 RD |
574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetIcon. Expected _wxIcon_p."); |
575 | return NULL; | |
576 | } | |
577 | } | |
ab9bc19b RD |
578 | { |
579 | wxPy_BEGIN_ALLOW_THREADS; | |
580 | wxFrame_SetIcon(_arg0,*_arg1); | |
581 | ||
582 | wxPy_END_ALLOW_THREADS; | |
583 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
584 | _resultobj = Py_None; |
585 | return _resultobj; | |
586 | } | |
587 | ||
588 | #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0)) | |
589 | static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args) { | |
590 | PyObject * _resultobj; | |
591 | wxFrame * _arg0; | |
592 | wxMenuBar * _arg1; | |
2d091820 RD |
593 | PyObject * _argo0 = 0; |
594 | PyObject * _argo1 = 0; | |
b26e2dc4 RD |
595 | |
596 | self = self; | |
2d091820 | 597 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetMenuBar",&_argo0,&_argo1)) |
b26e2dc4 | 598 | return NULL; |
2d091820 RD |
599 | if (_argo0) { |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p."); |
603 | return NULL; | |
604 | } | |
605 | } | |
2d091820 RD |
606 | if (_argo1) { |
607 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
608 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) { | |
b26e2dc4 RD |
609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p."); |
610 | return NULL; | |
611 | } | |
612 | } | |
ab9bc19b RD |
613 | { |
614 | wxPy_BEGIN_ALLOW_THREADS; | |
615 | wxFrame_SetMenuBar(_arg0,_arg1); | |
616 | ||
617 | wxPy_END_ALLOW_THREADS; | |
618 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
619 | _resultobj = Py_None; |
620 | return _resultobj; | |
621 | } | |
622 | ||
623 | #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0)) | |
624 | static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args) { | |
625 | PyObject * _resultobj; | |
626 | wxFrame * _arg0; | |
627 | wxStatusBar * _arg1; | |
2d091820 RD |
628 | PyObject * _argo0 = 0; |
629 | PyObject * _argo1 = 0; | |
b26e2dc4 RD |
630 | |
631 | self = self; | |
2d091820 | 632 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetStatusBar",&_argo0,&_argo1)) |
b26e2dc4 | 633 | return NULL; |
2d091820 RD |
634 | if (_argo0) { |
635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p."); |
638 | return NULL; | |
639 | } | |
640 | } | |
2d091820 RD |
641 | if (_argo1) { |
642 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
643 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) { | |
b26e2dc4 RD |
644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p."); |
645 | return NULL; | |
646 | } | |
647 | } | |
ab9bc19b RD |
648 | { |
649 | wxPy_BEGIN_ALLOW_THREADS; | |
650 | wxFrame_SetStatusBar(_arg0,_arg1); | |
651 | ||
652 | wxPy_END_ALLOW_THREADS; | |
653 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
654 | _resultobj = Py_None; |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
659 | static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args) { | |
660 | PyObject * _resultobj; | |
661 | wxFrame * _arg0; | |
662 | wxString * _arg1; | |
2d091820 RD |
663 | int _arg2 = (int ) 0; |
664 | PyObject * _argo0 = 0; | |
b26e2dc4 RD |
665 | PyObject * _obj1 = 0; |
666 | ||
667 | self = self; | |
2d091820 | 668 | if(!PyArg_ParseTuple(args,"OO|i:wxFrame_SetStatusText",&_argo0,&_obj1,&_arg2)) |
b26e2dc4 | 669 | return NULL; |
2d091820 RD |
670 | if (_argo0) { |
671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p."); |
674 | return NULL; | |
675 | } | |
676 | } | |
677 | { | |
678 | if (!PyString_Check(_obj1)) { | |
679 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
680 | return NULL; | |
681 | } | |
ab9bc19b | 682 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
b26e2dc4 | 683 | } |
ab9bc19b RD |
684 | { |
685 | wxPy_BEGIN_ALLOW_THREADS; | |
686 | wxFrame_SetStatusText(_arg0,*_arg1,_arg2); | |
687 | ||
688 | wxPy_END_ALLOW_THREADS; | |
689 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
690 | _resultobj = Py_None; |
691 | { | |
692 | if (_obj1) | |
693 | delete _arg1; | |
694 | } | |
695 | return _resultobj; | |
696 | } | |
697 | ||
698 | #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1)) | |
699 | static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args) { | |
700 | PyObject * _resultobj; | |
701 | wxFrame * _arg0; | |
702 | int _arg1; | |
703 | int * _arg2; | |
2d091820 | 704 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
705 | PyObject * _obj2 = 0; |
706 | ||
707 | self = self; | |
2d091820 | 708 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetStatusWidths",&_argo0,&_obj2)) |
b26e2dc4 | 709 | return NULL; |
2d091820 RD |
710 | if (_argo0) { |
711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p."); |
714 | return NULL; | |
715 | } | |
716 | } | |
717 | if (_obj2) | |
718 | { | |
719 | _arg2 = int_LIST_helper(_obj2); | |
720 | if (_arg2 == NULL) { | |
721 | return NULL; | |
722 | } | |
723 | } | |
724 | { | |
ab9bc19b RD |
725 | if (_obj2) { |
726 | _arg1 = PyList_Size(_obj2); | |
727 | } | |
728 | else { | |
729 | _arg1 = 0; | |
730 | } | |
b26e2dc4 | 731 | } |
ab9bc19b RD |
732 | { |
733 | wxPy_BEGIN_ALLOW_THREADS; | |
734 | wxFrame_SetStatusWidths(_arg0,_arg1,_arg2); | |
735 | ||
736 | wxPy_END_ALLOW_THREADS; | |
737 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
738 | _resultobj = Py_None; |
739 | { | |
740 | delete [] _arg2; | |
741 | } | |
742 | return _resultobj; | |
743 | } | |
744 | ||
745 | #define wxFrame_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
746 | static PyObject *_wrap_wxFrame_SetTitle(PyObject *self, PyObject *args) { | |
747 | PyObject * _resultobj; | |
748 | wxFrame * _arg0; | |
749 | wxString * _arg1; | |
2d091820 | 750 | PyObject * _argo0 = 0; |
b26e2dc4 RD |
751 | PyObject * _obj1 = 0; |
752 | ||
753 | self = self; | |
2d091820 | 754 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetTitle",&_argo0,&_obj1)) |
b26e2dc4 | 755 | return NULL; |
2d091820 RD |
756 | if (_argo0) { |
757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetTitle. Expected _wxFrame_p."); |
760 | return NULL; | |
761 | } | |
762 | } | |
763 | { | |
764 | if (!PyString_Check(_obj1)) { | |
765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
766 | return NULL; | |
767 | } | |
ab9bc19b | 768 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
b26e2dc4 | 769 | } |
ab9bc19b RD |
770 | { |
771 | wxPy_BEGIN_ALLOW_THREADS; | |
772 | wxFrame_SetTitle(_arg0,*_arg1); | |
773 | ||
774 | wxPy_END_ALLOW_THREADS; | |
775 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
776 | _resultobj = Py_None; |
777 | { | |
778 | if (_obj1) | |
779 | delete _arg1; | |
780 | } | |
781 | return _resultobj; | |
782 | } | |
783 | ||
784 | #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0)) | |
785 | static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args) { | |
786 | PyObject * _resultobj; | |
787 | wxFrame * _arg0; | |
788 | wxToolBar * _arg1; | |
2d091820 RD |
789 | PyObject * _argo0 = 0; |
790 | PyObject * _argo1 = 0; | |
b26e2dc4 RD |
791 | |
792 | self = self; | |
2d091820 | 793 | if(!PyArg_ParseTuple(args,"OO:wxFrame_SetToolBar",&_argo0,&_argo1)) |
b26e2dc4 | 794 | return NULL; |
2d091820 RD |
795 | if (_argo0) { |
796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
b26e2dc4 RD |
798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p."); |
799 | return NULL; | |
800 | } | |
801 | } | |
2d091820 RD |
802 | if (_argo1) { |
803 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
804 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) { | |
b26e2dc4 RD |
805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p."); |
806 | return NULL; | |
807 | } | |
808 | } | |
ab9bc19b RD |
809 | { |
810 | wxPy_BEGIN_ALLOW_THREADS; | |
811 | wxFrame_SetToolBar(_arg0,_arg1); | |
812 | ||
813 | wxPy_END_ALLOW_THREADS; | |
814 | } Py_INCREF(Py_None); | |
b26e2dc4 RD |
815 | _resultobj = Py_None; |
816 | return _resultobj; | |
817 | } | |
818 | ||
105e45b9 RD |
819 | static void *SwigwxMiniFrameTowxFrame(void *ptr) { |
820 | wxMiniFrame *src; | |
821 | wxFrame *dest; | |
822 | src = (wxMiniFrame *) ptr; | |
823 | dest = (wxFrame *) src; | |
824 | return (void *) dest; | |
825 | } | |
826 | ||
827 | static void *SwigwxMiniFrameTowxWindow(void *ptr) { | |
828 | wxMiniFrame *src; | |
829 | wxWindow *dest; | |
830 | src = (wxMiniFrame *) ptr; | |
831 | dest = (wxWindow *) src; | |
832 | return (void *) dest; | |
833 | } | |
834 | ||
835 | static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) { | |
836 | wxMiniFrame *src; | |
837 | wxEvtHandler *dest; | |
838 | src = (wxMiniFrame *) ptr; | |
839 | dest = (wxEvtHandler *) src; | |
840 | return (void *) dest; | |
841 | } | |
842 | ||
843 | #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
844 | static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args) { | |
845 | PyObject * _resultobj; | |
846 | wxMiniFrame * _result; | |
847 | wxWindow * _arg0; | |
848 | wxWindowID _arg1; | |
849 | wxString * _arg2; | |
2d091820 RD |
850 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
851 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
852 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
853 | char * _arg6 = (char *) "frame"; | |
854 | PyObject * _argo0 = 0; | |
105e45b9 | 855 | PyObject * _obj2 = 0; |
2d091820 RD |
856 | PyObject * _argo3 = 0; |
857 | PyObject * _argo4 = 0; | |
105e45b9 RD |
858 | char _ptemp[128]; |
859 | ||
860 | self = self; | |
2d091820 | 861 | if(!PyArg_ParseTuple(args,"OiO|OOls:new_wxMiniFrame",&_argo0,&_arg1,&_obj2,&_argo3,&_argo4,&_arg5,&_arg6)) |
105e45b9 | 862 | return NULL; |
2d091820 RD |
863 | if (_argo0) { |
864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p."); |
867 | return NULL; | |
868 | } | |
869 | } | |
870 | { | |
871 | if (!PyString_Check(_obj2)) { | |
872 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
873 | return NULL; | |
874 | } | |
ab9bc19b | 875 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
105e45b9 | 876 | } |
2d091820 RD |
877 | if (_argo3) { |
878 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
879 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPoint_p")) { | |
105e45b9 RD |
880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMiniFrame. Expected _wxPoint_p."); |
881 | return NULL; | |
882 | } | |
883 | } | |
2d091820 RD |
884 | if (_argo4) { |
885 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxSize_p")) { | |
105e45b9 RD |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMiniFrame. Expected _wxSize_p."); |
888 | return NULL; | |
889 | } | |
890 | } | |
ab9bc19b RD |
891 | { |
892 | wxPy_BEGIN_ALLOW_THREADS; | |
893 | _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
894 | ||
895 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
896 | } if (_result) { |
897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
898 | _resultobj = Py_BuildValue("s",_ptemp); | |
899 | } else { | |
900 | Py_INCREF(Py_None); | |
901 | _resultobj = Py_None; | |
902 | } | |
105e45b9 RD |
903 | { |
904 | if (_obj2) | |
905 | delete _arg2; | |
906 | } | |
907 | return _resultobj; | |
908 | } | |
909 | ||
b26e2dc4 | 910 | static PyMethodDef framescMethods[] = { |
2d091820 RD |
911 | { "new_wxMiniFrame", _wrap_new_wxMiniFrame, METH_VARARGS }, |
912 | { "wxFrame_SetToolBar", _wrap_wxFrame_SetToolBar, METH_VARARGS }, | |
913 | { "wxFrame_SetTitle", _wrap_wxFrame_SetTitle, METH_VARARGS }, | |
914 | { "wxFrame_SetStatusWidths", _wrap_wxFrame_SetStatusWidths, METH_VARARGS }, | |
915 | { "wxFrame_SetStatusText", _wrap_wxFrame_SetStatusText, METH_VARARGS }, | |
916 | { "wxFrame_SetStatusBar", _wrap_wxFrame_SetStatusBar, METH_VARARGS }, | |
917 | { "wxFrame_SetMenuBar", _wrap_wxFrame_SetMenuBar, METH_VARARGS }, | |
918 | { "wxFrame_SetIcon", _wrap_wxFrame_SetIcon, METH_VARARGS }, | |
919 | { "wxFrame_SetAcceleratorTable", _wrap_wxFrame_SetAcceleratorTable, METH_VARARGS }, | |
920 | { "wxFrame_Maximize", _wrap_wxFrame_Maximize, METH_VARARGS }, | |
921 | { "wxFrame_IsIconized", _wrap_wxFrame_IsIconized, METH_VARARGS }, | |
922 | { "wxFrame_Iconize", _wrap_wxFrame_Iconize, METH_VARARGS }, | |
923 | { "wxFrame_GetToolBar", _wrap_wxFrame_GetToolBar, METH_VARARGS }, | |
924 | { "wxFrame_GetTitle", _wrap_wxFrame_GetTitle, METH_VARARGS }, | |
925 | { "wxFrame_GetStatusBar", _wrap_wxFrame_GetStatusBar, METH_VARARGS }, | |
926 | { "wxFrame_GetMenuBar", _wrap_wxFrame_GetMenuBar, METH_VARARGS }, | |
927 | { "wxFrame_CreateToolBar", _wrap_wxFrame_CreateToolBar, METH_VARARGS }, | |
928 | { "wxFrame_CreateStatusBar", _wrap_wxFrame_CreateStatusBar, METH_VARARGS }, | |
929 | { "wxFrame_Centre", _wrap_wxFrame_Centre, METH_VARARGS }, | |
930 | { "new_wxFrame", _wrap_new_wxFrame, METH_VARARGS }, | |
b26e2dc4 RD |
931 | { NULL, NULL } |
932 | }; | |
2d091820 RD |
933 | #ifdef __cplusplus |
934 | } | |
935 | #endif | |
936 | /* | |
937 | * This table is used by the pointer type-checker | |
938 | */ | |
939 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
940 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
941 | { "_wxEvent","_class_wxEvent",0}, | |
942 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
943 | { "_signed_long","_long",0}, | |
944 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
945 | { "_wxPrintQuality","_int",0}, | |
946 | { "_wxPrintQuality","_signed_int",0}, | |
947 | { "_wxPrintQuality","_unsigned_int",0}, | |
948 | { "_wxPrintQuality","_wxWindowID",0}, | |
949 | { "_wxPrintQuality","_uint",0}, | |
950 | { "_wxPrintQuality","_EBool",0}, | |
951 | { "_wxPrintQuality","_size_t",0}, | |
952 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
953 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
954 | { "_class_wxEvtHandler","_class_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
955 | { "_class_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
956 | { "_class_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler}, | |
957 | { "_class_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, | |
958 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
959 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
960 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
961 | { "_wxCursor","_class_wxCursor",0}, | |
962 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
963 | { "_wxMask","_class_wxMask",0}, | |
964 | { "_wxPen","_class_wxPen",0}, | |
965 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
966 | { "_byte","_unsigned_char",0}, | |
967 | { "_wxStaticBox","_class_wxStaticBox",0}, | |
968 | { "_wxChoice","_class_wxChoice",0}, | |
969 | { "_wxSlider","_class_wxSlider",0}, | |
970 | { "_long","_wxDash",0}, | |
971 | { "_long","_unsigned_long",0}, | |
972 | { "_long","_signed_long",0}, | |
973 | { "_wxImageList","_class_wxImageList",0}, | |
974 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
975 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
976 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
977 | { "_class_wxGauge","_wxGauge",0}, | |
978 | { "_wxDC","_class_wxDC",0}, | |
979 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
980 | { "_size_t","_wxPrintQuality",0}, | |
981 | { "_size_t","_unsigned_int",0}, | |
982 | { "_size_t","_int",0}, | |
983 | { "_size_t","_wxWindowID",0}, | |
984 | { "_size_t","_uint",0}, | |
985 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
986 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
987 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
988 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
989 | { "_class_wxStatusBar","_wxStatusBar",0}, | |
990 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
991 | { "_wxPanel","_class_wxPanel",0}, | |
992 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
993 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
994 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
995 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
996 | { "_class_wxMask","_wxMask",0}, | |
997 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
998 | { "_wxColour","_class_wxColour",0}, | |
999 | { "_class_wxDialog","_wxDialog",0}, | |
1000 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
1001 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
1002 | { "_wxToolBar","_class_wxToolBar",0}, | |
1003 | { "_wxStaticLine","_class_wxStaticLine",0}, | |
1004 | { "_wxBrush","_class_wxBrush",0}, | |
1005 | { "_wxMiniFrame","_class_wxMiniFrame",0}, | |
1006 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
1007 | { "_uint","_wxPrintQuality",0}, | |
1008 | { "_uint","_size_t",0}, | |
1009 | { "_uint","_unsigned_int",0}, | |
1010 | { "_uint","_int",0}, | |
1011 | { "_uint","_wxWindowID",0}, | |
1012 | { "_class_wxEvent","_wxEvent",0}, | |
1013 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
1014 | { "_wxRect","_class_wxRect",0}, | |
1015 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
1016 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
1017 | { "_wxPoint","_class_wxPoint",0}, | |
1018 | { "_class_wxButton","_wxButton",0}, | |
1019 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
1020 | { "_wxBitmap","_class_wxBitmap",0}, | |
1021 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
1022 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
1023 | { "_wxScrollBar","_class_wxScrollBar",0}, | |
1024 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
1025 | { "_wxToolBarTool","_class_wxToolBarTool",0}, | |
1026 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
1027 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
1028 | { "_class_wxPyEvent","_wxPyEvent",0}, | |
1029 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
1030 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
1031 | { "_class_wxToolBar","_wxToolBar",0}, | |
1032 | { "_class_wxStaticLine","_wxStaticLine",0}, | |
1033 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
1034 | { "_EBool","_wxPrintQuality",0}, | |
1035 | { "_EBool","_signed_int",0}, | |
1036 | { "_EBool","_int",0}, | |
1037 | { "_EBool","_wxWindowID",0}, | |
1038 | { "_class_wxRegion","_wxRegion",0}, | |
1039 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
1040 | { "_wxStaticText","_class_wxStaticText",0}, | |
1041 | { "_wxFont","_class_wxFont",0}, | |
1042 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
1043 | { "_unsigned_long","_wxDash",0}, | |
1044 | { "_unsigned_long","_long",0}, | |
1045 | { "_class_wxRect","_wxRect",0}, | |
1046 | { "_class_wxDC","_wxDC",0}, | |
1047 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
1048 | { "_wxFocusEvent","_class_wxFocusEvent",0}, | |
1049 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
1050 | { "_class_wxSpinButton","_wxSpinButton",0}, | |
1051 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
1052 | { "_class_wxPanel","_wxPanel",0}, | |
1053 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
1054 | { "_wxComboBox","_class_wxComboBox",0}, | |
1055 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
1056 | { "_signed_int","_wxPrintQuality",0}, | |
1057 | { "_signed_int","_EBool",0}, | |
1058 | { "_signed_int","_wxWindowID",0}, | |
1059 | { "_signed_int","_int",0}, | |
1060 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
1061 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
1062 | { "_wxMenu","_class_wxMenu",0}, | |
1063 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
1064 | { "_wxListBox","_class_wxListBox",0}, | |
1065 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
1066 | { "_WXTYPE","_short",0}, | |
1067 | { "_WXTYPE","_signed_short",0}, | |
1068 | { "_WXTYPE","_unsigned_short",0}, | |
1069 | { "_class_wxBrush","_wxBrush",0}, | |
1070 | { "_unsigned_short","_WXTYPE",0}, | |
1071 | { "_unsigned_short","_short",0}, | |
1072 | { "_class_wxWindow","_class_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1073 | { "_class_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1074 | { "_class_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow}, | |
1075 | { "_class_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, | |
1076 | { "_class_wxWindow","_wxWindow",0}, | |
1077 | { "_class_wxStaticText","_wxStaticText",0}, | |
1078 | { "_class_wxFont","_wxFont",0}, | |
1079 | { "_class_wxCloseEvent","_wxCloseEvent",0}, | |
1080 | { "_class_wxMenuEvent","_wxMenuEvent",0}, | |
1081 | { "_wxClientDC","_class_wxClientDC",0}, | |
1082 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
1083 | { "_class_wxPoint","_wxPoint",0}, | |
1084 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
1085 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
1086 | { "_signed_short","_WXTYPE",0}, | |
1087 | { "_signed_short","_short",0}, | |
1088 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
1089 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
1090 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
1091 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
1092 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
1093 | { "_wxStatusBar","_class_wxStatusBar",0}, | |
1094 | { "_class_wxToolBarTool","_wxToolBarTool",0}, | |
1095 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
1096 | { "_class_wxCursor","_wxCursor",0}, | |
1097 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
1098 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
1099 | { "_unsigned_char","_byte",0}, | |
1100 | { "_class_wxMenu","_wxMenu",0}, | |
1101 | { "_wxControl","_class_wxControl",0}, | |
1102 | { "_class_wxListBox","_wxListBox",0}, | |
1103 | { "_unsigned_int","_wxPrintQuality",0}, | |
1104 | { "_unsigned_int","_size_t",0}, | |
1105 | { "_unsigned_int","_uint",0}, | |
1106 | { "_unsigned_int","_wxWindowID",0}, | |
1107 | { "_unsigned_int","_int",0}, | |
1108 | { "_wxIcon","_class_wxIcon",0}, | |
1109 | { "_wxDialog","_class_wxDialog",0}, | |
1110 | { "_class_wxPen","_wxPen",0}, | |
1111 | { "_short","_WXTYPE",0}, | |
1112 | { "_short","_unsigned_short",0}, | |
1113 | { "_short","_signed_short",0}, | |
1114 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
1115 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
1116 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
1117 | { "_class_wxChoice","_wxChoice",0}, | |
1118 | { "_class_wxSlider","_wxSlider",0}, | |
1119 | { "_class_wxImageList","_wxImageList",0}, | |
1120 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
1121 | { "_wxFrame","_class_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
1122 | { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
1123 | { "_wxFrame","_class_wxFrame",0}, | |
1124 | { "_wxWindowID","_wxPrintQuality",0}, | |
1125 | { "_wxWindowID","_size_t",0}, | |
1126 | { "_wxWindowID","_EBool",0}, | |
1127 | { "_wxWindowID","_uint",0}, | |
1128 | { "_wxWindowID","_int",0}, | |
1129 | { "_wxWindowID","_signed_int",0}, | |
1130 | { "_wxWindowID","_unsigned_int",0}, | |
1131 | { "_int","_wxPrintQuality",0}, | |
1132 | { "_int","_size_t",0}, | |
1133 | { "_int","_EBool",0}, | |
1134 | { "_int","_uint",0}, | |
1135 | { "_int","_wxWindowID",0}, | |
1136 | { "_int","_unsigned_int",0}, | |
1137 | { "_int","_signed_int",0}, | |
1138 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
1139 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
1140 | { "_wxButton","_class_wxButton",0}, | |
1141 | { "_wxSize","_class_wxSize",0}, | |
1142 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
1143 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
1144 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
1145 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
1146 | { "_class_wxComboBox","_wxComboBox",0}, | |
1147 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
1148 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
1149 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
1150 | { "_class_wxControl","_wxControl",0}, | |
1151 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
1152 | { "_class_wxIcon","_wxIcon",0}, | |
1153 | { "_class_wxColour","_wxColour",0}, | |
1154 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
1155 | { "_wxPalette","_class_wxPalette",0}, | |
1156 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
1157 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
1158 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
1159 | { "_class_wxMiniFrame","_wxMiniFrame",0}, | |
1160 | { "_wxRegion","_class_wxRegion",0}, | |
1161 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
1162 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
1163 | { "_wxGauge","_class_wxGauge",0}, | |
1164 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
1165 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
1166 | { "_class_wxClientDC","_wxClientDC",0}, | |
1167 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
1168 | { "_class_wxSize","_wxSize",0}, | |
1169 | { "_class_wxBitmap","_wxBitmap",0}, | |
1170 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
1171 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
1172 | { "_wxEvtHandler","_class_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
1173 | { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, | |
1174 | { "_wxEvtHandler","_class_wxFrame",SwigwxFrameTowxEvtHandler}, | |
1175 | { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, | |
1176 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
1177 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
1178 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1179 | { "_wxDash","_unsigned_long",0}, | |
1180 | { "_wxDash","_long",0}, | |
1181 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
1182 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
1183 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
1184 | { "_class_wxPalette","_wxPalette",0}, | |
1185 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
1186 | { "_wxWindow","_class_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1187 | { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, | |
1188 | { "_wxWindow","_class_wxFrame",SwigwxFrameTowxWindow}, | |
1189 | { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, | |
1190 | { "_wxWindow","_class_wxWindow",0}, | |
1191 | { "_class_wxFrame","_class_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
1192 | { "_class_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, | |
1193 | { "_class_wxFrame","_wxFrame",0}, | |
1194 | {0,0,0}}; | |
1195 | ||
b26e2dc4 RD |
1196 | static PyObject *SWIG_globals; |
1197 | #ifdef __cplusplus | |
1198 | extern "C" | |
1199 | #endif | |
2d091820 | 1200 | SWIGEXPORT(void) initframesc() { |
b26e2dc4 RD |
1201 | PyObject *m, *d; |
1202 | SWIG_globals = SWIG_newvarlink(); | |
1203 | m = Py_InitModule("framesc", framescMethods); | |
1204 | d = PyModule_GetDict(m); | |
2d091820 RD |
1205 | { |
1206 | int i; | |
1207 | for (i = 0; _swig_mapping[i].n1; i++) | |
1208 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1209 | } | |
b26e2dc4 | 1210 | } |