]>
Commit | Line | Data |
---|---|---|
9c039d08 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/frames.cpp |
9c039d08 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 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 | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
9c039d08 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
9c039d08 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
9c039d08 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
9c039d08 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
9c039d08 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
9c039d08 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
9c039d08 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
9c039d08 RD |
54 | #define SWIG_init initframesc |
55 | ||
56 | #define SWIG_name "framesc" | |
57 | ||
58 | #include "helpers.h" | |
9c039d08 | 59 | #include <wx/minifram.h> |
9c039d08 | 60 | |
9c039d08 RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
3bcd5e1c | 66 | if (!target) { |
9c039d08 | 67 | target = o; |
3bcd5e1c | 68 | } else if (target == Py_None) { |
9c039d08 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
3bcd5e1c | 71 | } else { |
9c039d08 RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
3bcd5e1c RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
9c039d08 RD |
79 | |
80 | o2 = target; | |
3bcd5e1c RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
9c039d08 RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
7a446686 RD |
88 | #if PYTHON_API_VERSION >= 1009 |
89 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
90 | #else | |
0220cbc1 | 91 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 92 | #endif |
1d99702e RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
65191ae8 RD |
96 | static void *SwigwxTopLevelWindowTowxWindow(void *ptr) { |
97 | wxTopLevelWindow *src; | |
9c039d08 | 98 | wxWindow *dest; |
65191ae8 | 99 | src = (wxTopLevelWindow *) ptr; |
9c039d08 RD |
100 | dest = (wxWindow *) src; |
101 | return (void *) dest; | |
102 | } | |
103 | ||
65191ae8 RD |
104 | static void *SwigwxTopLevelWindowTowxEvtHandler(void *ptr) { |
105 | wxTopLevelWindow *src; | |
9c039d08 | 106 | wxEvtHandler *dest; |
65191ae8 | 107 | src = (wxTopLevelWindow *) ptr; |
9c039d08 RD |
108 | dest = (wxEvtHandler *) src; |
109 | return (void *) dest; | |
110 | } | |
111 | ||
65191ae8 RD |
112 | static void *SwigwxTopLevelWindowTowxObject(void *ptr) { |
113 | wxTopLevelWindow *src; | |
9df61a29 | 114 | wxObject *dest; |
65191ae8 | 115 | src = (wxTopLevelWindow *) ptr; |
9df61a29 RD |
116 | dest = (wxObject *) src; |
117 | return (void *) dest; | |
118 | } | |
119 | ||
65191ae8 RD |
120 | #define new_wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
121 | static PyObject *_wrap_new_wxTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 122 | PyObject * _resultobj; |
65191ae8 | 123 | wxTopLevelWindow * _result; |
9c039d08 RD |
124 | wxWindow * _arg0; |
125 | wxWindowID _arg1; | |
126 | wxString * _arg2; | |
b68dc582 RD |
127 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
128 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
129 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; |
130 | char * _arg6 = (char *) "frame"; | |
131 | PyObject * _argo0 = 0; | |
9c039d08 | 132 | PyObject * _obj2 = 0; |
2f90df85 RD |
133 | wxPoint temp; |
134 | PyObject * _obj3 = 0; | |
135 | wxSize temp0; | |
136 | PyObject * _obj4 = 0; | |
efc5f224 | 137 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
9c039d08 RD |
138 | char _ptemp[128]; |
139 | ||
140 | self = self; | |
65191ae8 | 141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxTopLevelWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 142 | return NULL; |
1d99702e RD |
143 | if (_argo0) { |
144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
65191ae8 | 146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTopLevelWindow. Expected _wxWindow_p."); |
9c039d08 RD |
147 | return NULL; |
148 | } | |
149 | } | |
150 | { | |
2cd2fac8 RD |
151 | #if PYTHON_API_VERSION >= 1009 |
152 | char* tmpPtr; int tmpSize; | |
153 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
155 | return NULL; |
156 | } | |
157 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
158 | return NULL; | |
159 | _arg2 = new wxString(tmpPtr, tmpSize); | |
160 | #else | |
9c039d08 RD |
161 | if (!PyString_Check(_obj2)) { |
162 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
163 | return NULL; | |
164 | } | |
2cd2fac8 RD |
165 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
166 | #endif | |
9c039d08 | 167 | } |
2f90df85 RD |
168 | if (_obj3) |
169 | { | |
170 | _arg3 = &temp; | |
171 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9c039d08 | 172 | return NULL; |
2f90df85 RD |
173 | } |
174 | if (_obj4) | |
175 | { | |
176 | _arg4 = &temp0; | |
177 | if (! wxSize_helper(_obj4, &_arg4)) | |
9c039d08 | 178 | return NULL; |
2f90df85 | 179 | } |
cf694132 | 180 | { |
474c48f9 | 181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 182 | _result = (wxTopLevelWindow *)new_wxTopLevelWindow(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
cf694132 | 183 | |
474c48f9 | 184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 185 | if (PyErr_Occurred()) return NULL; |
1d99702e | 186 | } if (_result) { |
65191ae8 | 187 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p"); |
1d99702e RD |
188 | _resultobj = Py_BuildValue("s",_ptemp); |
189 | } else { | |
190 | Py_INCREF(Py_None); | |
191 | _resultobj = Py_None; | |
192 | } | |
9c039d08 RD |
193 | { |
194 | if (_obj2) | |
195 | delete _arg2; | |
196 | } | |
197 | return _resultobj; | |
198 | } | |
199 | ||
65191ae8 RD |
200 | #define new_wxPreTopLevelWindow() (new wxTopLevelWindow()) |
201 | static PyObject *_wrap_new_wxPreTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
aa2a5b86 | 202 | PyObject * _resultobj; |
65191ae8 | 203 | wxTopLevelWindow * _result; |
aa2a5b86 RD |
204 | char *_kwnames[] = { NULL }; |
205 | char _ptemp[128]; | |
206 | ||
207 | self = self; | |
65191ae8 | 208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTopLevelWindow",_kwnames)) |
aa2a5b86 RD |
209 | return NULL; |
210 | { | |
474c48f9 | 211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 212 | _result = (wxTopLevelWindow *)new_wxPreTopLevelWindow(); |
aa2a5b86 | 213 | |
474c48f9 | 214 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
215 | if (PyErr_Occurred()) return NULL; |
216 | } if (_result) { | |
65191ae8 | 217 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p"); |
aa2a5b86 RD |
218 | _resultobj = Py_BuildValue("s",_ptemp); |
219 | } else { | |
220 | Py_INCREF(Py_None); | |
221 | _resultobj = Py_None; | |
222 | } | |
223 | return _resultobj; | |
224 | } | |
225 | ||
65191ae8 RD |
226 | #define wxTopLevelWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
227 | static PyObject *_wrap_wxTopLevelWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
aa2a5b86 RD |
228 | PyObject * _resultobj; |
229 | bool _result; | |
65191ae8 | 230 | wxTopLevelWindow * _arg0; |
aa2a5b86 RD |
231 | wxWindow * _arg1; |
232 | wxWindowID _arg2; | |
233 | wxString * _arg3; | |
234 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
235 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
236 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
237 | char * _arg7 = (char *) "frame"; | |
238 | PyObject * _argo0 = 0; | |
239 | PyObject * _argo1 = 0; | |
240 | PyObject * _obj3 = 0; | |
241 | wxPoint temp; | |
242 | PyObject * _obj4 = 0; | |
243 | wxSize temp0; | |
244 | PyObject * _obj5 = 0; | |
245 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
246 | ||
247 | self = self; | |
65191ae8 | 248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxTopLevelWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) |
aa2a5b86 RD |
249 | return NULL; |
250 | if (_argo0) { | |
251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Create. Expected _wxTopLevelWindow_p."); | |
aa2a5b86 RD |
254 | return NULL; |
255 | } | |
256 | } | |
257 | if (_argo1) { | |
258 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
65191ae8 | 260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_Create. Expected _wxWindow_p."); |
aa2a5b86 RD |
261 | return NULL; |
262 | } | |
263 | } | |
264 | { | |
265 | #if PYTHON_API_VERSION >= 1009 | |
266 | char* tmpPtr; int tmpSize; | |
267 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
268 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
269 | return NULL; | |
270 | } | |
271 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
272 | return NULL; | |
273 | _arg3 = new wxString(tmpPtr, tmpSize); | |
274 | #else | |
275 | if (!PyString_Check(_obj3)) { | |
276 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
277 | return NULL; | |
278 | } | |
279 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
280 | #endif | |
281 | } | |
282 | if (_obj4) | |
283 | { | |
284 | _arg4 = &temp; | |
285 | if (! wxPoint_helper(_obj4, &_arg4)) | |
286 | return NULL; | |
287 | } | |
288 | if (_obj5) | |
289 | { | |
290 | _arg5 = &temp0; | |
291 | if (! wxSize_helper(_obj5, &_arg5)) | |
292 | return NULL; | |
293 | } | |
294 | { | |
474c48f9 | 295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 296 | _result = (bool )wxTopLevelWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
aa2a5b86 | 297 | |
474c48f9 | 298 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
299 | if (PyErr_Occurred()) return NULL; |
300 | } _resultobj = Py_BuildValue("i",_result); | |
301 | { | |
302 | if (_obj3) | |
303 | delete _arg3; | |
304 | } | |
305 | return _resultobj; | |
306 | } | |
307 | ||
65191ae8 RD |
308 | #define wxTopLevelWindow_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) |
309 | static PyObject *_wrap_wxTopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 310 | PyObject * _resultobj; |
65191ae8 RD |
311 | wxTopLevelWindow * _arg0; |
312 | bool _arg1 = (bool ) TRUE; | |
1d99702e | 313 | PyObject * _argo0 = 0; |
65191ae8 RD |
314 | int tempbool1 = (int) TRUE; |
315 | char *_kwnames[] = { "self","maximize", NULL }; | |
9c039d08 RD |
316 | |
317 | self = self; | |
65191ae8 | 318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Maximize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 319 | return NULL; |
1d99702e RD |
320 | if (_argo0) { |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Maximize. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
324 | return NULL; |
325 | } | |
326 | } | |
65191ae8 | 327 | _arg1 = (bool ) tempbool1; |
cf694132 | 328 | { |
474c48f9 | 329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 330 | wxTopLevelWindow_Maximize(_arg0,_arg1); |
cf694132 | 331 | |
474c48f9 | 332 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 334 | } Py_INCREF(Py_None); |
9c039d08 RD |
335 | _resultobj = Py_None; |
336 | return _resultobj; | |
337 | } | |
338 | ||
65191ae8 RD |
339 | #define wxTopLevelWindow_Restore(_swigobj) (_swigobj->Restore()) |
340 | static PyObject *_wrap_wxTopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 341 | PyObject * _resultobj; |
65191ae8 | 342 | wxTopLevelWindow * _arg0; |
1d99702e | 343 | PyObject * _argo0 = 0; |
65191ae8 | 344 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
345 | |
346 | self = self; | |
65191ae8 | 347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_Restore",_kwnames,&_argo0)) |
9c039d08 | 348 | return NULL; |
1d99702e RD |
349 | if (_argo0) { |
350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Restore. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
353 | return NULL; |
354 | } | |
355 | } | |
cf694132 | 356 | { |
474c48f9 | 357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 358 | wxTopLevelWindow_Restore(_arg0); |
cf694132 | 359 | |
474c48f9 | 360 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 361 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
362 | } Py_INCREF(Py_None); |
363 | _resultobj = Py_None; | |
9c039d08 RD |
364 | return _resultobj; |
365 | } | |
366 | ||
65191ae8 RD |
367 | #define wxTopLevelWindow_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) |
368 | static PyObject *_wrap_wxTopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 369 | PyObject * _resultobj; |
65191ae8 RD |
370 | wxTopLevelWindow * _arg0; |
371 | bool _arg1 = (bool ) TRUE; | |
1d99702e | 372 | PyObject * _argo0 = 0; |
65191ae8 RD |
373 | int tempbool1 = (int) TRUE; |
374 | char *_kwnames[] = { "self","iconize", NULL }; | |
9c039d08 RD |
375 | |
376 | self = self; | |
65191ae8 | 377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Iconize",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 378 | return NULL; |
1d99702e RD |
379 | if (_argo0) { |
380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Iconize. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
383 | return NULL; |
384 | } | |
385 | } | |
65191ae8 | 386 | _arg1 = (bool ) tempbool1; |
cf694132 | 387 | { |
474c48f9 | 388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 389 | wxTopLevelWindow_Iconize(_arg0,_arg1); |
cf694132 | 390 | |
474c48f9 | 391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 392 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
393 | } Py_INCREF(Py_None); |
394 | _resultobj = Py_None; | |
9c039d08 RD |
395 | return _resultobj; |
396 | } | |
397 | ||
65191ae8 RD |
398 | #define wxTopLevelWindow_IsMaximized(_swigobj) (_swigobj->IsMaximized()) |
399 | static PyObject *_wrap_wxTopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 400 | PyObject * _resultobj; |
65191ae8 RD |
401 | bool _result; |
402 | wxTopLevelWindow * _arg0; | |
f6bcfd97 BP |
403 | PyObject * _argo0 = 0; |
404 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
405 | |
406 | self = self; | |
65191ae8 | 407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsMaximized",_kwnames,&_argo0)) |
f6bcfd97 BP |
408 | return NULL; |
409 | if (_argo0) { | |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsMaximized. Expected _wxTopLevelWindow_p."); | |
f6bcfd97 BP |
413 | return NULL; |
414 | } | |
415 | } | |
416 | { | |
474c48f9 | 417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 418 | _result = (bool )wxTopLevelWindow_IsMaximized(_arg0); |
f6bcfd97 | 419 | |
474c48f9 | 420 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 421 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 422 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
423 | return _resultobj; |
424 | } | |
425 | ||
65191ae8 RD |
426 | #define wxTopLevelWindow_IsIconized(_swigobj) (_swigobj->IsIconized()) |
427 | static PyObject *_wrap_wxTopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 428 | PyObject * _resultobj; |
65191ae8 RD |
429 | bool _result; |
430 | wxTopLevelWindow * _arg0; | |
1d99702e | 431 | PyObject * _argo0 = 0; |
efc5f224 | 432 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
433 | |
434 | self = self; | |
65191ae8 | 435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsIconized",_kwnames,&_argo0)) |
9c039d08 | 436 | return NULL; |
1d99702e RD |
437 | if (_argo0) { |
438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsIconized. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
441 | return NULL; |
442 | } | |
443 | } | |
cf694132 | 444 | { |
474c48f9 | 445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 446 | _result = (bool )wxTopLevelWindow_IsIconized(_arg0); |
cf694132 | 447 | |
474c48f9 | 448 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 449 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 450 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
451 | return _resultobj; |
452 | } | |
453 | ||
65191ae8 RD |
454 | #define wxTopLevelWindow_GetIcon(_swigobj) (_swigobj->GetIcon()) |
455 | static PyObject *_wrap_wxTopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 456 | PyObject * _resultobj; |
65191ae8 RD |
457 | wxIcon * _result; |
458 | wxTopLevelWindow * _arg0; | |
1d99702e | 459 | PyObject * _argo0 = 0; |
efc5f224 | 460 | char *_kwnames[] = { "self", NULL }; |
65191ae8 | 461 | char _ptemp[128]; |
9c039d08 RD |
462 | |
463 | self = self; | |
65191ae8 | 464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetIcon",_kwnames,&_argo0)) |
9c039d08 | 465 | return NULL; |
1d99702e RD |
466 | if (_argo0) { |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetIcon. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
470 | return NULL; |
471 | } | |
472 | } | |
cf694132 | 473 | { |
474c48f9 | 474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3e212503 | 475 | _result = new wxIcon (wxTopLevelWindow_GetIcon(_arg0)); |
cf694132 | 476 | |
474c48f9 | 477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 478 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
479 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
480 | _resultobj = Py_BuildValue("s",_ptemp); | |
9c039d08 RD |
481 | return _resultobj; |
482 | } | |
483 | ||
65191ae8 RD |
484 | #define wxTopLevelWindow_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) |
485 | static PyObject *_wrap_wxTopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 486 | PyObject * _resultobj; |
65191ae8 RD |
487 | wxTopLevelWindow * _arg0; |
488 | wxIcon * _arg1; | |
1d99702e | 489 | PyObject * _argo0 = 0; |
65191ae8 RD |
490 | PyObject * _argo1 = 0; |
491 | char *_kwnames[] = { "self","icon", NULL }; | |
9c039d08 RD |
492 | |
493 | self = self; | |
65191ae8 | 494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetIcon",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 495 | return NULL; |
1d99702e RD |
496 | if (_argo0) { |
497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetIcon. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
500 | return NULL; |
501 | } | |
502 | } | |
65191ae8 RD |
503 | if (_argo1) { |
504 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_SetIcon. Expected _wxIcon_p."); | |
9c039d08 RD |
507 | return NULL; |
508 | } | |
509 | } | |
cf694132 | 510 | { |
474c48f9 | 511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 512 | wxTopLevelWindow_SetIcon(_arg0,*_arg1); |
cf694132 | 513 | |
474c48f9 | 514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 515 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
516 | } Py_INCREF(Py_None); |
517 | _resultobj = Py_None; | |
9c039d08 RD |
518 | return _resultobj; |
519 | } | |
520 | ||
65191ae8 RD |
521 | #define wxTopLevelWindow_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1)) |
522 | static PyObject *_wrap_wxTopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 523 | PyObject * _resultobj; |
65191ae8 RD |
524 | bool _result; |
525 | wxTopLevelWindow * _arg0; | |
9c039d08 | 526 | bool _arg1; |
65191ae8 | 527 | long _arg2 = (long ) (wxFULLSCREEN_ALL); |
1d99702e | 528 | PyObject * _argo0 = 0; |
9c039d08 | 529 | int tempbool1; |
65191ae8 | 530 | char *_kwnames[] = { "self","show","style", NULL }; |
9c039d08 RD |
531 | |
532 | self = self; | |
65191ae8 | 533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxTopLevelWindow_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2)) |
9c039d08 | 534 | return NULL; |
1d99702e RD |
535 | if (_argo0) { |
536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_ShowFullScreen. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
539 | return NULL; |
540 | } | |
541 | } | |
542 | _arg1 = (bool ) tempbool1; | |
cf694132 | 543 | { |
474c48f9 | 544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 545 | _result = (bool )wxTopLevelWindow_ShowFullScreen(_arg0,_arg1,_arg2); |
cf694132 | 546 | |
474c48f9 | 547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 548 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 549 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
550 | return _resultobj; |
551 | } | |
552 | ||
65191ae8 RD |
553 | #define wxTopLevelWindow_IsFullScreen(_swigobj) (_swigobj->IsFullScreen()) |
554 | static PyObject *_wrap_wxTopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 RD |
555 | PyObject * _resultobj; |
556 | bool _result; | |
65191ae8 | 557 | wxTopLevelWindow * _arg0; |
1d99702e | 558 | PyObject * _argo0 = 0; |
efc5f224 | 559 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
560 | |
561 | self = self; | |
65191ae8 | 562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsFullScreen",_kwnames,&_argo0)) |
9c039d08 | 563 | return NULL; |
1d99702e RD |
564 | if (_argo0) { |
565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsFullScreen. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
568 | return NULL; |
569 | } | |
570 | } | |
cf694132 | 571 | { |
474c48f9 | 572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 573 | _result = (bool )wxTopLevelWindow_IsFullScreen(_arg0); |
cf694132 | 574 | |
474c48f9 | 575 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 576 | if (PyErr_Occurred()) return NULL; |
cf694132 | 577 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 RD |
578 | return _resultobj; |
579 | } | |
580 | ||
65191ae8 RD |
581 | #define wxTopLevelWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
582 | static PyObject *_wrap_wxTopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 583 | PyObject * _resultobj; |
65191ae8 RD |
584 | wxTopLevelWindow * _arg0; |
585 | wxString * _arg1; | |
1d99702e | 586 | PyObject * _argo0 = 0; |
65191ae8 RD |
587 | PyObject * _obj1 = 0; |
588 | char *_kwnames[] = { "self","title", NULL }; | |
9c039d08 RD |
589 | |
590 | self = self; | |
65191ae8 | 591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
9c039d08 | 592 | return NULL; |
1d99702e RD |
593 | if (_argo0) { |
594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetTitle. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
597 | return NULL; |
598 | } | |
599 | } | |
cf694132 | 600 | { |
65191ae8 RD |
601 | #if PYTHON_API_VERSION >= 1009 |
602 | char* tmpPtr; int tmpSize; | |
603 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
604 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
f6bcfd97 | 605 | return NULL; |
f6bcfd97 | 606 | } |
65191ae8 | 607 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) |
f6bcfd97 | 608 | return NULL; |
65191ae8 RD |
609 | _arg1 = new wxString(tmpPtr, tmpSize); |
610 | #else | |
611 | if (!PyString_Check(_obj1)) { | |
612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
f6bcfd97 | 613 | return NULL; |
f6bcfd97 | 614 | } |
65191ae8 RD |
615 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
616 | #endif | |
617 | } | |
f6bcfd97 | 618 | { |
474c48f9 | 619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 620 | wxTopLevelWindow_SetTitle(_arg0,*_arg1); |
f6bcfd97 | 621 | |
474c48f9 | 622 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 623 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
624 | } Py_INCREF(Py_None); |
625 | _resultobj = Py_None; | |
65191ae8 RD |
626 | { |
627 | if (_obj1) | |
628 | delete _arg1; | |
629 | } | |
f6bcfd97 BP |
630 | return _resultobj; |
631 | } | |
632 | ||
65191ae8 RD |
633 | #define wxTopLevelWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
634 | static PyObject *_wrap_wxTopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 635 | PyObject * _resultobj; |
65191ae8 RD |
636 | wxString * _result; |
637 | wxTopLevelWindow * _arg0; | |
1d99702e | 638 | PyObject * _argo0 = 0; |
65191ae8 | 639 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
640 | |
641 | self = self; | |
65191ae8 | 642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetTitle",_kwnames,&_argo0)) |
9c039d08 | 643 | return NULL; |
1d99702e RD |
644 | if (_argo0) { |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) { |
647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetTitle. Expected _wxTopLevelWindow_p."); | |
9c039d08 RD |
648 | return NULL; |
649 | } | |
650 | } | |
cf694132 | 651 | { |
474c48f9 | 652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 653 | _result = new wxString (wxTopLevelWindow_GetTitle(_arg0)); |
cf694132 | 654 | |
474c48f9 | 655 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 656 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
657 | }{ |
658 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
659 | } | |
660 | { | |
661 | delete _result; | |
662 | } | |
9c039d08 RD |
663 | return _resultobj; |
664 | } | |
665 | ||
65191ae8 RD |
666 | static void *SwigwxFrameTowxTopLevelWindow(void *ptr) { |
667 | wxFrame *src; | |
668 | wxTopLevelWindow *dest; | |
669 | src = (wxFrame *) ptr; | |
670 | dest = (wxTopLevelWindow *) src; | |
671 | return (void *) dest; | |
672 | } | |
673 | ||
674 | static void *SwigwxFrameTowxWindow(void *ptr) { | |
675 | wxFrame *src; | |
676 | wxWindow *dest; | |
677 | src = (wxFrame *) ptr; | |
678 | dest = (wxWindow *) src; | |
679 | return (void *) dest; | |
680 | } | |
681 | ||
682 | static void *SwigwxFrameTowxEvtHandler(void *ptr) { | |
683 | wxFrame *src; | |
684 | wxEvtHandler *dest; | |
685 | src = (wxFrame *) ptr; | |
686 | dest = (wxEvtHandler *) src; | |
687 | return (void *) dest; | |
688 | } | |
689 | ||
690 | static void *SwigwxFrameTowxObject(void *ptr) { | |
691 | wxFrame *src; | |
692 | wxObject *dest; | |
693 | src = (wxFrame *) ptr; | |
694 | dest = (wxObject *) src; | |
695 | return (void *) dest; | |
696 | } | |
697 | ||
698 | #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
699 | static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
700 | PyObject * _resultobj; | |
701 | wxFrame * _result; | |
702 | wxWindow * _arg0; | |
703 | wxWindowID _arg1; | |
704 | wxString * _arg2; | |
705 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
706 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
707 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
708 | char * _arg6 = (char *) "frame"; | |
709 | PyObject * _argo0 = 0; | |
710 | PyObject * _obj2 = 0; | |
711 | wxPoint temp; | |
712 | PyObject * _obj3 = 0; | |
713 | wxSize temp0; | |
714 | PyObject * _obj4 = 0; | |
715 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
716 | char _ptemp[128]; | |
717 | ||
718 | self = self; | |
719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
720 | return NULL; | |
721 | if (_argo0) { | |
722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p."); | |
725 | return NULL; | |
726 | } | |
727 | } | |
728 | { | |
729 | #if PYTHON_API_VERSION >= 1009 | |
730 | char* tmpPtr; int tmpSize; | |
731 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
732 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
733 | return NULL; | |
734 | } | |
735 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
736 | return NULL; | |
737 | _arg2 = new wxString(tmpPtr, tmpSize); | |
738 | #else | |
739 | if (!PyString_Check(_obj2)) { | |
740 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
741 | return NULL; | |
742 | } | |
743 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
744 | #endif | |
745 | } | |
746 | if (_obj3) | |
747 | { | |
748 | _arg3 = &temp; | |
749 | if (! wxPoint_helper(_obj3, &_arg3)) | |
750 | return NULL; | |
751 | } | |
752 | if (_obj4) | |
753 | { | |
754 | _arg4 = &temp0; | |
755 | if (! wxSize_helper(_obj4, &_arg4)) | |
756 | return NULL; | |
757 | } | |
758 | { | |
474c48f9 | 759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
760 | _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
761 | ||
474c48f9 | 762 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
763 | if (PyErr_Occurred()) return NULL; |
764 | } if (_result) { | |
765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
766 | _resultobj = Py_BuildValue("s",_ptemp); | |
767 | } else { | |
768 | Py_INCREF(Py_None); | |
769 | _resultobj = Py_None; | |
770 | } | |
771 | { | |
772 | if (_obj2) | |
773 | delete _arg2; | |
774 | } | |
775 | return _resultobj; | |
776 | } | |
777 | ||
778 | #define new_wxPreFrame() (new wxFrame()) | |
779 | static PyObject *_wrap_new_wxPreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
780 | PyObject * _resultobj; | |
781 | wxFrame * _result; | |
782 | char *_kwnames[] = { NULL }; | |
783 | char _ptemp[128]; | |
784 | ||
785 | self = self; | |
786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFrame",_kwnames)) | |
787 | return NULL; | |
788 | { | |
474c48f9 | 789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
790 | _result = (wxFrame *)new_wxPreFrame(); |
791 | ||
474c48f9 | 792 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
793 | if (PyErr_Occurred()) return NULL; |
794 | } if (_result) { | |
795 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
796 | _resultobj = Py_BuildValue("s",_ptemp); | |
797 | } else { | |
798 | Py_INCREF(Py_None); | |
799 | _resultobj = Py_None; | |
800 | } | |
801 | return _resultobj; | |
802 | } | |
803 | ||
804 | #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
805 | static PyObject *_wrap_wxFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
806 | PyObject * _resultobj; | |
807 | bool _result; | |
808 | wxFrame * _arg0; | |
809 | wxWindow * _arg1; | |
810 | wxWindowID _arg2; | |
811 | wxString * _arg3; | |
812 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
813 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
814 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
815 | char * _arg7 = (char *) "frame"; | |
1d99702e RD |
816 | PyObject * _argo0 = 0; |
817 | PyObject * _argo1 = 0; | |
65191ae8 RD |
818 | PyObject * _obj3 = 0; |
819 | wxPoint temp; | |
820 | PyObject * _obj4 = 0; | |
821 | wxSize temp0; | |
822 | PyObject * _obj5 = 0; | |
823 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
9c039d08 RD |
824 | |
825 | self = self; | |
65191ae8 | 826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) |
9c039d08 | 827 | return NULL; |
1d99702e RD |
828 | if (_argo0) { |
829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
65191ae8 | 831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p."); |
9c039d08 RD |
832 | return NULL; |
833 | } | |
834 | } | |
1d99702e RD |
835 | if (_argo1) { |
836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
65191ae8 RD |
837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p."); | |
9c039d08 RD |
839 | return NULL; |
840 | } | |
841 | } | |
65191ae8 RD |
842 | { |
843 | #if PYTHON_API_VERSION >= 1009 | |
844 | char* tmpPtr; int tmpSize; | |
845 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
847 | return NULL; | |
848 | } | |
849 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
850 | return NULL; | |
851 | _arg3 = new wxString(tmpPtr, tmpSize); | |
852 | #else | |
853 | if (!PyString_Check(_obj3)) { | |
854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
855 | return NULL; | |
856 | } | |
857 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
858 | #endif | |
859 | } | |
860 | if (_obj4) | |
861 | { | |
862 | _arg4 = &temp; | |
863 | if (! wxPoint_helper(_obj4, &_arg4)) | |
864 | return NULL; | |
865 | } | |
866 | if (_obj5) | |
867 | { | |
868 | _arg5 = &temp0; | |
869 | if (! wxSize_helper(_obj5, &_arg5)) | |
870 | return NULL; | |
871 | } | |
cf694132 | 872 | { |
474c48f9 | 873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 874 | _result = (bool )wxFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
cf694132 | 875 | |
474c48f9 | 876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 877 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
878 | } _resultobj = Py_BuildValue("i",_result); |
879 | { | |
880 | if (_obj3) | |
881 | delete _arg3; | |
882 | } | |
883 | return _resultobj; | |
884 | } | |
885 | ||
886 | #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) | |
887 | static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
888 | PyObject * _resultobj; | |
889 | wxPoint * _result; | |
890 | wxFrame * _arg0; | |
891 | PyObject * _argo0 = 0; | |
892 | char *_kwnames[] = { "self", NULL }; | |
893 | char _ptemp[128]; | |
894 | ||
895 | self = self; | |
896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0)) | |
897 | return NULL; | |
898 | if (_argo0) { | |
899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p."); | |
902 | return NULL; | |
903 | } | |
904 | } | |
905 | { | |
474c48f9 | 906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
907 | _result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0)); |
908 | ||
474c48f9 | 909 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
910 | if (PyErr_Occurred()) return NULL; |
911 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
912 | _resultobj = Py_BuildValue("s",_ptemp); | |
9c039d08 RD |
913 | return _resultobj; |
914 | } | |
915 | ||
916 | #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0)) | |
efc5f224 | 917 | static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
918 | PyObject * _resultobj; |
919 | wxFrame * _arg0; | |
920 | wxMenuBar * _arg1; | |
1d99702e RD |
921 | PyObject * _argo0 = 0; |
922 | PyObject * _argo1 = 0; | |
65191ae8 | 923 | char *_kwnames[] = { "self","menubar", NULL }; |
9c039d08 RD |
924 | |
925 | self = self; | |
efc5f224 | 926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetMenuBar",_kwnames,&_argo0,&_argo1)) |
9c039d08 | 927 | return NULL; |
1d99702e RD |
928 | if (_argo0) { |
929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
9c039d08 RD |
931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p."); |
932 | return NULL; | |
933 | } | |
934 | } | |
1d99702e RD |
935 | if (_argo1) { |
936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) { | |
9c039d08 RD |
938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p."); |
939 | return NULL; | |
940 | } | |
941 | } | |
cf694132 | 942 | { |
474c48f9 | 943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
944 | wxFrame_SetMenuBar(_arg0,_arg1); |
945 | ||
474c48f9 | 946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 948 | } Py_INCREF(Py_None); |
9c039d08 RD |
949 | _resultobj = Py_None; |
950 | return _resultobj; | |
951 | } | |
952 | ||
65191ae8 RD |
953 | #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar()) |
954 | static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 955 | PyObject * _resultobj; |
65191ae8 | 956 | wxMenuBar * _result; |
9c039d08 | 957 | wxFrame * _arg0; |
1d99702e | 958 | PyObject * _argo0 = 0; |
65191ae8 | 959 | char *_kwnames[] = { "self", NULL }; |
9c039d08 RD |
960 | |
961 | self = self; | |
65191ae8 | 962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0)) |
9c039d08 | 963 | return NULL; |
1d99702e RD |
964 | if (_argo0) { |
965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
65191ae8 | 967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p."); |
9c039d08 RD |
968 | return NULL; |
969 | } | |
970 | } | |
cf694132 | 971 | { |
474c48f9 | 972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
973 | _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0); |
974 | ||
474c48f9 | 975 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
976 | if (PyErr_Occurred()) return NULL; |
977 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
978 | return _resultobj; | |
979 | } | |
980 | ||
981 | #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0)) | |
982 | static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
983 | PyObject * _resultobj; | |
984 | bool _result; | |
985 | wxFrame * _arg0; | |
986 | int _arg1; | |
987 | PyObject * _argo0 = 0; | |
988 | char *_kwnames[] = { "self","id", NULL }; | |
989 | ||
990 | self = self; | |
991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1)) | |
992 | return NULL; | |
993 | if (_argo0) { | |
994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p."); | |
997 | return NULL; | |
998 | } | |
999 | } | |
1000 | { | |
474c48f9 | 1001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1002 | _result = (bool )wxFrame_Command(_arg0,_arg1); |
1003 | ||
474c48f9 | 1004 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1005 | if (PyErr_Occurred()) return NULL; |
1006 | } _resultobj = Py_BuildValue("i",_result); | |
1007 | return _resultobj; | |
1008 | } | |
1009 | ||
1010 | #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0)) | |
1011 | static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1012 | PyObject * _resultobj; | |
1013 | bool _result; | |
1014 | wxFrame * _arg0; | |
1015 | int _arg1; | |
1016 | PyObject * _argo0 = 0; | |
1017 | char *_kwnames[] = { "self","id", NULL }; | |
1018 | ||
1019 | self = self; | |
1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1)) | |
1021 | return NULL; | |
1022 | if (_argo0) { | |
1023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p."); | |
1026 | return NULL; | |
1027 | } | |
1028 | } | |
1029 | { | |
474c48f9 | 1030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1031 | _result = (bool )wxFrame_ProcessCommand(_arg0,_arg1); |
1032 | ||
474c48f9 | 1033 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1034 | if (PyErr_Occurred()) return NULL; |
1035 | } _resultobj = Py_BuildValue("i",_result); | |
1036 | return _resultobj; | |
1037 | } | |
1038 | ||
1039 | #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1040 | static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject * _resultobj; | |
1042 | wxStatusBar * _result; | |
1043 | wxFrame * _arg0; | |
1044 | int _arg1 = (int ) 1; | |
1045 | long _arg2 = (long ) wxST_SIZEGRIP; | |
1046 | wxWindowID _arg3 = (wxWindowID ) -1; | |
1047 | char * _arg4 = (char *) "statusBar"; | |
1048 | PyObject * _argo0 = 0; | |
1049 | char *_kwnames[] = { "self","number","style","id","name", NULL }; | |
1050 | ||
1051 | self = self; | |
1052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
1053 | return NULL; | |
1054 | if (_argo0) { | |
1055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p."); | |
1058 | return NULL; | |
1059 | } | |
1060 | } | |
1061 | { | |
474c48f9 | 1062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1063 | _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4); |
1064 | ||
474c48f9 | 1065 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1066 | if (PyErr_Occurred()) return NULL; |
1067 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1068 | return _resultobj; | |
1069 | } | |
1070 | ||
1071 | #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar()) | |
1072 | static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1073 | PyObject * _resultobj; | |
1074 | wxStatusBar * _result; | |
1075 | wxFrame * _arg0; | |
1076 | PyObject * _argo0 = 0; | |
1077 | char *_kwnames[] = { "self", NULL }; | |
1078 | ||
1079 | self = self; | |
1080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0)) | |
1081 | return NULL; | |
1082 | if (_argo0) { | |
1083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p."); | |
1086 | return NULL; | |
1087 | } | |
1088 | } | |
1089 | { | |
474c48f9 | 1090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1091 | _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0); |
1092 | ||
474c48f9 | 1093 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1094 | if (PyErr_Occurred()) return NULL; |
1095 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0)) | |
1100 | static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | wxFrame * _arg0; | |
1103 | wxStatusBar * _arg1; | |
1104 | PyObject * _argo0 = 0; | |
1105 | PyObject * _argo1 = 0; | |
1106 | char *_kwnames[] = { "self","statBar", NULL }; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusBar",_kwnames,&_argo0,&_argo1)) | |
1110 | return NULL; | |
1111 | if (_argo0) { | |
1112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p."); | |
1115 | return NULL; | |
1116 | } | |
1117 | } | |
1118 | if (_argo1) { | |
1119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | { | |
474c48f9 | 1126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1127 | wxFrame_SetStatusBar(_arg0,_arg1); |
1128 | ||
474c48f9 | 1129 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1130 | if (PyErr_Occurred()) return NULL; |
1131 | } Py_INCREF(Py_None); | |
1132 | _resultobj = Py_None; | |
1133 | return _resultobj; | |
1134 | } | |
1135 | ||
1136 | #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1)) | |
1137 | static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1138 | PyObject * _resultobj; | |
1139 | wxFrame * _arg0; | |
1140 | wxString * _arg1; | |
1141 | int _arg2 = (int ) 0; | |
1142 | PyObject * _argo0 = 0; | |
1143 | PyObject * _obj1 = 0; | |
1144 | char *_kwnames[] = { "self","text","number", NULL }; | |
1145 | ||
1146 | self = self; | |
1147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFrame_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1148 | return NULL; | |
1149 | if (_argo0) { | |
1150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p."); | |
1153 | return NULL; | |
1154 | } | |
1155 | } | |
1156 | { | |
1157 | #if PYTHON_API_VERSION >= 1009 | |
1158 | char* tmpPtr; int tmpSize; | |
1159 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1160 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1161 | return NULL; | |
1162 | } | |
1163 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1164 | return NULL; | |
1165 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1166 | #else | |
1167 | if (!PyString_Check(_obj1)) { | |
1168 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1169 | return NULL; | |
1170 | } | |
1171 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1172 | #endif | |
1173 | } | |
1174 | { | |
474c48f9 | 1175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1176 | wxFrame_SetStatusText(_arg0,*_arg1,_arg2); |
1177 | ||
474c48f9 | 1178 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1179 | if (PyErr_Occurred()) return NULL; |
1180 | } Py_INCREF(Py_None); | |
1181 | _resultobj = Py_None; | |
1182 | { | |
1183 | if (_obj1) | |
1184 | delete _arg1; | |
1185 | } | |
1186 | return _resultobj; | |
1187 | } | |
1188 | ||
1189 | #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1)) | |
1190 | static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1191 | PyObject * _resultobj; | |
1192 | wxFrame * _arg0; | |
1193 | int _arg1; | |
1194 | int * _arg2; | |
1195 | PyObject * _argo0 = 0; | |
1196 | PyObject * _obj2 = 0; | |
1197 | char *_kwnames[] = { "self","choices", NULL }; | |
1198 | ||
1199 | self = self; | |
1200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusWidths",_kwnames,&_argo0,&_obj2)) | |
1201 | return NULL; | |
1202 | if (_argo0) { | |
1203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p."); | |
1206 | return NULL; | |
1207 | } | |
1208 | } | |
1209 | if (_obj2) | |
1210 | { | |
1211 | _arg2 = int_LIST_helper(_obj2); | |
1212 | if (_arg2 == NULL) { | |
1213 | return NULL; | |
1214 | } | |
1215 | } | |
1216 | { | |
1217 | if (_obj2) { | |
1218 | _arg1 = PyList_Size(_obj2); | |
1219 | } | |
1220 | else { | |
1221 | _arg1 = 0; | |
1222 | } | |
1223 | } | |
1224 | { | |
474c48f9 | 1225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1226 | wxFrame_SetStatusWidths(_arg0,_arg1,_arg2); |
1227 | ||
474c48f9 | 1228 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1229 | if (PyErr_Occurred()) return NULL; |
1230 | } Py_INCREF(Py_None); | |
1231 | _resultobj = Py_None; | |
1232 | { | |
1233 | delete [] _arg2; | |
1234 | } | |
1235 | return _resultobj; | |
1236 | } | |
1237 | ||
1238 | #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2)) | |
1239 | static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1240 | PyObject * _resultobj; | |
1241 | wxToolBar * _result; | |
1242 | wxFrame * _arg0; | |
1243 | long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL; | |
1244 | wxWindowID _arg2 = (wxWindowID ) -1; | |
1245 | char * _arg3 = (char *) "toolBar"; | |
1246 | PyObject * _argo0 = 0; | |
1247 | char *_kwnames[] = { "self","style","id","name", NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
1251 | return NULL; | |
1252 | if (_argo0) { | |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p."); | |
1256 | return NULL; | |
1257 | } | |
1258 | } | |
1259 | { | |
474c48f9 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1261 | _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3); |
1262 | ||
474c48f9 | 1263 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1264 | if (PyErr_Occurred()) return NULL; |
1265 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
1269 | #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar()) | |
1270 | static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1271 | PyObject * _resultobj; | |
1272 | wxToolBar * _result; | |
1273 | wxFrame * _arg0; | |
1274 | PyObject * _argo0 = 0; | |
1275 | char *_kwnames[] = { "self", NULL }; | |
1276 | ||
1277 | self = self; | |
1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0)) | |
1279 | return NULL; | |
1280 | if (_argo0) { | |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p."); | |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
474c48f9 | 1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1289 | _result = (wxToolBar *)wxFrame_GetToolBar(_arg0); |
1290 | ||
474c48f9 | 1291 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1292 | if (PyErr_Occurred()) return NULL; |
1293 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0)) | |
1298 | static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1299 | PyObject * _resultobj; | |
1300 | wxFrame * _arg0; | |
1301 | wxToolBar * _arg1; | |
1302 | PyObject * _argo0 = 0; | |
1303 | PyObject * _argo1 = 0; | |
1304 | char *_kwnames[] = { "self","toolbar", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetToolBar",_kwnames,&_argo0,&_argo1)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | if (_argo1) { | |
1317 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1318 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) { | |
1319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p."); | |
1320 | return NULL; | |
1321 | } | |
1322 | } | |
1323 | { | |
474c48f9 | 1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1325 | wxFrame_SetToolBar(_arg0,_arg1); |
1326 | ||
474c48f9 | 1327 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1328 | if (PyErr_Occurred()) return NULL; |
1329 | } Py_INCREF(Py_None); | |
1330 | _resultobj = Py_None; | |
1331 | return _resultobj; | |
1332 | } | |
1333 | ||
1334 | static void *SwigwxDialogTowxTopLevelWindow(void *ptr) { | |
1335 | wxDialog *src; | |
1336 | wxTopLevelWindow *dest; | |
1337 | src = (wxDialog *) ptr; | |
1338 | dest = (wxTopLevelWindow *) src; | |
1339 | return (void *) dest; | |
1340 | } | |
1341 | ||
1342 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
1343 | wxDialog *src; | |
1344 | wxWindow *dest; | |
1345 | src = (wxDialog *) ptr; | |
1346 | dest = (wxWindow *) src; | |
1347 | return (void *) dest; | |
1348 | } | |
1349 | ||
1350 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
1351 | wxDialog *src; | |
1352 | wxEvtHandler *dest; | |
1353 | src = (wxDialog *) ptr; | |
1354 | dest = (wxEvtHandler *) src; | |
1355 | return (void *) dest; | |
1356 | } | |
1357 | ||
1358 | static void *SwigwxDialogTowxObject(void *ptr) { | |
1359 | wxDialog *src; | |
1360 | wxObject *dest; | |
1361 | src = (wxDialog *) ptr; | |
1362 | dest = (wxObject *) src; | |
1363 | return (void *) dest; | |
1364 | } | |
1365 | ||
1366 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1367 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject * _resultobj; | |
1369 | wxDialog * _result; | |
1370 | wxWindow * _arg0; | |
1371 | wxWindowID _arg1; | |
1372 | wxString * _arg2; | |
1373 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1374 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1375 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
1376 | char * _arg6 = (char *) "dialogBox"; | |
1377 | PyObject * _argo0 = 0; | |
1378 | PyObject * _obj2 = 0; | |
1379 | wxPoint temp; | |
1380 | PyObject * _obj3 = 0; | |
1381 | wxSize temp0; | |
1382 | PyObject * _obj4 = 0; | |
1383 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; | |
1384 | char _ptemp[128]; | |
1385 | ||
1386 | self = self; | |
1387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
1388 | return NULL; | |
1389 | if (_argo0) { | |
1390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); | |
1393 | return NULL; | |
1394 | } | |
1395 | } | |
1396 | { | |
1397 | #if PYTHON_API_VERSION >= 1009 | |
1398 | char* tmpPtr; int tmpSize; | |
1399 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1401 | return NULL; | |
1402 | } | |
1403 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1404 | return NULL; | |
1405 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1406 | #else | |
1407 | if (!PyString_Check(_obj2)) { | |
1408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1409 | return NULL; | |
1410 | } | |
1411 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1412 | #endif | |
1413 | } | |
1414 | if (_obj3) | |
1415 | { | |
1416 | _arg3 = &temp; | |
1417 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1418 | return NULL; | |
1419 | } | |
1420 | if (_obj4) | |
1421 | { | |
1422 | _arg4 = &temp0; | |
1423 | if (! wxSize_helper(_obj4, &_arg4)) | |
1424 | return NULL; | |
1425 | } | |
1426 | { | |
474c48f9 | 1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 RD |
1428 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
1429 | ||
474c48f9 | 1430 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
1431 | if (PyErr_Occurred()) return NULL; |
1432 | } if (_result) { | |
1433 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
1434 | _resultobj = Py_BuildValue("s",_ptemp); | |
1435 | } else { | |
1436 | Py_INCREF(Py_None); | |
1437 | _resultobj = Py_None; | |
1438 | } | |
1439 | { | |
1440 | if (_obj2) | |
1441 | delete _arg2; | |
1442 | } | |
1443 | return _resultobj; | |
1444 | } | |
1445 | ||
1446 | #define new_wxPreDialog() (new wxDialog()) | |
1447 | static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1448 | PyObject * _resultobj; | |
1449 | wxDialog * _result; | |
1450 | char *_kwnames[] = { NULL }; | |
1451 | char _ptemp[128]; | |
1452 | ||
1453 | self = self; | |
1454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames)) | |
1455 | return NULL; | |
1456 | { | |
474c48f9 | 1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1458 | _result = (wxDialog *)new_wxPreDialog(); |
cf694132 | 1459 | |
474c48f9 | 1460 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1461 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
1462 | } if (_result) { |
1463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
1464 | _resultobj = Py_BuildValue("s",_ptemp); | |
1465 | } else { | |
1466 | Py_INCREF(Py_None); | |
1467 | _resultobj = Py_None; | |
1468 | } | |
9c039d08 RD |
1469 | return _resultobj; |
1470 | } | |
1471 | ||
65191ae8 RD |
1472 | #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
1473 | static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1474 | PyObject * _resultobj; |
65191ae8 RD |
1475 | bool _result; |
1476 | wxDialog * _arg0; | |
1477 | wxWindow * _arg1; | |
1478 | wxWindowID _arg2; | |
1479 | wxString * _arg3; | |
1480 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1481 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1482 | long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE; | |
1483 | char * _arg7 = (char *) "dialogBox"; | |
1d99702e | 1484 | PyObject * _argo0 = 0; |
65191ae8 RD |
1485 | PyObject * _argo1 = 0; |
1486 | PyObject * _obj3 = 0; | |
1487 | wxPoint temp; | |
1488 | PyObject * _obj4 = 0; | |
1489 | wxSize temp0; | |
1490 | PyObject * _obj5 = 0; | |
1491 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
9c039d08 RD |
1492 | |
1493 | self = self; | |
65191ae8 | 1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) |
9c039d08 | 1495 | return NULL; |
1d99702e RD |
1496 | if (_argo0) { |
1497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | if (_argo1) { | |
1504 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1505 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p."); | |
9c039d08 RD |
1507 | return NULL; |
1508 | } | |
1509 | } | |
1510 | { | |
2cd2fac8 RD |
1511 | #if PYTHON_API_VERSION >= 1009 |
1512 | char* tmpPtr; int tmpSize; | |
65191ae8 | 1513 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 1514 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1515 | return NULL; |
1516 | } | |
65191ae8 | 1517 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 1518 | return NULL; |
65191ae8 | 1519 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 1520 | #else |
65191ae8 | 1521 | if (!PyString_Check(_obj3)) { |
9c039d08 RD |
1522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1523 | return NULL; | |
1524 | } | |
65191ae8 | 1525 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 1526 | #endif |
65191ae8 RD |
1527 | } |
1528 | if (_obj4) | |
1529 | { | |
1530 | _arg4 = &temp; | |
1531 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1532 | return NULL; | |
1533 | } | |
1534 | if (_obj5) | |
1535 | { | |
1536 | _arg5 = &temp0; | |
1537 | if (! wxSize_helper(_obj5, &_arg5)) | |
1538 | return NULL; | |
9c039d08 | 1539 | } |
cf694132 | 1540 | { |
474c48f9 | 1541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1542 | _result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
cf694132 | 1543 | |
474c48f9 | 1544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1545 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 1546 | } _resultobj = Py_BuildValue("i",_result); |
9c039d08 | 1547 | { |
65191ae8 RD |
1548 | if (_obj3) |
1549 | delete _arg3; | |
9c039d08 RD |
1550 | } |
1551 | return _resultobj; | |
1552 | } | |
1553 | ||
65191ae8 RD |
1554 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) |
1555 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1556 | PyObject * _resultobj; |
65191ae8 RD |
1557 | wxDialog * _arg0; |
1558 | int _arg1 = (int ) wxBOTH; | |
1d99702e | 1559 | PyObject * _argo0 = 0; |
65191ae8 | 1560 | char *_kwnames[] = { "self","direction", NULL }; |
9c039d08 RD |
1561 | |
1562 | self = self; | |
65191ae8 | 1563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 1564 | return NULL; |
1d99702e RD |
1565 | if (_argo0) { |
1566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); | |
9c039d08 RD |
1569 | return NULL; |
1570 | } | |
1571 | } | |
cf694132 | 1572 | { |
474c48f9 | 1573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1574 | wxDialog_Centre(_arg0,_arg1); |
cf694132 | 1575 | |
474c48f9 | 1576 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1577 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1578 | } Py_INCREF(Py_None); |
9c039d08 | 1579 | _resultobj = Py_None; |
9c039d08 RD |
1580 | return _resultobj; |
1581 | } | |
1582 | ||
65191ae8 RD |
1583 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) |
1584 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1585 | PyObject * _resultobj; |
65191ae8 RD |
1586 | wxDialog * _arg0; |
1587 | int _arg1; | |
1d99702e | 1588 | PyObject * _argo0 = 0; |
65191ae8 | 1589 | char *_kwnames[] = { "self","retCode", NULL }; |
9c039d08 RD |
1590 | |
1591 | self = self; | |
65191ae8 | 1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
9c039d08 | 1593 | return NULL; |
1d99702e RD |
1594 | if (_argo0) { |
1595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); | |
9c039d08 RD |
1598 | return NULL; |
1599 | } | |
1600 | } | |
cf694132 | 1601 | { |
474c48f9 | 1602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1603 | wxDialog_EndModal(_arg0,_arg1); |
cf694132 | 1604 | |
474c48f9 | 1605 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1606 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1607 | } Py_INCREF(Py_None); |
9c039d08 | 1608 | _resultobj = Py_None; |
9c039d08 RD |
1609 | return _resultobj; |
1610 | } | |
1611 | ||
65191ae8 RD |
1612 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) |
1613 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c039d08 | 1614 | PyObject * _resultobj; |
65191ae8 RD |
1615 | wxDialog * _arg0; |
1616 | bool _arg1; | |
1d99702e | 1617 | PyObject * _argo0 = 0; |
65191ae8 RD |
1618 | int tempbool1; |
1619 | char *_kwnames[] = { "self","flag", NULL }; | |
9c039d08 RD |
1620 | |
1621 | self = self; | |
65191ae8 | 1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
9c039d08 | 1623 | return NULL; |
1d99702e RD |
1624 | if (_argo0) { |
1625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); | |
9c039d08 RD |
1628 | return NULL; |
1629 | } | |
1630 | } | |
65191ae8 | 1631 | _arg1 = (bool ) tempbool1; |
cf694132 | 1632 | { |
474c48f9 | 1633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1634 | wxDialog_SetModal(_arg0,_arg1); |
cf694132 | 1635 | |
474c48f9 | 1636 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1637 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1638 | } Py_INCREF(Py_None); |
9c039d08 RD |
1639 | _resultobj = Py_None; |
1640 | return _resultobj; | |
1641 | } | |
1642 | ||
65191ae8 RD |
1643 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) |
1644 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1645 | PyObject * _resultobj; |
65191ae8 RD |
1646 | bool _result; |
1647 | wxDialog * _arg0; | |
f6bcfd97 | 1648 | PyObject * _argo0 = 0; |
65191ae8 | 1649 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 BP |
1650 | |
1651 | self = self; | |
65191ae8 | 1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
f6bcfd97 BP |
1653 | return NULL; |
1654 | if (_argo0) { | |
1655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1658 | return NULL; |
1659 | } | |
1660 | } | |
f6bcfd97 | 1661 | { |
474c48f9 | 1662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1663 | _result = (bool )wxDialog_IsModal(_arg0); |
f6bcfd97 | 1664 | |
474c48f9 | 1665 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1666 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 1667 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
1668 | return _resultobj; |
1669 | } | |
1670 | ||
65191ae8 RD |
1671 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
1672 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1673 | PyObject * _resultobj; |
65191ae8 RD |
1674 | int _result; |
1675 | wxDialog * _arg0; | |
f6bcfd97 BP |
1676 | PyObject * _argo0 = 0; |
1677 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
1678 | |
1679 | self = self; | |
65191ae8 | 1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
f6bcfd97 BP |
1681 | return NULL; |
1682 | if (_argo0) { | |
1683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1686 | return NULL; |
1687 | } | |
1688 | } | |
1689 | { | |
474c48f9 | 1690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1691 | _result = (int )wxDialog_ShowModal(_arg0); |
f6bcfd97 | 1692 | |
474c48f9 | 1693 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1694 | if (PyErr_Occurred()) return NULL; |
65191ae8 | 1695 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
1696 | return _resultobj; |
1697 | } | |
1698 | ||
65191ae8 RD |
1699 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
1700 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1701 | PyObject * _resultobj; |
65191ae8 RD |
1702 | int _result; |
1703 | wxDialog * _arg0; | |
f6bcfd97 | 1704 | PyObject * _argo0 = 0; |
65191ae8 | 1705 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 BP |
1706 | |
1707 | self = self; | |
65191ae8 | 1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
f6bcfd97 BP |
1709 | return NULL; |
1710 | if (_argo0) { | |
1711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1714 | return NULL; |
1715 | } | |
1716 | } | |
1717 | { | |
474c48f9 | 1718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1719 | _result = (int )wxDialog_GetReturnCode(_arg0); |
f6bcfd97 | 1720 | |
474c48f9 | 1721 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1722 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1723 | } _resultobj = Py_BuildValue("i",_result); |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
65191ae8 RD |
1727 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) |
1728 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 1729 | PyObject * _resultobj; |
65191ae8 | 1730 | wxDialog * _arg0; |
f6bcfd97 BP |
1731 | int _arg1; |
1732 | PyObject * _argo0 = 0; | |
65191ae8 | 1733 | char *_kwnames[] = { "self","retCode", NULL }; |
f6bcfd97 BP |
1734 | |
1735 | self = self; | |
65191ae8 | 1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
1737 | return NULL; |
1738 | if (_argo0) { | |
1739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); | |
f6bcfd97 BP |
1742 | return NULL; |
1743 | } | |
1744 | } | |
1745 | { | |
474c48f9 | 1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1747 | wxDialog_SetReturnCode(_arg0,_arg1); |
f6bcfd97 | 1748 | |
474c48f9 | 1749 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1750 | if (PyErr_Occurred()) return NULL; |
65191ae8 RD |
1751 | } Py_INCREF(Py_None); |
1752 | _resultobj = Py_None; | |
f6bcfd97 BP |
1753 | return _resultobj; |
1754 | } | |
1755 | ||
65191ae8 RD |
1756 | #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0)) |
1757 | static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9df61a29 | 1758 | PyObject * _resultobj; |
65191ae8 RD |
1759 | wxSizer * _result; |
1760 | wxDialog * _arg0; | |
1761 | wxString * _arg1; | |
9df61a29 | 1762 | PyObject * _argo0 = 0; |
65191ae8 RD |
1763 | PyObject * _obj1 = 0; |
1764 | char *_kwnames[] = { "self","message", NULL }; | |
9df61a29 RD |
1765 | |
1766 | self = self; | |
65191ae8 | 1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1)) |
9df61a29 RD |
1768 | return NULL; |
1769 | if (_argo0) { | |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p."); | |
9df61a29 RD |
1773 | return NULL; |
1774 | } | |
1775 | } | |
65191ae8 RD |
1776 | { |
1777 | #if PYTHON_API_VERSION >= 1009 | |
1778 | char* tmpPtr; int tmpSize; | |
1779 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1780 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1781 | return NULL; | |
1782 | } | |
1783 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1784 | return NULL; | |
1785 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1786 | #else | |
1787 | if (!PyString_Check(_obj1)) { | |
1788 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1789 | return NULL; | |
1790 | } | |
1791 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1792 | #endif | |
1793 | } | |
9df61a29 | 1794 | { |
474c48f9 | 1795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1796 | _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1); |
9df61a29 | 1797 | |
474c48f9 | 1798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1799 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 1800 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
65191ae8 RD |
1801 | { |
1802 | if (_obj1) | |
1803 | delete _arg1; | |
1804 | } | |
9df61a29 RD |
1805 | return _resultobj; |
1806 | } | |
1807 | ||
65191ae8 RD |
1808 | #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0)) |
1809 | static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9a08cd12 | 1810 | PyObject * _resultobj; |
65191ae8 RD |
1811 | wxSizer * _result; |
1812 | wxDialog * _arg0; | |
1813 | long _arg1; | |
9a08cd12 | 1814 | PyObject * _argo0 = 0; |
65191ae8 | 1815 | char *_kwnames[] = { "self","flags", NULL }; |
9a08cd12 RD |
1816 | |
1817 | self = self; | |
65191ae8 | 1818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1)) |
9a08cd12 RD |
1819 | return NULL; |
1820 | if (_argo0) { | |
1821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
65191ae8 RD |
1822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { |
1823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p."); | |
9a08cd12 RD |
1824 | return NULL; |
1825 | } | |
1826 | } | |
1827 | { | |
474c48f9 | 1828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
65191ae8 | 1829 | _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1); |
9a08cd12 | 1830 | |
474c48f9 | 1831 | wxPyEndAllowThreads(__tstate); |
9a08cd12 | 1832 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 1833 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
9a08cd12 RD |
1834 | return _resultobj; |
1835 | } | |
1836 | ||
9c039d08 RD |
1837 | static void *SwigwxMiniFrameTowxFrame(void *ptr) { |
1838 | wxMiniFrame *src; | |
1839 | wxFrame *dest; | |
1840 | src = (wxMiniFrame *) ptr; | |
1841 | dest = (wxFrame *) src; | |
1842 | return (void *) dest; | |
1843 | } | |
1844 | ||
65191ae8 RD |
1845 | static void *SwigwxMiniFrameTowxTopLevelWindow(void *ptr) { |
1846 | wxMiniFrame *src; | |
1847 | wxTopLevelWindow *dest; | |
1848 | src = (wxMiniFrame *) ptr; | |
1849 | dest = (wxTopLevelWindow *) src; | |
1850 | return (void *) dest; | |
1851 | } | |
1852 | ||
9c039d08 RD |
1853 | static void *SwigwxMiniFrameTowxWindow(void *ptr) { |
1854 | wxMiniFrame *src; | |
1855 | wxWindow *dest; | |
1856 | src = (wxMiniFrame *) ptr; | |
1857 | dest = (wxWindow *) src; | |
1858 | return (void *) dest; | |
1859 | } | |
1860 | ||
1861 | static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) { | |
1862 | wxMiniFrame *src; | |
1863 | wxEvtHandler *dest; | |
1864 | src = (wxMiniFrame *) ptr; | |
1865 | dest = (wxEvtHandler *) src; | |
1866 | return (void *) dest; | |
1867 | } | |
1868 | ||
9df61a29 RD |
1869 | static void *SwigwxMiniFrameTowxObject(void *ptr) { |
1870 | wxMiniFrame *src; | |
1871 | wxObject *dest; | |
1872 | src = (wxMiniFrame *) ptr; | |
1873 | dest = (wxObject *) src; | |
1874 | return (void *) dest; | |
1875 | } | |
1876 | ||
9c039d08 | 1877 | #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 1878 | static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { |
9c039d08 RD |
1879 | PyObject * _resultobj; |
1880 | wxMiniFrame * _result; | |
1881 | wxWindow * _arg0; | |
1882 | wxWindowID _arg1; | |
1883 | wxString * _arg2; | |
b68dc582 RD |
1884 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
1885 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
1886 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; |
1887 | char * _arg6 = (char *) "frame"; | |
1888 | PyObject * _argo0 = 0; | |
9c039d08 | 1889 | PyObject * _obj2 = 0; |
2f90df85 RD |
1890 | wxPoint temp; |
1891 | PyObject * _obj3 = 0; | |
1892 | wxSize temp0; | |
1893 | PyObject * _obj4 = 0; | |
efc5f224 | 1894 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
9c039d08 RD |
1895 | char _ptemp[128]; |
1896 | ||
1897 | self = self; | |
2f90df85 | 1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
9c039d08 | 1899 | return NULL; |
1d99702e RD |
1900 | if (_argo0) { |
1901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9c039d08 RD |
1903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p."); |
1904 | return NULL; | |
1905 | } | |
1906 | } | |
1907 | { | |
2cd2fac8 RD |
1908 | #if PYTHON_API_VERSION >= 1009 |
1909 | char* tmpPtr; int tmpSize; | |
1910 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1911 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1912 | return NULL; |
1913 | } | |
1914 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1915 | return NULL; | |
1916 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1917 | #else | |
9c039d08 RD |
1918 | if (!PyString_Check(_obj2)) { |
1919 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1920 | return NULL; | |
1921 | } | |
2cd2fac8 RD |
1922 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1923 | #endif | |
9c039d08 | 1924 | } |
2f90df85 RD |
1925 | if (_obj3) |
1926 | { | |
1927 | _arg3 = &temp; | |
1928 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9c039d08 | 1929 | return NULL; |
2f90df85 RD |
1930 | } |
1931 | if (_obj4) | |
1932 | { | |
1933 | _arg4 = &temp0; | |
1934 | if (! wxSize_helper(_obj4, &_arg4)) | |
9c039d08 | 1935 | return NULL; |
2f90df85 | 1936 | } |
cf694132 | 1937 | { |
474c48f9 | 1938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cf694132 RD |
1939 | _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); |
1940 | ||
474c48f9 | 1941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1942 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1943 | } if (_result) { |
1944 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
1945 | _resultobj = Py_BuildValue("s",_ptemp); | |
1946 | } else { | |
1947 | Py_INCREF(Py_None); | |
1948 | _resultobj = Py_None; | |
1949 | } | |
9c039d08 RD |
1950 | { |
1951 | if (_obj2) | |
1952 | delete _arg2; | |
1953 | } | |
1954 | return _resultobj; | |
1955 | } | |
1956 | ||
aa2a5b86 RD |
1957 | #define new_wxPreMiniFrame() (new wxMiniFrame()) |
1958 | static PyObject *_wrap_new_wxPreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1959 | PyObject * _resultobj; | |
1960 | wxMiniFrame * _result; | |
1961 | char *_kwnames[] = { NULL }; | |
1962 | char _ptemp[128]; | |
1963 | ||
1964 | self = self; | |
1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMiniFrame",_kwnames)) | |
1966 | return NULL; | |
1967 | { | |
474c48f9 | 1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
1969 | _result = (wxMiniFrame *)new_wxPreMiniFrame(); |
1970 | ||
474c48f9 | 1971 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1972 | if (PyErr_Occurred()) return NULL; |
1973 | } if (_result) { | |
1974 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p"); | |
1975 | _resultobj = Py_BuildValue("s",_ptemp); | |
1976 | } else { | |
1977 | Py_INCREF(Py_None); | |
1978 | _resultobj = Py_None; | |
1979 | } | |
1980 | return _resultobj; | |
1981 | } | |
1982 | ||
1983 | #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1984 | static PyObject *_wrap_wxMiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject * _resultobj; | |
1986 | bool _result; | |
1987 | wxMiniFrame * _arg0; | |
1988 | wxWindow * _arg1; | |
1989 | wxWindowID _arg2; | |
1990 | wxString * _arg3; | |
1991 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
1992 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
1993 | long _arg6 = (long ) wxDEFAULT_FRAME_STYLE; | |
1994 | char * _arg7 = (char *) "frame"; | |
1995 | PyObject * _argo0 = 0; | |
1996 | PyObject * _argo1 = 0; | |
1997 | PyObject * _obj3 = 0; | |
1998 | wxPoint temp; | |
1999 | PyObject * _obj4 = 0; | |
2000 | wxSize temp0; | |
2001 | PyObject * _obj5 = 0; | |
2002 | char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL }; | |
2003 | ||
2004 | self = self; | |
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMiniFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7)) | |
2006 | return NULL; | |
2007 | if (_argo0) { | |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMiniFrame_p")) { | |
2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p."); | |
2011 | return NULL; | |
2012 | } | |
2013 | } | |
2014 | if (_argo1) { | |
2015 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2016 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p."); | |
2018 | return NULL; | |
2019 | } | |
2020 | } | |
2021 | { | |
2022 | #if PYTHON_API_VERSION >= 1009 | |
2023 | char* tmpPtr; int tmpSize; | |
2024 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
2025 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2026 | return NULL; | |
2027 | } | |
2028 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2029 | return NULL; | |
2030 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2031 | #else | |
2032 | if (!PyString_Check(_obj3)) { | |
2033 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2034 | return NULL; | |
2035 | } | |
2036 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
2037 | #endif | |
2038 | } | |
2039 | if (_obj4) | |
2040 | { | |
2041 | _arg4 = &temp; | |
2042 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2043 | return NULL; | |
2044 | } | |
2045 | if (_obj5) | |
2046 | { | |
2047 | _arg5 = &temp0; | |
2048 | if (! wxSize_helper(_obj5, &_arg5)) | |
2049 | return NULL; | |
2050 | } | |
2051 | { | |
474c48f9 | 2052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
aa2a5b86 RD |
2053 | _result = (bool )wxMiniFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7); |
2054 | ||
474c48f9 | 2055 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
2056 | if (PyErr_Occurred()) return NULL; |
2057 | } _resultobj = Py_BuildValue("i",_result); | |
2058 | { | |
2059 | if (_obj3) | |
2060 | delete _arg3; | |
2061 | } | |
2062 | return _resultobj; | |
2063 | } | |
2064 | ||
9c039d08 | 2065 | static PyMethodDef framescMethods[] = { |
aa2a5b86 RD |
2066 | { "wxMiniFrame_Create", (PyCFunction) _wrap_wxMiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, |
2067 | { "new_wxPreMiniFrame", (PyCFunction) _wrap_new_wxPreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2068 | { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
2069 | { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, |
2070 | { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
2071 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
2072 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
2073 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2074 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
2075 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
2076 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
2077 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
2078 | { "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
2079 | { "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS }, | |
2080 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2081 | { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
2082 | { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, |
2083 | { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2084 | { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, |
2085 | { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
2086 | { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2087 | { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 2088 | { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
2089 | { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, |
2090 | { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS }, | |
2091 | { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
2092 | { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
2093 | { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
2094 | { "wxFrame_Create", (PyCFunction) _wrap_wxFrame_Create, METH_VARARGS | METH_KEYWORDS }, |
2095 | { "new_wxPreFrame", (PyCFunction) _wrap_new_wxPreFrame, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 2096 | { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS }, |
65191ae8 RD |
2097 | { "wxTopLevelWindow_GetTitle", (PyCFunction) _wrap_wxTopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, |
2098 | { "wxTopLevelWindow_SetTitle", (PyCFunction) _wrap_wxTopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
2099 | { "wxTopLevelWindow_IsFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
2100 | { "wxTopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
2101 | { "wxTopLevelWindow_SetIcon", (PyCFunction) _wrap_wxTopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
2102 | { "wxTopLevelWindow_GetIcon", (PyCFunction) _wrap_wxTopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
2103 | { "wxTopLevelWindow_IsIconized", (PyCFunction) _wrap_wxTopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
2104 | { "wxTopLevelWindow_IsMaximized", (PyCFunction) _wrap_wxTopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
2105 | { "wxTopLevelWindow_Iconize", (PyCFunction) _wrap_wxTopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
2106 | { "wxTopLevelWindow_Restore", (PyCFunction) _wrap_wxTopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
2107 | { "wxTopLevelWindow_Maximize", (PyCFunction) _wrap_wxTopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
2108 | { "wxTopLevelWindow_Create", (PyCFunction) _wrap_wxTopLevelWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
2109 | { "new_wxPreTopLevelWindow", (PyCFunction) _wrap_new_wxPreTopLevelWindow, METH_VARARGS | METH_KEYWORDS }, | |
2110 | { "new_wxTopLevelWindow", (PyCFunction) _wrap_new_wxTopLevelWindow, METH_VARARGS | METH_KEYWORDS }, | |
9c039d08 RD |
2111 | { NULL, NULL } |
2112 | }; | |
1d99702e RD |
2113 | #ifdef __cplusplus |
2114 | } | |
2115 | #endif | |
2116 | /* | |
2117 | * This table is used by the pointer type-checker | |
2118 | */ | |
2119 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 2120 | { "_signed_long","_long",0}, |
b1462dfa | 2121 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
2122 | { "_wxPrintQuality","_int",0}, |
2123 | { "_wxPrintQuality","_signed_int",0}, | |
2124 | { "_wxPrintQuality","_unsigned_int",0}, | |
2125 | { "_wxPrintQuality","_wxWindowID",0}, | |
2126 | { "_wxPrintQuality","_uint",0}, | |
2127 | { "_wxPrintQuality","_EBool",0}, | |
2128 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2129 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 2130 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
2131 | { "_long","_unsigned_long",0}, |
2132 | { "_long","_signed_long",0}, | |
b1462dfa | 2133 | { "_size_t","_wxCoord",0}, |
1d99702e | 2134 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 2135 | { "_size_t","_time_t",0}, |
1d99702e RD |
2136 | { "_size_t","_unsigned_int",0}, |
2137 | { "_size_t","_int",0}, | |
2138 | { "_size_t","_wxWindowID",0}, | |
2139 | { "_size_t","_uint",0}, | |
65191ae8 | 2140 | { "_wxTopLevelWindow","_wxMiniFrame",SwigwxMiniFrameTowxTopLevelWindow}, |
65191ae8 | 2141 | { "_wxTopLevelWindow","_wxDialog",SwigwxDialogTowxTopLevelWindow}, |
65191ae8 | 2142 | { "_wxTopLevelWindow","_wxFrame",SwigwxFrameTowxTopLevelWindow}, |
b1462dfa | 2143 | { "_uint","_wxCoord",0}, |
1d99702e | 2144 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 2145 | { "_uint","_time_t",0}, |
1d99702e RD |
2146 | { "_uint","_size_t",0}, |
2147 | { "_uint","_unsigned_int",0}, | |
2148 | { "_uint","_int",0}, | |
2149 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 2150 | { "_wxChar","_char",0}, |
f6bcfd97 | 2151 | { "_char","_wxChar",0}, |
65191ae8 | 2152 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 2153 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
2154 | { "_EBool","_wxPrintQuality",0}, |
2155 | { "_EBool","_signed_int",0}, | |
2156 | { "_EBool","_int",0}, | |
2157 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 2158 | { "_unsigned_long","_long",0}, |
65191ae8 | 2159 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 2160 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
2161 | { "_signed_int","_wxPrintQuality",0}, |
2162 | { "_signed_int","_EBool",0}, | |
2163 | { "_signed_int","_wxWindowID",0}, | |
2164 | { "_signed_int","_int",0}, | |
1d99702e RD |
2165 | { "_WXTYPE","_short",0}, |
2166 | { "_WXTYPE","_signed_short",0}, | |
2167 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
2168 | { "_unsigned_short","_WXTYPE",0}, |
2169 | { "_unsigned_short","_short",0}, | |
9df61a29 | 2170 | { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject}, |
65191ae8 | 2171 | { "_wxObject","_wxDialog",SwigwxDialogTowxObject}, |
9df61a29 | 2172 | { "_wxObject","_wxFrame",SwigwxFrameTowxObject}, |
65191ae8 | 2173 | { "_wxObject","_wxTopLevelWindow",SwigwxTopLevelWindowTowxObject}, |
1d99702e RD |
2174 | { "_signed_short","_WXTYPE",0}, |
2175 | { "_signed_short","_short",0}, | |
1d99702e | 2176 | { "_unsigned_char","_byte",0}, |
b1462dfa | 2177 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 2178 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 2179 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
2180 | { "_unsigned_int","_size_t",0}, |
2181 | { "_unsigned_int","_uint",0}, | |
2182 | { "_unsigned_int","_wxWindowID",0}, | |
2183 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
2184 | { "_short","_WXTYPE",0}, |
2185 | { "_short","_unsigned_short",0}, | |
2186 | { "_short","_signed_short",0}, | |
1d99702e | 2187 | { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame}, |
b1462dfa | 2188 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 2189 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 2190 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
2191 | { "_wxWindowID","_size_t",0}, |
2192 | { "_wxWindowID","_EBool",0}, | |
2193 | { "_wxWindowID","_uint",0}, | |
2194 | { "_wxWindowID","_int",0}, | |
2195 | { "_wxWindowID","_signed_int",0}, | |
2196 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 2197 | { "_int","_wxCoord",0}, |
1d99702e | 2198 | { "_int","_wxPrintQuality",0}, |
c368d904 | 2199 | { "_int","_time_t",0}, |
1d99702e RD |
2200 | { "_int","_size_t",0}, |
2201 | { "_int","_EBool",0}, | |
2202 | { "_int","_uint",0}, | |
2203 | { "_int","_wxWindowID",0}, | |
2204 | { "_int","_unsigned_int",0}, | |
2205 | { "_int","_signed_int",0}, | |
c368d904 RD |
2206 | { "_time_t","_wxCoord",0}, |
2207 | { "_time_t","_wxPrintQuality",0}, | |
2208 | { "_time_t","_unsigned_int",0}, | |
2209 | { "_time_t","_int",0}, | |
2210 | { "_time_t","_wxWindowID",0}, | |
2211 | { "_time_t","_uint",0}, | |
2212 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
2213 | { "_wxCoord","_int",0}, |
2214 | { "_wxCoord","_signed_int",0}, | |
2215 | { "_wxCoord","_unsigned_int",0}, | |
2216 | { "_wxCoord","_wxWindowID",0}, | |
2217 | { "_wxCoord","_uint",0}, | |
2218 | { "_wxCoord","_EBool",0}, | |
2219 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2220 | { "_wxCoord","_time_t",0}, |
b1462dfa | 2221 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 2222 | { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler}, |
65191ae8 | 2223 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, |
1d99702e | 2224 | { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler}, |
65191ae8 | 2225 | { "_wxEvtHandler","_wxTopLevelWindow",SwigwxTopLevelWindowTowxEvtHandler}, |
1d99702e | 2226 | { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow}, |
65191ae8 | 2227 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, |
1d99702e | 2228 | { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow}, |
65191ae8 | 2229 | { "_wxWindow","_wxTopLevelWindow",SwigwxTopLevelWindowTowxWindow}, |
1d99702e RD |
2230 | {0,0,0}}; |
2231 | ||
9c039d08 RD |
2232 | static PyObject *SWIG_globals; |
2233 | #ifdef __cplusplus | |
2234 | extern "C" | |
2235 | #endif | |
1d99702e | 2236 | SWIGEXPORT(void) initframesc() { |
9c039d08 RD |
2237 | PyObject *m, *d; |
2238 | SWIG_globals = SWIG_newvarlink(); | |
2239 | m = Py_InitModule("framesc", framescMethods); | |
2240 | d = PyModule_GetDict(m); | |
f6bcfd97 BP |
2241 | PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR)); |
2242 | PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR)); | |
2243 | PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR)); | |
2244 | PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER)); | |
2245 | PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION)); | |
2246 | PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL)); | |
65191ae8 | 2247 | PyDict_SetItemString(d,"wxTOPLEVEL_EX_DIALOG", PyInt_FromLong((long) wxTOPLEVEL_EX_DIALOG)); |
1d99702e RD |
2248 | { |
2249 | int i; | |
2250 | for (i = 0; _swig_mapping[i].n1; i++) | |
2251 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2252 | } | |
9c039d08 | 2253 | } |