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