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