]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/windows3.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
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 | |
7108497a RD |
22 | #include "Python.h" |
23 | ||
e6056257 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
29 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
30 | # else | |
31 | # if defined(__BORLANDC__) | |
32 | # define SWIGEXPORT(a) a _export | |
33 | # else | |
34 | # define SWIGEXPORT(a) a | |
35 | # endif | |
36 | # endif | |
37 | #else | |
38 | # define SWIGEXPORT(a) a | |
39 | #endif | |
40 | ||
e6056257 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
e6056257 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
53 | #define SWIG_init initwindows3c | |
54 | ||
55 | #define SWIG_name "windows3c" | |
56 | ||
57 | #include "helpers.h" | |
58 | #include <wx/sashwin.h> | |
59 | #include <wx/laywin.h> | |
e6056257 | 60 | #include <wx/popupwin.h> |
00360d46 | 61 | #include <wx/tipwin.h> |
e6056257 RD |
62 | |
63 | ||
64 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
65 | PyObject* o2; | |
66 | PyObject* o3; | |
67 | ||
68 | if (!target) { | |
69 | target = o; | |
70 | } else if (target == Py_None) { | |
71 | Py_DECREF(Py_None); | |
72 | target = o; | |
73 | } else { | |
74 | if (!PyTuple_Check(target)) { | |
75 | o2 = target; | |
76 | target = PyTuple_New(1); | |
77 | PyTuple_SetItem(target, 0, o2); | |
78 | } | |
79 | o3 = PyTuple_New(1); | |
80 | PyTuple_SetItem(o3, 0, o); | |
81 | ||
82 | o2 = target; | |
83 | target = PySequence_Concat(o2, o3); | |
84 | Py_DECREF(o2); | |
85 | Py_DECREF(o3); | |
86 | } | |
87 | return target; | |
88 | } | |
c3bfa1cb RD |
89 | |
90 | // Put some wx default wxChar* values into wxStrings. | |
91 | static const wxChar* wxSashNameStr = wxT("sashWindow"); | |
92 | DECLARE_DEF_STRING(SashNameStr); | |
93 | static const wxChar* wxSashLayoutNameStr = wxT("layoutWindow"); | |
94 | DECLARE_DEF_STRING(SashLayoutNameStr); | |
77762d0f RD |
95 | |
96 | #include <wx/vscroll.h> | |
97 | DECLARE_DEF_STRING(PanelNameStr); | |
98 | ||
99 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
100 | { | |
101 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
102 | public: | |
103 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
104 | ||
105 | wxPyVScrolledWindow(wxWindow *parent, | |
106 | wxWindowID id = wxID_ANY, | |
107 | const wxPoint& pos = wxDefaultPosition, | |
108 | const wxSize& size = wxDefaultSize, | |
109 | long style = 0, | |
110 | const wxString& name = wxPyPanelNameStr) | |
111 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
112 | {} | |
113 | ||
114 | // Overridable virtuals | |
115 | ||
116 | // this function must be overridden in the derived class and it should | |
117 | // return the height of the given line in pixels | |
118 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
119 | ||
120 | ||
121 | // this function doesn't have to be overridden but it may be useful to do | |
122 | // it if calculating the lines heights is a relatively expensive operation | |
123 | // as it gives the user code a possibility to calculate several of them at | |
124 | // once | |
125 | // | |
126 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
127 | // shouldn't rely on the latter being called for all lines in the interval | |
128 | // specified here. It is also possible that OnGetLineHeight() will be | |
129 | // called for the lines outside of this interval, so this is really just a | |
130 | // hint, not a promise. | |
131 | // | |
132 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
133 | // usual | |
134 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
135 | ||
136 | ||
137 | // when the number of lines changes, we try to estimate the total height | |
138 | // of all lines which is a rather expensive operation in terms of lines | |
139 | // access, so if the user code may estimate the average height | |
140 | // better/faster than we do, it should override this function to implement | |
141 | // its own logic | |
142 | // | |
143 | // this function should return the best guess for the total height it may | |
144 | // make | |
145 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
146 | ||
147 | ||
148 | // Also expose some other interesting protected methods | |
149 | ||
150 | ||
151 | // find the index of the line we need to show at the top of the window such | |
152 | // that the last (fully or partially) visible line is the given one | |
153 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false) | |
154 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
155 | ||
156 | // get the total height of the lines between lineMin (inclusive) and | |
157 | // lineMax (exclusive) | |
158 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
159 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
160 | ||
161 | ||
162 | PYPRIVATE; | |
163 | }; | |
164 | ||
165 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
166 | ||
167 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
168 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
169 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
170 | ||
171 | #include <wx/vlbox.h> | |
172 | DECLARE_DEF_STRING(VListBoxNameStr); | |
173 | ||
174 | class wxPyVListBox : public wxVListBox | |
175 | { | |
176 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
177 | public: | |
178 | wxPyVListBox() : wxVListBox() {} | |
179 | ||
180 | wxPyVListBox(wxWindow *parent, | |
181 | wxWindowID id = wxID_ANY, | |
182 | const wxPoint& pos = wxDefaultPosition, | |
183 | const wxSize& size = wxDefaultSize, | |
184 | long style = 0, | |
185 | const wxString& name = wxPyVListBoxNameStr) | |
186 | : wxVListBox(parent, id, pos, size, style, name) | |
187 | {} | |
188 | ||
189 | // Overridable virtuals | |
190 | ||
191 | // the derived class must implement this function to actually draw the item | |
192 | // with the given index on the provided DC | |
193 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
194 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
195 | ||
196 | ||
197 | // the derived class must implement this method to return the height of the | |
198 | // specified item | |
199 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
200 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
201 | ||
202 | ||
203 | // this method may be used to draw separators between the lines; note that | |
204 | // the rectangle may be modified, typically to deflate it a bit before | |
205 | // passing to OnDrawItem() | |
206 | // | |
207 | // the base class version doesn't do anything | |
208 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
209 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
210 | ||
211 | ||
212 | // this method is used to draw the items background and, maybe, a border | |
213 | // around it | |
214 | // | |
215 | // the base class version implements a reasonable default behaviour which | |
216 | // consists in drawing the selected item with the standard background | |
217 | // colour and drawing a border around the item if it is either selected or | |
218 | // current | |
219 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
220 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
221 | ||
222 | ||
223 | PYPRIVATE; | |
224 | }; | |
225 | ||
226 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
227 | ||
228 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
229 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
230 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
231 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
232 | ||
233 | ||
234 | #include <wx/htmllbox.h> | |
235 | ||
236 | class wxPyHtmlListBox : public wxHtmlListBox | |
237 | { | |
238 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
239 | public: | |
240 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
241 | ||
242 | wxPyHtmlListBox(wxWindow *parent, | |
243 | wxWindowID id = wxID_ANY, | |
244 | const wxPoint& pos = wxDefaultPosition, | |
245 | const wxSize& size = wxDefaultSize, | |
246 | long style = 0, | |
247 | const wxString& name = wxPyVListBoxNameStr) | |
248 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
249 | {} | |
250 | ||
251 | // Overridable virtuals | |
252 | ||
253 | // this method must be implemented in the derived class and should return | |
254 | // the body (i.e. without <html>) of the HTML for the given item | |
255 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
256 | ||
257 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
258 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
259 | ||
260 | // TODO: | |
261 | // // this method allows to customize the selection appearance: it may be used | |
262 | // // to specify the colour of the text which normally has the given colour | |
263 | // // colFg when it is inside the selection | |
264 | // // | |
265 | // // by default, the original colour is not used at all and all text has the | |
266 | // // same (default for this system) colour inside selection | |
267 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
268 | ||
269 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
270 | // // background colour -- this is even more rarely used as you can change it | |
271 | // // globally using SetSelectionBackground() | |
272 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
273 | ||
274 | ||
275 | PYPRIVATE; | |
276 | }; | |
277 | ||
278 | ||
279 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
280 | ||
281 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
282 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
283 | ||
e6056257 RD |
284 | #ifdef __cplusplus |
285 | extern "C" { | |
286 | #endif | |
287 | static void *SwigwxSashEventTowxCommandEvent(void *ptr) { | |
288 | wxSashEvent *src; | |
289 | wxCommandEvent *dest; | |
290 | src = (wxSashEvent *) ptr; | |
291 | dest = (wxCommandEvent *) src; | |
292 | return (void *) dest; | |
293 | } | |
294 | ||
295 | static void *SwigwxSashEventTowxEvent(void *ptr) { | |
296 | wxSashEvent *src; | |
297 | wxEvent *dest; | |
298 | src = (wxSashEvent *) ptr; | |
299 | dest = (wxEvent *) src; | |
300 | return (void *) dest; | |
301 | } | |
302 | ||
303 | static void *SwigwxSashEventTowxObject(void *ptr) { | |
304 | wxSashEvent *src; | |
305 | wxObject *dest; | |
306 | src = (wxSashEvent *) ptr; | |
307 | dest = (wxObject *) src; | |
308 | return (void *) dest; | |
309 | } | |
310 | ||
311 | #define new_wxSashEvent(_swigarg0,_swigarg1) (new wxSashEvent(_swigarg0,_swigarg1)) | |
312 | static PyObject *_wrap_new_wxSashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
313 | PyObject * _resultobj; | |
314 | wxSashEvent * _result; | |
315 | int _arg0 = (int ) 0; | |
316 | wxSashEdgePosition _arg1 = (wxSashEdgePosition ) (wxSASH_NONE); | |
317 | char *_kwnames[] = { "id","edge", NULL }; | |
318 | char _ptemp[128]; | |
319 | ||
320 | self = self; | |
321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxSashEvent",_kwnames,&_arg0,&_arg1)) | |
322 | return NULL; | |
323 | { | |
0e2ff151 | 324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 325 | _result = (wxSashEvent *)new_wxSashEvent(_arg0,_arg1); |
e6056257 | 326 | |
0e2ff151 | 327 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
328 | if (PyErr_Occurred()) return NULL; |
329 | } if (_result) { | |
330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashEvent_p"); | |
331 | _resultobj = Py_BuildValue("s",_ptemp); | |
332 | } else { | |
333 | Py_INCREF(Py_None); | |
334 | _resultobj = Py_None; | |
335 | } | |
336 | return _resultobj; | |
337 | } | |
338 | ||
339 | #define wxSashEvent_SetEdge(_swigobj,_swigarg0) (_swigobj->SetEdge(_swigarg0)) | |
340 | static PyObject *_wrap_wxSashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
341 | PyObject * _resultobj; | |
342 | wxSashEvent * _arg0; | |
343 | wxSashEdgePosition _arg1; | |
344 | PyObject * _argo0 = 0; | |
345 | char *_kwnames[] = { "self","edge", NULL }; | |
346 | ||
347 | self = self; | |
348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashEvent_SetEdge",_kwnames,&_argo0,&_arg1)) | |
349 | return NULL; | |
350 | if (_argo0) { | |
351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetEdge. Expected _wxSashEvent_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
0e2ff151 | 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 359 | wxSashEvent_SetEdge(_arg0,_arg1); |
e6056257 | 360 | |
0e2ff151 | 361 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
362 | if (PyErr_Occurred()) return NULL; |
363 | } Py_INCREF(Py_None); | |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
368 | #define wxSashEvent_GetEdge(_swigobj) (_swigobj->GetEdge()) | |
369 | static PyObject *_wrap_wxSashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
370 | PyObject * _resultobj; | |
371 | wxSashEdgePosition _result; | |
372 | wxSashEvent * _arg0; | |
373 | PyObject * _argo0 = 0; | |
374 | char *_kwnames[] = { "self", NULL }; | |
375 | ||
376 | self = self; | |
377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetEdge",_kwnames,&_argo0)) | |
378 | return NULL; | |
379 | if (_argo0) { | |
380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetEdge. Expected _wxSashEvent_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
0e2ff151 | 387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 388 | _result = (wxSashEdgePosition )wxSashEvent_GetEdge(_arg0); |
e6056257 | 389 | |
0e2ff151 | 390 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
391 | if (PyErr_Occurred()) return NULL; |
392 | } _resultobj = Py_BuildValue("i",_result); | |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxSashEvent_SetDragRect(_swigobj,_swigarg0) (_swigobj->SetDragRect(_swigarg0)) | |
397 | static PyObject *_wrap_wxSashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxSashEvent * _arg0; | |
400 | wxRect * _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | wxRect temp; | |
403 | PyObject * _obj1 = 0; | |
404 | char *_kwnames[] = { "self","rect", NULL }; | |
405 | ||
406 | self = self; | |
407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSashEvent_SetDragRect",_kwnames,&_argo0,&_obj1)) | |
408 | return NULL; | |
409 | if (_argo0) { | |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetDragRect. Expected _wxSashEvent_p."); | |
413 | return NULL; | |
414 | } | |
415 | } | |
416 | { | |
417 | _arg1 = &temp; | |
418 | if (! wxRect_helper(_obj1, &_arg1)) | |
419 | return NULL; | |
420 | } | |
421 | { | |
0e2ff151 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 423 | wxSashEvent_SetDragRect(_arg0,*_arg1); |
e6056257 | 424 | |
0e2ff151 | 425 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
426 | if (PyErr_Occurred()) return NULL; |
427 | } Py_INCREF(Py_None); | |
428 | _resultobj = Py_None; | |
429 | return _resultobj; | |
430 | } | |
431 | ||
432 | #define wxSashEvent_GetDragRect(_swigobj) (_swigobj->GetDragRect()) | |
433 | static PyObject *_wrap_wxSashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
434 | PyObject * _resultobj; | |
435 | wxRect * _result; | |
436 | wxSashEvent * _arg0; | |
437 | PyObject * _argo0 = 0; | |
438 | char *_kwnames[] = { "self", NULL }; | |
439 | char _ptemp[128]; | |
440 | ||
441 | self = self; | |
442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetDragRect",_kwnames,&_argo0)) | |
443 | return NULL; | |
444 | if (_argo0) { | |
445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetDragRect. Expected _wxSashEvent_p."); | |
448 | return NULL; | |
449 | } | |
450 | } | |
451 | { | |
0e2ff151 | 452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 453 | _result = new wxRect (wxSashEvent_GetDragRect(_arg0)); |
e6056257 | 454 | |
0e2ff151 | 455 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
456 | if (PyErr_Occurred()) return NULL; |
457 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
458 | _resultobj = Py_BuildValue("s",_ptemp); | |
459 | return _resultobj; | |
460 | } | |
461 | ||
462 | #define wxSashEvent_SetDragStatus(_swigobj,_swigarg0) (_swigobj->SetDragStatus(_swigarg0)) | |
463 | static PyObject *_wrap_wxSashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxSashEvent * _arg0; | |
466 | wxSashDragStatus _arg1; | |
467 | PyObject * _argo0 = 0; | |
468 | char *_kwnames[] = { "self","status", NULL }; | |
469 | ||
470 | self = self; | |
471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashEvent_SetDragStatus",_kwnames,&_argo0,&_arg1)) | |
472 | return NULL; | |
473 | if (_argo0) { | |
474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_SetDragStatus. Expected _wxSashEvent_p."); | |
477 | return NULL; | |
478 | } | |
479 | } | |
480 | { | |
0e2ff151 | 481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 482 | wxSashEvent_SetDragStatus(_arg0,_arg1); |
e6056257 | 483 | |
0e2ff151 | 484 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
485 | if (PyErr_Occurred()) return NULL; |
486 | } Py_INCREF(Py_None); | |
487 | _resultobj = Py_None; | |
488 | return _resultobj; | |
489 | } | |
490 | ||
491 | #define wxSashEvent_GetDragStatus(_swigobj) (_swigobj->GetDragStatus()) | |
492 | static PyObject *_wrap_wxSashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
493 | PyObject * _resultobj; | |
494 | wxSashDragStatus _result; | |
495 | wxSashEvent * _arg0; | |
496 | PyObject * _argo0 = 0; | |
497 | char *_kwnames[] = { "self", NULL }; | |
498 | ||
499 | self = self; | |
500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashEvent_GetDragStatus",_kwnames,&_argo0)) | |
501 | return NULL; | |
502 | if (_argo0) { | |
503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashEvent_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashEvent_GetDragStatus. Expected _wxSashEvent_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
0e2ff151 | 510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 511 | _result = (wxSashDragStatus )wxSashEvent_GetDragStatus(_arg0); |
e6056257 | 512 | |
0e2ff151 | 513 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
514 | if (PyErr_Occurred()) return NULL; |
515 | } _resultobj = Py_BuildValue("i",_result); | |
516 | return _resultobj; | |
517 | } | |
518 | ||
519 | static void *SwigwxSashWindowTowxWindow(void *ptr) { | |
520 | wxSashWindow *src; | |
521 | wxWindow *dest; | |
522 | src = (wxSashWindow *) ptr; | |
523 | dest = (wxWindow *) src; | |
524 | return (void *) dest; | |
525 | } | |
526 | ||
527 | static void *SwigwxSashWindowTowxEvtHandler(void *ptr) { | |
528 | wxSashWindow *src; | |
529 | wxEvtHandler *dest; | |
530 | src = (wxSashWindow *) ptr; | |
531 | dest = (wxEvtHandler *) src; | |
532 | return (void *) dest; | |
533 | } | |
534 | ||
535 | static void *SwigwxSashWindowTowxObject(void *ptr) { | |
536 | wxSashWindow *src; | |
537 | wxObject *dest; | |
538 | src = (wxSashWindow *) ptr; | |
539 | dest = (wxObject *) src; | |
540 | return (void *) dest; | |
541 | } | |
542 | ||
543 | #define new_wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
544 | static PyObject *_wrap_new_wxSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
545 | PyObject * _resultobj; | |
546 | wxSashWindow * _result; | |
547 | wxWindow * _arg0; | |
548 | wxWindowID _arg1; | |
549 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
550 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
551 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 552 | wxString * _arg5 = (wxString *) &wxPySashNameStr; |
e6056257 RD |
553 | PyObject * _argo0 = 0; |
554 | wxPoint temp; | |
555 | PyObject * _obj2 = 0; | |
556 | wxSize temp0; | |
557 | PyObject * _obj3 = 0; | |
c3bfa1cb | 558 | PyObject * _obj5 = 0; |
e6056257 RD |
559 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
560 | char _ptemp[128]; | |
561 | ||
562 | self = self; | |
c3bfa1cb | 563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSashWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
564 | return NULL; |
565 | if (_argo0) { | |
566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSashWindow. Expected _wxWindow_p."); | |
569 | return NULL; | |
570 | } | |
571 | } | |
572 | if (_obj2) | |
573 | { | |
574 | _arg2 = &temp; | |
575 | if (! wxPoint_helper(_obj2, &_arg2)) | |
576 | return NULL; | |
577 | } | |
578 | if (_obj3) | |
579 | { | |
580 | _arg3 = &temp0; | |
581 | if (! wxSize_helper(_obj3, &_arg3)) | |
582 | return NULL; | |
c3bfa1cb RD |
583 | } |
584 | if (_obj5) | |
585 | { | |
586 | _arg5 = wxString_in_helper(_obj5); | |
587 | if (_arg5 == NULL) | |
588 | return NULL; | |
e6056257 RD |
589 | } |
590 | { | |
0e2ff151 | 591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 592 | _result = (wxSashWindow *)new_wxSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 593 | |
0e2ff151 | 594 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
595 | if (PyErr_Occurred()) return NULL; |
596 | } if (_result) { | |
597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashWindow_p"); | |
598 | _resultobj = Py_BuildValue("s",_ptemp); | |
599 | } else { | |
600 | Py_INCREF(Py_None); | |
601 | _resultobj = Py_None; | |
602 | } | |
c3bfa1cb RD |
603 | { |
604 | if (_obj5) | |
605 | delete _arg5; | |
606 | } | |
e6056257 RD |
607 | return _resultobj; |
608 | } | |
609 | ||
610 | #define new_wxPreSashWindow() (new wxSashWindow()) | |
611 | static PyObject *_wrap_new_wxPreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
612 | PyObject * _resultobj; | |
613 | wxSashWindow * _result; | |
614 | char *_kwnames[] = { NULL }; | |
615 | char _ptemp[128]; | |
616 | ||
617 | self = self; | |
618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSashWindow",_kwnames)) | |
619 | return NULL; | |
620 | { | |
0e2ff151 | 621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 622 | _result = (wxSashWindow *)new_wxPreSashWindow(); |
e6056257 | 623 | |
0e2ff151 | 624 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
625 | if (PyErr_Occurred()) return NULL; |
626 | } if (_result) { | |
627 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashWindow_p"); | |
628 | _resultobj = Py_BuildValue("s",_ptemp); | |
629 | } else { | |
630 | Py_INCREF(Py_None); | |
631 | _resultobj = Py_None; | |
632 | } | |
633 | return _resultobj; | |
634 | } | |
635 | ||
636 | #define wxSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
637 | static PyObject *_wrap_wxSashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
638 | PyObject * _resultobj; | |
639 | bool _result; | |
640 | wxSashWindow * _arg0; | |
641 | wxWindow * _arg1; | |
642 | wxWindowID _arg2; | |
643 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
644 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
645 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 646 | wxString * _arg6 = (wxString *) &wxPySashNameStr; |
e6056257 RD |
647 | PyObject * _argo0 = 0; |
648 | PyObject * _argo1 = 0; | |
649 | wxPoint temp; | |
650 | PyObject * _obj3 = 0; | |
651 | wxSize temp0; | |
652 | PyObject * _obj4 = 0; | |
c3bfa1cb | 653 | PyObject * _obj6 = 0; |
e6056257 RD |
654 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
655 | ||
656 | self = self; | |
c3bfa1cb | 657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSashWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
658 | return NULL; |
659 | if (_argo0) { | |
660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_Create. Expected _wxSashWindow_p."); | |
663 | return NULL; | |
664 | } | |
665 | } | |
666 | if (_argo1) { | |
667 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
668 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSashWindow_Create. Expected _wxWindow_p."); | |
670 | return NULL; | |
671 | } | |
672 | } | |
673 | if (_obj3) | |
674 | { | |
675 | _arg3 = &temp; | |
676 | if (! wxPoint_helper(_obj3, &_arg3)) | |
677 | return NULL; | |
678 | } | |
679 | if (_obj4) | |
680 | { | |
681 | _arg4 = &temp0; | |
682 | if (! wxSize_helper(_obj4, &_arg4)) | |
683 | return NULL; | |
c3bfa1cb RD |
684 | } |
685 | if (_obj6) | |
686 | { | |
687 | _arg6 = wxString_in_helper(_obj6); | |
688 | if (_arg6 == NULL) | |
689 | return NULL; | |
e6056257 RD |
690 | } |
691 | { | |
0e2ff151 | 692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 693 | _result = (bool )wxSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 694 | |
0e2ff151 | 695 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
696 | if (PyErr_Occurred()) return NULL; |
697 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
698 | { |
699 | if (_obj6) | |
700 | delete _arg6; | |
701 | } | |
e6056257 RD |
702 | return _resultobj; |
703 | } | |
704 | ||
705 | #define wxSashWindow_GetSashVisible(_swigobj,_swigarg0) (_swigobj->GetSashVisible(_swigarg0)) | |
706 | static PyObject *_wrap_wxSashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
707 | PyObject * _resultobj; | |
708 | bool _result; | |
709 | wxSashWindow * _arg0; | |
710 | wxSashEdgePosition _arg1; | |
711 | PyObject * _argo0 = 0; | |
712 | char *_kwnames[] = { "self","edge", NULL }; | |
713 | ||
714 | self = self; | |
715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_GetSashVisible",_kwnames,&_argo0,&_arg1)) | |
716 | return NULL; | |
717 | if (_argo0) { | |
718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetSashVisible. Expected _wxSashWindow_p."); | |
721 | return NULL; | |
722 | } | |
723 | } | |
724 | { | |
0e2ff151 | 725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 726 | _result = (bool )wxSashWindow_GetSashVisible(_arg0,_arg1); |
e6056257 | 727 | |
0e2ff151 | 728 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
729 | if (PyErr_Occurred()) return NULL; |
730 | } _resultobj = Py_BuildValue("i",_result); | |
731 | return _resultobj; | |
732 | } | |
733 | ||
734 | #define wxSashWindow_GetDefaultBorderSize(_swigobj) (_swigobj->GetDefaultBorderSize()) | |
735 | static PyObject *_wrap_wxSashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
736 | PyObject * _resultobj; | |
737 | int _result; | |
738 | wxSashWindow * _arg0; | |
739 | PyObject * _argo0 = 0; | |
740 | char *_kwnames[] = { "self", NULL }; | |
741 | ||
742 | self = self; | |
743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetDefaultBorderSize",_kwnames,&_argo0)) | |
744 | return NULL; | |
745 | if (_argo0) { | |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetDefaultBorderSize. Expected _wxSashWindow_p."); | |
749 | return NULL; | |
750 | } | |
751 | } | |
752 | { | |
0e2ff151 | 753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 754 | _result = (int )wxSashWindow_GetDefaultBorderSize(_arg0); |
e6056257 | 755 | |
0e2ff151 | 756 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
757 | if (PyErr_Occurred()) return NULL; |
758 | } _resultobj = Py_BuildValue("i",_result); | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | #define wxSashWindow_GetEdgeMargin(_swigobj,_swigarg0) (_swigobj->GetEdgeMargin(_swigarg0)) | |
763 | static PyObject *_wrap_wxSashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
764 | PyObject * _resultobj; | |
765 | int _result; | |
766 | wxSashWindow * _arg0; | |
767 | wxSashEdgePosition _arg1; | |
768 | PyObject * _argo0 = 0; | |
769 | char *_kwnames[] = { "self","edge", NULL }; | |
770 | ||
771 | self = self; | |
772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_GetEdgeMargin",_kwnames,&_argo0,&_arg1)) | |
773 | return NULL; | |
774 | if (_argo0) { | |
775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetEdgeMargin. Expected _wxSashWindow_p."); | |
778 | return NULL; | |
779 | } | |
780 | } | |
781 | { | |
0e2ff151 | 782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 783 | _result = (int )wxSashWindow_GetEdgeMargin(_arg0,_arg1); |
e6056257 | 784 | |
0e2ff151 | 785 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
786 | if (PyErr_Occurred()) return NULL; |
787 | } _resultobj = Py_BuildValue("i",_result); | |
788 | return _resultobj; | |
789 | } | |
790 | ||
791 | #define wxSashWindow_GetExtraBorderSize(_swigobj) (_swigobj->GetExtraBorderSize()) | |
792 | static PyObject *_wrap_wxSashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
793 | PyObject * _resultobj; | |
794 | int _result; | |
795 | wxSashWindow * _arg0; | |
796 | PyObject * _argo0 = 0; | |
797 | char *_kwnames[] = { "self", NULL }; | |
798 | ||
799 | self = self; | |
800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetExtraBorderSize",_kwnames,&_argo0)) | |
801 | return NULL; | |
802 | if (_argo0) { | |
803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetExtraBorderSize. Expected _wxSashWindow_p."); | |
806 | return NULL; | |
807 | } | |
808 | } | |
809 | { | |
0e2ff151 | 810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 811 | _result = (int )wxSashWindow_GetExtraBorderSize(_arg0); |
e6056257 | 812 | |
0e2ff151 | 813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
814 | if (PyErr_Occurred()) return NULL; |
815 | } _resultobj = Py_BuildValue("i",_result); | |
816 | return _resultobj; | |
817 | } | |
818 | ||
819 | #define wxSashWindow_GetMaximumSizeX(_swigobj) (_swigobj->GetMaximumSizeX()) | |
820 | static PyObject *_wrap_wxSashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
821 | PyObject * _resultobj; | |
822 | int _result; | |
823 | wxSashWindow * _arg0; | |
824 | PyObject * _argo0 = 0; | |
825 | char *_kwnames[] = { "self", NULL }; | |
826 | ||
827 | self = self; | |
828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMaximumSizeX",_kwnames,&_argo0)) | |
829 | return NULL; | |
830 | if (_argo0) { | |
831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMaximumSizeX. Expected _wxSashWindow_p."); | |
834 | return NULL; | |
835 | } | |
836 | } | |
837 | { | |
0e2ff151 | 838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 839 | _result = (int )wxSashWindow_GetMaximumSizeX(_arg0); |
e6056257 | 840 | |
0e2ff151 | 841 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
842 | if (PyErr_Occurred()) return NULL; |
843 | } _resultobj = Py_BuildValue("i",_result); | |
844 | return _resultobj; | |
845 | } | |
846 | ||
847 | #define wxSashWindow_GetMaximumSizeY(_swigobj) (_swigobj->GetMaximumSizeY()) | |
848 | static PyObject *_wrap_wxSashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
849 | PyObject * _resultobj; | |
850 | int _result; | |
851 | wxSashWindow * _arg0; | |
852 | PyObject * _argo0 = 0; | |
853 | char *_kwnames[] = { "self", NULL }; | |
854 | ||
855 | self = self; | |
856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMaximumSizeY",_kwnames,&_argo0)) | |
857 | return NULL; | |
858 | if (_argo0) { | |
859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMaximumSizeY. Expected _wxSashWindow_p."); | |
862 | return NULL; | |
863 | } | |
864 | } | |
865 | { | |
0e2ff151 | 866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 867 | _result = (int )wxSashWindow_GetMaximumSizeY(_arg0); |
e6056257 | 868 | |
0e2ff151 | 869 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
870 | if (PyErr_Occurred()) return NULL; |
871 | } _resultobj = Py_BuildValue("i",_result); | |
872 | return _resultobj; | |
873 | } | |
874 | ||
875 | #define wxSashWindow_GetMinimumSizeX(_swigobj) (_swigobj->GetMinimumSizeX()) | |
876 | static PyObject *_wrap_wxSashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
877 | PyObject * _resultobj; | |
878 | int _result; | |
879 | wxSashWindow * _arg0; | |
880 | PyObject * _argo0 = 0; | |
881 | char *_kwnames[] = { "self", NULL }; | |
882 | ||
883 | self = self; | |
884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMinimumSizeX",_kwnames,&_argo0)) | |
885 | return NULL; | |
886 | if (_argo0) { | |
887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMinimumSizeX. Expected _wxSashWindow_p."); | |
890 | return NULL; | |
891 | } | |
892 | } | |
893 | { | |
0e2ff151 | 894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 895 | _result = (int )wxSashWindow_GetMinimumSizeX(_arg0); |
e6056257 | 896 | |
0e2ff151 | 897 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
898 | if (PyErr_Occurred()) return NULL; |
899 | } _resultobj = Py_BuildValue("i",_result); | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxSashWindow_GetMinimumSizeY(_swigobj) (_swigobj->GetMinimumSizeY()) | |
904 | static PyObject *_wrap_wxSashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | int _result; | |
907 | wxSashWindow * _arg0; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashWindow_GetMinimumSizeY",_kwnames,&_argo0)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_GetMinimumSizeY. Expected _wxSashWindow_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
0e2ff151 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 923 | _result = (int )wxSashWindow_GetMinimumSizeY(_arg0); |
e6056257 | 924 | |
0e2ff151 | 925 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
926 | if (PyErr_Occurred()) return NULL; |
927 | } _resultobj = Py_BuildValue("i",_result); | |
928 | return _resultobj; | |
929 | } | |
930 | ||
931 | #define wxSashWindow_HasBorder(_swigobj,_swigarg0) (_swigobj->HasBorder(_swigarg0)) | |
932 | static PyObject *_wrap_wxSashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
933 | PyObject * _resultobj; | |
934 | bool _result; | |
935 | wxSashWindow * _arg0; | |
936 | wxSashEdgePosition _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","edge", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_HasBorder",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_HasBorder. Expected _wxSashWindow_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
0e2ff151 | 951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 952 | _result = (bool )wxSashWindow_HasBorder(_arg0,_arg1); |
e6056257 | 953 | |
0e2ff151 | 954 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
955 | if (PyErr_Occurred()) return NULL; |
956 | } _resultobj = Py_BuildValue("i",_result); | |
957 | return _resultobj; | |
958 | } | |
959 | ||
960 | #define wxSashWindow_SetDefaultBorderSize(_swigobj,_swigarg0) (_swigobj->SetDefaultBorderSize(_swigarg0)) | |
961 | static PyObject *_wrap_wxSashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
962 | PyObject * _resultobj; | |
963 | wxSashWindow * _arg0; | |
964 | int _arg1; | |
965 | PyObject * _argo0 = 0; | |
966 | char *_kwnames[] = { "self","width", NULL }; | |
967 | ||
968 | self = self; | |
969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetDefaultBorderSize",_kwnames,&_argo0,&_arg1)) | |
970 | return NULL; | |
971 | if (_argo0) { | |
972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetDefaultBorderSize. Expected _wxSashWindow_p."); | |
975 | return NULL; | |
976 | } | |
977 | } | |
978 | { | |
0e2ff151 | 979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 980 | wxSashWindow_SetDefaultBorderSize(_arg0,_arg1); |
e6056257 | 981 | |
0e2ff151 | 982 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
983 | if (PyErr_Occurred()) return NULL; |
984 | } Py_INCREF(Py_None); | |
985 | _resultobj = Py_None; | |
986 | return _resultobj; | |
987 | } | |
988 | ||
989 | #define wxSashWindow_SetExtraBorderSize(_swigobj,_swigarg0) (_swigobj->SetExtraBorderSize(_swigarg0)) | |
990 | static PyObject *_wrap_wxSashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxSashWindow * _arg0; | |
993 | int _arg1; | |
994 | PyObject * _argo0 = 0; | |
995 | char *_kwnames[] = { "self","width", NULL }; | |
996 | ||
997 | self = self; | |
998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetExtraBorderSize",_kwnames,&_argo0,&_arg1)) | |
999 | return NULL; | |
1000 | if (_argo0) { | |
1001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetExtraBorderSize. Expected _wxSashWindow_p."); | |
1004 | return NULL; | |
1005 | } | |
1006 | } | |
1007 | { | |
0e2ff151 | 1008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1009 | wxSashWindow_SetExtraBorderSize(_arg0,_arg1); |
e6056257 | 1010 | |
0e2ff151 | 1011 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1012 | if (PyErr_Occurred()) return NULL; |
1013 | } Py_INCREF(Py_None); | |
1014 | _resultobj = Py_None; | |
1015 | return _resultobj; | |
1016 | } | |
1017 | ||
1018 | #define wxSashWindow_SetMaximumSizeX(_swigobj,_swigarg0) (_swigobj->SetMaximumSizeX(_swigarg0)) | |
1019 | static PyObject *_wrap_wxSashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1020 | PyObject * _resultobj; | |
1021 | wxSashWindow * _arg0; | |
1022 | int _arg1; | |
1023 | PyObject * _argo0 = 0; | |
1024 | char *_kwnames[] = { "self","min", NULL }; | |
1025 | ||
1026 | self = self; | |
1027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMaximumSizeX",_kwnames,&_argo0,&_arg1)) | |
1028 | return NULL; | |
1029 | if (_argo0) { | |
1030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMaximumSizeX. Expected _wxSashWindow_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | { | |
0e2ff151 | 1037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1038 | wxSashWindow_SetMaximumSizeX(_arg0,_arg1); |
e6056257 | 1039 | |
0e2ff151 | 1040 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1041 | if (PyErr_Occurred()) return NULL; |
1042 | } Py_INCREF(Py_None); | |
1043 | _resultobj = Py_None; | |
1044 | return _resultobj; | |
1045 | } | |
1046 | ||
1047 | #define wxSashWindow_SetMaximumSizeY(_swigobj,_swigarg0) (_swigobj->SetMaximumSizeY(_swigarg0)) | |
1048 | static PyObject *_wrap_wxSashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject * _resultobj; | |
1050 | wxSashWindow * _arg0; | |
1051 | int _arg1; | |
1052 | PyObject * _argo0 = 0; | |
1053 | char *_kwnames[] = { "self","min", NULL }; | |
1054 | ||
1055 | self = self; | |
1056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMaximumSizeY",_kwnames,&_argo0,&_arg1)) | |
1057 | return NULL; | |
1058 | if (_argo0) { | |
1059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMaximumSizeY. Expected _wxSashWindow_p."); | |
1062 | return NULL; | |
1063 | } | |
1064 | } | |
1065 | { | |
0e2ff151 | 1066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1067 | wxSashWindow_SetMaximumSizeY(_arg0,_arg1); |
e6056257 | 1068 | |
0e2ff151 | 1069 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1070 | if (PyErr_Occurred()) return NULL; |
1071 | } Py_INCREF(Py_None); | |
1072 | _resultobj = Py_None; | |
1073 | return _resultobj; | |
1074 | } | |
1075 | ||
1076 | #define wxSashWindow_SetMinimumSizeX(_swigobj,_swigarg0) (_swigobj->SetMinimumSizeX(_swigarg0)) | |
1077 | static PyObject *_wrap_wxSashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1078 | PyObject * _resultobj; | |
1079 | wxSashWindow * _arg0; | |
1080 | int _arg1; | |
1081 | PyObject * _argo0 = 0; | |
1082 | char *_kwnames[] = { "self","min", NULL }; | |
1083 | ||
1084 | self = self; | |
1085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMinimumSizeX",_kwnames,&_argo0,&_arg1)) | |
1086 | return NULL; | |
1087 | if (_argo0) { | |
1088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMinimumSizeX. Expected _wxSashWindow_p."); | |
1091 | return NULL; | |
1092 | } | |
1093 | } | |
1094 | { | |
0e2ff151 | 1095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1096 | wxSashWindow_SetMinimumSizeX(_arg0,_arg1); |
e6056257 | 1097 | |
0e2ff151 | 1098 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1099 | if (PyErr_Occurred()) return NULL; |
1100 | } Py_INCREF(Py_None); | |
1101 | _resultobj = Py_None; | |
1102 | return _resultobj; | |
1103 | } | |
1104 | ||
1105 | #define wxSashWindow_SetMinimumSizeY(_swigobj,_swigarg0) (_swigobj->SetMinimumSizeY(_swigarg0)) | |
1106 | static PyObject *_wrap_wxSashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1107 | PyObject * _resultobj; | |
1108 | wxSashWindow * _arg0; | |
1109 | int _arg1; | |
1110 | PyObject * _argo0 = 0; | |
1111 | char *_kwnames[] = { "self","min", NULL }; | |
1112 | ||
1113 | self = self; | |
1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashWindow_SetMinimumSizeY",_kwnames,&_argo0,&_arg1)) | |
1115 | return NULL; | |
1116 | if (_argo0) { | |
1117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetMinimumSizeY. Expected _wxSashWindow_p."); | |
1120 | return NULL; | |
1121 | } | |
1122 | } | |
1123 | { | |
0e2ff151 | 1124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1125 | wxSashWindow_SetMinimumSizeY(_arg0,_arg1); |
e6056257 | 1126 | |
0e2ff151 | 1127 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1128 | if (PyErr_Occurred()) return NULL; |
1129 | } Py_INCREF(Py_None); | |
1130 | _resultobj = Py_None; | |
1131 | return _resultobj; | |
1132 | } | |
1133 | ||
1134 | #define wxSashWindow_SetSashVisible(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashVisible(_swigarg0,_swigarg1)) | |
1135 | static PyObject *_wrap_wxSashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1136 | PyObject * _resultobj; | |
1137 | wxSashWindow * _arg0; | |
1138 | wxSashEdgePosition _arg1; | |
1139 | bool _arg2; | |
1140 | PyObject * _argo0 = 0; | |
1141 | int tempbool2; | |
1142 | char *_kwnames[] = { "self","edge","visible", NULL }; | |
1143 | ||
1144 | self = self; | |
1145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSashWindow_SetSashVisible",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
1146 | return NULL; | |
1147 | if (_argo0) { | |
1148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetSashVisible. Expected _wxSashWindow_p."); | |
1151 | return NULL; | |
1152 | } | |
1153 | } | |
1154 | _arg2 = (bool ) tempbool2; | |
1155 | { | |
0e2ff151 | 1156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1157 | wxSashWindow_SetSashVisible(_arg0,_arg1,_arg2); |
e6056257 | 1158 | |
0e2ff151 | 1159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1160 | if (PyErr_Occurred()) return NULL; |
1161 | } Py_INCREF(Py_None); | |
1162 | _resultobj = Py_None; | |
1163 | return _resultobj; | |
1164 | } | |
1165 | ||
1166 | #define wxSashWindow_SetSashBorder(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSashBorder(_swigarg0,_swigarg1)) | |
1167 | static PyObject *_wrap_wxSashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1168 | PyObject * _resultobj; | |
1169 | wxSashWindow * _arg0; | |
1170 | wxSashEdgePosition _arg1; | |
1171 | bool _arg2; | |
1172 | PyObject * _argo0 = 0; | |
1173 | int tempbool2; | |
1174 | char *_kwnames[] = { "self","edge","hasBorder", NULL }; | |
1175 | ||
1176 | self = self; | |
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxSashWindow_SetSashBorder",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
1178 | return NULL; | |
1179 | if (_argo0) { | |
1180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashWindow_p")) { | |
1182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashWindow_SetSashBorder. Expected _wxSashWindow_p."); | |
1183 | return NULL; | |
1184 | } | |
1185 | } | |
1186 | _arg2 = (bool ) tempbool2; | |
1187 | { | |
0e2ff151 | 1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1189 | wxSashWindow_SetSashBorder(_arg0,_arg1,_arg2); |
e6056257 | 1190 | |
0e2ff151 | 1191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1192 | if (PyErr_Occurred()) return NULL; |
1193 | } Py_INCREF(Py_None); | |
1194 | _resultobj = Py_None; | |
1195 | return _resultobj; | |
1196 | } | |
1197 | ||
1198 | static void *SwigwxQueryLayoutInfoEventTowxEvent(void *ptr) { | |
1199 | wxQueryLayoutInfoEvent *src; | |
1200 | wxEvent *dest; | |
1201 | src = (wxQueryLayoutInfoEvent *) ptr; | |
1202 | dest = (wxEvent *) src; | |
1203 | return (void *) dest; | |
1204 | } | |
1205 | ||
1206 | static void *SwigwxQueryLayoutInfoEventTowxObject(void *ptr) { | |
1207 | wxQueryLayoutInfoEvent *src; | |
1208 | wxObject *dest; | |
1209 | src = (wxQueryLayoutInfoEvent *) ptr; | |
1210 | dest = (wxObject *) src; | |
1211 | return (void *) dest; | |
1212 | } | |
1213 | ||
1214 | #define new_wxQueryLayoutInfoEvent(_swigarg0) (new wxQueryLayoutInfoEvent(_swigarg0)) | |
1215 | static PyObject *_wrap_new_wxQueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1216 | PyObject * _resultobj; | |
1217 | wxQueryLayoutInfoEvent * _result; | |
1218 | wxWindowID _arg0 = (wxWindowID ) 0; | |
1219 | char *_kwnames[] = { "id", NULL }; | |
1220 | char _ptemp[128]; | |
1221 | ||
1222 | self = self; | |
1223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxQueryLayoutInfoEvent",_kwnames,&_arg0)) | |
1224 | return NULL; | |
1225 | { | |
0e2ff151 | 1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1227 | _result = (wxQueryLayoutInfoEvent *)new_wxQueryLayoutInfoEvent(_arg0); |
e6056257 | 1228 | |
0e2ff151 | 1229 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1230 | if (PyErr_Occurred()) return NULL; |
1231 | } if (_result) { | |
1232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxQueryLayoutInfoEvent_p"); | |
1233 | _resultobj = Py_BuildValue("s",_ptemp); | |
1234 | } else { | |
1235 | Py_INCREF(Py_None); | |
1236 | _resultobj = Py_None; | |
1237 | } | |
1238 | return _resultobj; | |
1239 | } | |
1240 | ||
1241 | #define wxQueryLayoutInfoEvent_SetRequestedLength(_swigobj,_swigarg0) (_swigobj->SetRequestedLength(_swigarg0)) | |
1242 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1243 | PyObject * _resultobj; | |
1244 | wxQueryLayoutInfoEvent * _arg0; | |
1245 | int _arg1; | |
1246 | PyObject * _argo0 = 0; | |
1247 | char *_kwnames[] = { "self","length", NULL }; | |
1248 | ||
1249 | self = self; | |
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetRequestedLength",_kwnames,&_argo0,&_arg1)) | |
1251 | return NULL; | |
1252 | if (_argo0) { | |
1253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetRequestedLength. Expected _wxQueryLayoutInfoEvent_p."); | |
1256 | return NULL; | |
1257 | } | |
1258 | } | |
1259 | { | |
0e2ff151 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1261 | wxQueryLayoutInfoEvent_SetRequestedLength(_arg0,_arg1); |
e6056257 | 1262 | |
0e2ff151 | 1263 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1264 | if (PyErr_Occurred()) return NULL; |
1265 | } Py_INCREF(Py_None); | |
1266 | _resultobj = Py_None; | |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxQueryLayoutInfoEvent_GetRequestedLength(_swigobj) (_swigobj->GetRequestedLength()) | |
1271 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | int _result; | |
1274 | wxQueryLayoutInfoEvent * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetRequestedLength",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetRequestedLength. Expected _wxQueryLayoutInfoEvent_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
0e2ff151 | 1289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1290 | _result = (int )wxQueryLayoutInfoEvent_GetRequestedLength(_arg0); |
e6056257 | 1291 | |
0e2ff151 | 1292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1293 | if (PyErr_Occurred()) return NULL; |
1294 | } _resultobj = Py_BuildValue("i",_result); | |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxQueryLayoutInfoEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
1299 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | wxQueryLayoutInfoEvent * _arg0; | |
1302 | int _arg1; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self","flags", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetFlags",_kwnames,&_argo0,&_arg1)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetFlags. Expected _wxQueryLayoutInfoEvent_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
0e2ff151 | 1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1318 | wxQueryLayoutInfoEvent_SetFlags(_arg0,_arg1); |
e6056257 | 1319 | |
0e2ff151 | 1320 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1321 | if (PyErr_Occurred()) return NULL; |
1322 | } Py_INCREF(Py_None); | |
1323 | _resultobj = Py_None; | |
1324 | return _resultobj; | |
1325 | } | |
1326 | ||
1327 | #define wxQueryLayoutInfoEvent_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
1328 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1329 | PyObject * _resultobj; | |
1330 | int _result; | |
1331 | wxQueryLayoutInfoEvent * _arg0; | |
1332 | PyObject * _argo0 = 0; | |
1333 | char *_kwnames[] = { "self", NULL }; | |
1334 | ||
1335 | self = self; | |
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetFlags",_kwnames,&_argo0)) | |
1337 | return NULL; | |
1338 | if (_argo0) { | |
1339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetFlags. Expected _wxQueryLayoutInfoEvent_p."); | |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
1345 | { | |
0e2ff151 | 1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1347 | _result = (int )wxQueryLayoutInfoEvent_GetFlags(_arg0); |
e6056257 | 1348 | |
0e2ff151 | 1349 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1350 | if (PyErr_Occurred()) return NULL; |
1351 | } _resultobj = Py_BuildValue("i",_result); | |
1352 | return _resultobj; | |
1353 | } | |
1354 | ||
1355 | #define wxQueryLayoutInfoEvent_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
1356 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject * _resultobj; | |
1358 | wxQueryLayoutInfoEvent * _arg0; | |
1359 | wxSize * _arg1; | |
1360 | PyObject * _argo0 = 0; | |
1361 | wxSize temp; | |
1362 | PyObject * _obj1 = 0; | |
1363 | char *_kwnames[] = { "self","size", NULL }; | |
1364 | ||
1365 | self = self; | |
1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxQueryLayoutInfoEvent_SetSize",_kwnames,&_argo0,&_obj1)) | |
1367 | return NULL; | |
1368 | if (_argo0) { | |
1369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetSize. Expected _wxQueryLayoutInfoEvent_p."); | |
1372 | return NULL; | |
1373 | } | |
1374 | } | |
1375 | { | |
1376 | _arg1 = &temp; | |
1377 | if (! wxSize_helper(_obj1, &_arg1)) | |
1378 | return NULL; | |
1379 | } | |
1380 | { | |
0e2ff151 | 1381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1382 | wxQueryLayoutInfoEvent_SetSize(_arg0,*_arg1); |
e6056257 | 1383 | |
0e2ff151 | 1384 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1385 | if (PyErr_Occurred()) return NULL; |
1386 | } Py_INCREF(Py_None); | |
1387 | _resultobj = Py_None; | |
1388 | return _resultobj; | |
1389 | } | |
1390 | ||
1391 | #define wxQueryLayoutInfoEvent_GetSize(_swigobj) (_swigobj->GetSize()) | |
1392 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1393 | PyObject * _resultobj; | |
1394 | wxSize * _result; | |
1395 | wxQueryLayoutInfoEvent * _arg0; | |
1396 | PyObject * _argo0 = 0; | |
1397 | char *_kwnames[] = { "self", NULL }; | |
1398 | char _ptemp[128]; | |
1399 | ||
1400 | self = self; | |
1401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetSize",_kwnames,&_argo0)) | |
1402 | return NULL; | |
1403 | if (_argo0) { | |
1404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetSize. Expected _wxQueryLayoutInfoEvent_p."); | |
1407 | return NULL; | |
1408 | } | |
1409 | } | |
1410 | { | |
0e2ff151 | 1411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1412 | _result = new wxSize (wxQueryLayoutInfoEvent_GetSize(_arg0)); |
e6056257 | 1413 | |
0e2ff151 | 1414 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1415 | if (PyErr_Occurred()) return NULL; |
1416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1417 | _resultobj = Py_BuildValue("s",_ptemp); | |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxQueryLayoutInfoEvent_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) | |
1422 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxQueryLayoutInfoEvent * _arg0; | |
1425 | wxLayoutOrientation _arg1; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self","orient", NULL }; | |
1428 | ||
1429 | self = self; | |
1430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetOrientation",_kwnames,&_argo0,&_arg1)) | |
1431 | return NULL; | |
1432 | if (_argo0) { | |
1433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetOrientation. Expected _wxQueryLayoutInfoEvent_p."); | |
1436 | return NULL; | |
1437 | } | |
1438 | } | |
1439 | { | |
0e2ff151 | 1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1441 | wxQueryLayoutInfoEvent_SetOrientation(_arg0,_arg1); |
e6056257 | 1442 | |
0e2ff151 | 1443 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1444 | if (PyErr_Occurred()) return NULL; |
1445 | } Py_INCREF(Py_None); | |
1446 | _resultobj = Py_None; | |
1447 | return _resultobj; | |
1448 | } | |
1449 | ||
1450 | #define wxQueryLayoutInfoEvent_GetOrientation(_swigobj) (_swigobj->GetOrientation()) | |
1451 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1452 | PyObject * _resultobj; | |
1453 | wxLayoutOrientation _result; | |
1454 | wxQueryLayoutInfoEvent * _arg0; | |
1455 | PyObject * _argo0 = 0; | |
1456 | char *_kwnames[] = { "self", NULL }; | |
1457 | ||
1458 | self = self; | |
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetOrientation",_kwnames,&_argo0)) | |
1460 | return NULL; | |
1461 | if (_argo0) { | |
1462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetOrientation. Expected _wxQueryLayoutInfoEvent_p."); | |
1465 | return NULL; | |
1466 | } | |
1467 | } | |
1468 | { | |
0e2ff151 | 1469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1470 | _result = (wxLayoutOrientation )wxQueryLayoutInfoEvent_GetOrientation(_arg0); |
e6056257 | 1471 | |
0e2ff151 | 1472 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1473 | if (PyErr_Occurred()) return NULL; |
1474 | } _resultobj = Py_BuildValue("i",_result); | |
1475 | return _resultobj; | |
1476 | } | |
1477 | ||
1478 | #define wxQueryLayoutInfoEvent_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0)) | |
1479 | static PyObject *_wrap_wxQueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject * _resultobj; | |
1481 | wxQueryLayoutInfoEvent * _arg0; | |
1482 | wxLayoutAlignment _arg1; | |
1483 | PyObject * _argo0 = 0; | |
1484 | char *_kwnames[] = { "self","align", NULL }; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxQueryLayoutInfoEvent_SetAlignment",_kwnames,&_argo0,&_arg1)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_SetAlignment. Expected _wxQueryLayoutInfoEvent_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
0e2ff151 | 1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1498 | wxQueryLayoutInfoEvent_SetAlignment(_arg0,_arg1); |
e6056257 | 1499 | |
0e2ff151 | 1500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1501 | if (PyErr_Occurred()) return NULL; |
1502 | } Py_INCREF(Py_None); | |
1503 | _resultobj = Py_None; | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxQueryLayoutInfoEvent_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1508 | static PyObject *_wrap_wxQueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | wxLayoutAlignment _result; | |
1511 | wxQueryLayoutInfoEvent * _arg0; | |
1512 | PyObject * _argo0 = 0; | |
1513 | char *_kwnames[] = { "self", NULL }; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxQueryLayoutInfoEvent_GetAlignment",_kwnames,&_argo0)) | |
1517 | return NULL; | |
1518 | if (_argo0) { | |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxQueryLayoutInfoEvent_p")) { | |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxQueryLayoutInfoEvent_GetAlignment. Expected _wxQueryLayoutInfoEvent_p."); | |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
1525 | { | |
0e2ff151 | 1526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1527 | _result = (wxLayoutAlignment )wxQueryLayoutInfoEvent_GetAlignment(_arg0); |
e6056257 | 1528 | |
0e2ff151 | 1529 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1530 | if (PyErr_Occurred()) return NULL; |
1531 | } _resultobj = Py_BuildValue("i",_result); | |
1532 | return _resultobj; | |
1533 | } | |
1534 | ||
1535 | static void *SwigwxCalculateLayoutEventTowxEvent(void *ptr) { | |
1536 | wxCalculateLayoutEvent *src; | |
1537 | wxEvent *dest; | |
1538 | src = (wxCalculateLayoutEvent *) ptr; | |
1539 | dest = (wxEvent *) src; | |
1540 | return (void *) dest; | |
1541 | } | |
1542 | ||
1543 | static void *SwigwxCalculateLayoutEventTowxObject(void *ptr) { | |
1544 | wxCalculateLayoutEvent *src; | |
1545 | wxObject *dest; | |
1546 | src = (wxCalculateLayoutEvent *) ptr; | |
1547 | dest = (wxObject *) src; | |
1548 | return (void *) dest; | |
1549 | } | |
1550 | ||
1551 | #define new_wxCalculateLayoutEvent(_swigarg0) (new wxCalculateLayoutEvent(_swigarg0)) | |
1552 | static PyObject *_wrap_new_wxCalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1553 | PyObject * _resultobj; | |
1554 | wxCalculateLayoutEvent * _result; | |
1555 | wxWindowID _arg0 = (wxWindowID ) 0; | |
1556 | char *_kwnames[] = { "id", NULL }; | |
1557 | char _ptemp[128]; | |
1558 | ||
1559 | self = self; | |
1560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxCalculateLayoutEvent",_kwnames,&_arg0)) | |
1561 | return NULL; | |
1562 | { | |
0e2ff151 | 1563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1564 | _result = (wxCalculateLayoutEvent *)new_wxCalculateLayoutEvent(_arg0); |
e6056257 | 1565 | |
0e2ff151 | 1566 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1567 | if (PyErr_Occurred()) return NULL; |
1568 | } if (_result) { | |
1569 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCalculateLayoutEvent_p"); | |
1570 | _resultobj = Py_BuildValue("s",_ptemp); | |
1571 | } else { | |
1572 | Py_INCREF(Py_None); | |
1573 | _resultobj = Py_None; | |
1574 | } | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
1578 | #define wxCalculateLayoutEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
1579 | static PyObject *_wrap_wxCalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1580 | PyObject * _resultobj; | |
1581 | wxCalculateLayoutEvent * _arg0; | |
1582 | int _arg1; | |
1583 | PyObject * _argo0 = 0; | |
1584 | char *_kwnames[] = { "self","flags", NULL }; | |
1585 | ||
1586 | self = self; | |
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCalculateLayoutEvent_SetFlags",_kwnames,&_argo0,&_arg1)) | |
1588 | return NULL; | |
1589 | if (_argo0) { | |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_SetFlags. Expected _wxCalculateLayoutEvent_p."); | |
1593 | return NULL; | |
1594 | } | |
1595 | } | |
1596 | { | |
0e2ff151 | 1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1598 | wxCalculateLayoutEvent_SetFlags(_arg0,_arg1); |
e6056257 | 1599 | |
0e2ff151 | 1600 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1601 | if (PyErr_Occurred()) return NULL; |
1602 | } Py_INCREF(Py_None); | |
1603 | _resultobj = Py_None; | |
1604 | return _resultobj; | |
1605 | } | |
1606 | ||
1607 | #define wxCalculateLayoutEvent_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
1608 | static PyObject *_wrap_wxCalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject * _resultobj; | |
1610 | int _result; | |
1611 | wxCalculateLayoutEvent * _arg0; | |
1612 | PyObject * _argo0 = 0; | |
1613 | char *_kwnames[] = { "self", NULL }; | |
1614 | ||
1615 | self = self; | |
1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalculateLayoutEvent_GetFlags",_kwnames,&_argo0)) | |
1617 | return NULL; | |
1618 | if (_argo0) { | |
1619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_GetFlags. Expected _wxCalculateLayoutEvent_p."); | |
1622 | return NULL; | |
1623 | } | |
1624 | } | |
1625 | { | |
0e2ff151 | 1626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1627 | _result = (int )wxCalculateLayoutEvent_GetFlags(_arg0); |
e6056257 | 1628 | |
0e2ff151 | 1629 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1630 | if (PyErr_Occurred()) return NULL; |
1631 | } _resultobj = Py_BuildValue("i",_result); | |
1632 | return _resultobj; | |
1633 | } | |
1634 | ||
1635 | #define wxCalculateLayoutEvent_SetRect(_swigobj,_swigarg0) (_swigobj->SetRect(_swigarg0)) | |
1636 | static PyObject *_wrap_wxCalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject * _resultobj; | |
1638 | wxCalculateLayoutEvent * _arg0; | |
1639 | wxRect * _arg1; | |
1640 | PyObject * _argo0 = 0; | |
1641 | wxRect temp; | |
1642 | PyObject * _obj1 = 0; | |
1643 | char *_kwnames[] = { "self","rect", NULL }; | |
1644 | ||
1645 | self = self; | |
1646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCalculateLayoutEvent_SetRect",_kwnames,&_argo0,&_obj1)) | |
1647 | return NULL; | |
1648 | if (_argo0) { | |
1649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_SetRect. Expected _wxCalculateLayoutEvent_p."); | |
1652 | return NULL; | |
1653 | } | |
1654 | } | |
1655 | { | |
1656 | _arg1 = &temp; | |
1657 | if (! wxRect_helper(_obj1, &_arg1)) | |
1658 | return NULL; | |
1659 | } | |
1660 | { | |
0e2ff151 | 1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1662 | wxCalculateLayoutEvent_SetRect(_arg0,*_arg1); |
e6056257 | 1663 | |
0e2ff151 | 1664 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1665 | if (PyErr_Occurred()) return NULL; |
1666 | } Py_INCREF(Py_None); | |
1667 | _resultobj = Py_None; | |
1668 | return _resultobj; | |
1669 | } | |
1670 | ||
1671 | #define wxCalculateLayoutEvent_GetRect(_swigobj) (_swigobj->GetRect()) | |
1672 | static PyObject *_wrap_wxCalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject * _resultobj; | |
1674 | wxRect * _result; | |
1675 | wxCalculateLayoutEvent * _arg0; | |
1676 | PyObject * _argo0 = 0; | |
1677 | char *_kwnames[] = { "self", NULL }; | |
1678 | char _ptemp[128]; | |
1679 | ||
1680 | self = self; | |
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCalculateLayoutEvent_GetRect",_kwnames,&_argo0)) | |
1682 | return NULL; | |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCalculateLayoutEvent_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCalculateLayoutEvent_GetRect. Expected _wxCalculateLayoutEvent_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
0e2ff151 | 1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1692 | _result = new wxRect (wxCalculateLayoutEvent_GetRect(_arg0)); |
e6056257 | 1693 | |
0e2ff151 | 1694 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1695 | if (PyErr_Occurred()) return NULL; |
1696 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1697 | _resultobj = Py_BuildValue("s",_ptemp); | |
1698 | return _resultobj; | |
1699 | } | |
1700 | ||
1701 | static void *SwigwxSashLayoutWindowTowxSashWindow(void *ptr) { | |
1702 | wxSashLayoutWindow *src; | |
1703 | wxSashWindow *dest; | |
1704 | src = (wxSashLayoutWindow *) ptr; | |
1705 | dest = (wxSashWindow *) src; | |
1706 | return (void *) dest; | |
1707 | } | |
1708 | ||
1709 | static void *SwigwxSashLayoutWindowTowxWindow(void *ptr) { | |
1710 | wxSashLayoutWindow *src; | |
1711 | wxWindow *dest; | |
1712 | src = (wxSashLayoutWindow *) ptr; | |
1713 | dest = (wxWindow *) src; | |
1714 | return (void *) dest; | |
1715 | } | |
1716 | ||
1717 | static void *SwigwxSashLayoutWindowTowxEvtHandler(void *ptr) { | |
1718 | wxSashLayoutWindow *src; | |
1719 | wxEvtHandler *dest; | |
1720 | src = (wxSashLayoutWindow *) ptr; | |
1721 | dest = (wxEvtHandler *) src; | |
1722 | return (void *) dest; | |
1723 | } | |
1724 | ||
1725 | static void *SwigwxSashLayoutWindowTowxObject(void *ptr) { | |
1726 | wxSashLayoutWindow *src; | |
1727 | wxObject *dest; | |
1728 | src = (wxSashLayoutWindow *) ptr; | |
1729 | dest = (wxObject *) src; | |
1730 | return (void *) dest; | |
1731 | } | |
1732 | ||
1733 | #define new_wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1734 | static PyObject *_wrap_new_wxSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1735 | PyObject * _resultobj; | |
1736 | wxSashLayoutWindow * _result; | |
1737 | wxWindow * _arg0; | |
1738 | wxWindowID _arg1; | |
1739 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
1740 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1741 | long _arg4 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 1742 | wxString * _arg5 = (wxString *) &wxPySashLayoutNameStr; |
e6056257 RD |
1743 | PyObject * _argo0 = 0; |
1744 | wxPoint temp; | |
1745 | PyObject * _obj2 = 0; | |
1746 | wxSize temp0; | |
1747 | PyObject * _obj3 = 0; | |
c3bfa1cb | 1748 | PyObject * _obj5 = 0; |
e6056257 RD |
1749 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
1750 | char _ptemp[128]; | |
1751 | ||
1752 | self = self; | |
c3bfa1cb | 1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxSashLayoutWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
e6056257 RD |
1754 | return NULL; |
1755 | if (_argo0) { | |
1756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSashLayoutWindow. Expected _wxWindow_p."); | |
1759 | return NULL; | |
1760 | } | |
1761 | } | |
1762 | if (_obj2) | |
1763 | { | |
1764 | _arg2 = &temp; | |
1765 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1766 | return NULL; | |
1767 | } | |
1768 | if (_obj3) | |
1769 | { | |
1770 | _arg3 = &temp0; | |
1771 | if (! wxSize_helper(_obj3, &_arg3)) | |
1772 | return NULL; | |
c3bfa1cb RD |
1773 | } |
1774 | if (_obj5) | |
1775 | { | |
1776 | _arg5 = wxString_in_helper(_obj5); | |
1777 | if (_arg5 == NULL) | |
1778 | return NULL; | |
e6056257 RD |
1779 | } |
1780 | { | |
0e2ff151 | 1781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 1782 | _result = (wxSashLayoutWindow *)new_wxSashLayoutWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
e6056257 | 1783 | |
0e2ff151 | 1784 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1785 | if (PyErr_Occurred()) return NULL; |
1786 | } if (_result) { | |
1787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashLayoutWindow_p"); | |
1788 | _resultobj = Py_BuildValue("s",_ptemp); | |
1789 | } else { | |
1790 | Py_INCREF(Py_None); | |
1791 | _resultobj = Py_None; | |
1792 | } | |
c3bfa1cb RD |
1793 | { |
1794 | if (_obj5) | |
1795 | delete _arg5; | |
1796 | } | |
e6056257 RD |
1797 | return _resultobj; |
1798 | } | |
1799 | ||
1800 | #define new_wxPreSashLayoutWindow() (new wxSashLayoutWindow()) | |
1801 | static PyObject *_wrap_new_wxPreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1802 | PyObject * _resultobj; | |
1803 | wxSashLayoutWindow * _result; | |
1804 | char *_kwnames[] = { NULL }; | |
1805 | char _ptemp[128]; | |
1806 | ||
1807 | self = self; | |
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSashLayoutWindow",_kwnames)) | |
1809 | return NULL; | |
1810 | { | |
0e2ff151 | 1811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1812 | _result = (wxSashLayoutWindow *)new_wxPreSashLayoutWindow(); |
e6056257 | 1813 | |
0e2ff151 | 1814 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1815 | if (PyErr_Occurred()) return NULL; |
1816 | } if (_result) { | |
1817 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSashLayoutWindow_p"); | |
1818 | _resultobj = Py_BuildValue("s",_ptemp); | |
1819 | } else { | |
1820 | Py_INCREF(Py_None); | |
1821 | _resultobj = Py_None; | |
1822 | } | |
1823 | return _resultobj; | |
1824 | } | |
1825 | ||
1826 | #define wxSashLayoutWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1827 | static PyObject *_wrap_wxSashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1828 | PyObject * _resultobj; | |
1829 | bool _result; | |
1830 | wxSashLayoutWindow * _arg0; | |
1831 | wxWindow * _arg1; | |
1832 | wxWindowID _arg2; | |
1833 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1834 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1835 | long _arg5 = (long ) wxCLIP_CHILDREN|(wxSW_3D); | |
c3bfa1cb | 1836 | wxString * _arg6 = (wxString *) &wxPySashLayoutNameStr; |
e6056257 RD |
1837 | PyObject * _argo0 = 0; |
1838 | PyObject * _argo1 = 0; | |
1839 | wxPoint temp; | |
1840 | PyObject * _obj3 = 0; | |
1841 | wxSize temp0; | |
1842 | PyObject * _obj4 = 0; | |
c3bfa1cb | 1843 | PyObject * _obj6 = 0; |
e6056257 RD |
1844 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1845 | ||
1846 | self = self; | |
c3bfa1cb | 1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxSashLayoutWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
e6056257 RD |
1848 | return NULL; |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_Create. Expected _wxSashLayoutWindow_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | if (_argo1) { | |
1857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxSashLayoutWindow_Create. Expected _wxWindow_p."); | |
1860 | return NULL; | |
1861 | } | |
1862 | } | |
1863 | if (_obj3) | |
1864 | { | |
1865 | _arg3 = &temp; | |
1866 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1867 | return NULL; | |
1868 | } | |
1869 | if (_obj4) | |
1870 | { | |
1871 | _arg4 = &temp0; | |
1872 | if (! wxSize_helper(_obj4, &_arg4)) | |
1873 | return NULL; | |
c3bfa1cb RD |
1874 | } |
1875 | if (_obj6) | |
1876 | { | |
1877 | _arg6 = wxString_in_helper(_obj6); | |
1878 | if (_arg6 == NULL) | |
1879 | return NULL; | |
e6056257 RD |
1880 | } |
1881 | { | |
0e2ff151 | 1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 1883 | _result = (bool )wxSashLayoutWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
e6056257 | 1884 | |
0e2ff151 | 1885 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1886 | if (PyErr_Occurred()) return NULL; |
1887 | } _resultobj = Py_BuildValue("i",_result); | |
c3bfa1cb RD |
1888 | { |
1889 | if (_obj6) | |
1890 | delete _arg6; | |
1891 | } | |
e6056257 RD |
1892 | return _resultobj; |
1893 | } | |
1894 | ||
1895 | #define wxSashLayoutWindow_GetAlignment(_swigobj) (_swigobj->GetAlignment()) | |
1896 | static PyObject *_wrap_wxSashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject * _resultobj; | |
1898 | wxLayoutAlignment _result; | |
1899 | wxSashLayoutWindow * _arg0; | |
1900 | PyObject * _argo0 = 0; | |
1901 | char *_kwnames[] = { "self", NULL }; | |
1902 | ||
1903 | self = self; | |
1904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashLayoutWindow_GetAlignment",_kwnames,&_argo0)) | |
1905 | return NULL; | |
1906 | if (_argo0) { | |
1907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_GetAlignment. Expected _wxSashLayoutWindow_p."); | |
1910 | return NULL; | |
1911 | } | |
1912 | } | |
1913 | { | |
0e2ff151 | 1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1915 | _result = (wxLayoutAlignment )wxSashLayoutWindow_GetAlignment(_arg0); |
e6056257 | 1916 | |
0e2ff151 | 1917 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1918 | if (PyErr_Occurred()) return NULL; |
1919 | } _resultobj = Py_BuildValue("i",_result); | |
1920 | return _resultobj; | |
1921 | } | |
1922 | ||
1923 | #define wxSashLayoutWindow_GetOrientation(_swigobj) (_swigobj->GetOrientation()) | |
1924 | static PyObject *_wrap_wxSashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject * _resultobj; | |
1926 | wxLayoutOrientation _result; | |
1927 | wxSashLayoutWindow * _arg0; | |
1928 | PyObject * _argo0 = 0; | |
1929 | char *_kwnames[] = { "self", NULL }; | |
1930 | ||
1931 | self = self; | |
1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSashLayoutWindow_GetOrientation",_kwnames,&_argo0)) | |
1933 | return NULL; | |
1934 | if (_argo0) { | |
1935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_GetOrientation. Expected _wxSashLayoutWindow_p."); | |
1938 | return NULL; | |
1939 | } | |
1940 | } | |
1941 | { | |
0e2ff151 | 1942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1943 | _result = (wxLayoutOrientation )wxSashLayoutWindow_GetOrientation(_arg0); |
e6056257 | 1944 | |
0e2ff151 | 1945 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1946 | if (PyErr_Occurred()) return NULL; |
1947 | } _resultobj = Py_BuildValue("i",_result); | |
1948 | return _resultobj; | |
1949 | } | |
1950 | ||
1951 | #define wxSashLayoutWindow_SetAlignment(_swigobj,_swigarg0) (_swigobj->SetAlignment(_swigarg0)) | |
1952 | static PyObject *_wrap_wxSashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1953 | PyObject * _resultobj; | |
1954 | wxSashLayoutWindow * _arg0; | |
1955 | wxLayoutAlignment _arg1; | |
1956 | PyObject * _argo0 = 0; | |
1957 | char *_kwnames[] = { "self","alignment", NULL }; | |
1958 | ||
1959 | self = self; | |
1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashLayoutWindow_SetAlignment",_kwnames,&_argo0,&_arg1)) | |
1961 | return NULL; | |
1962 | if (_argo0) { | |
1963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetAlignment. Expected _wxSashLayoutWindow_p."); | |
1966 | return NULL; | |
1967 | } | |
1968 | } | |
1969 | { | |
0e2ff151 | 1970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1971 | wxSashLayoutWindow_SetAlignment(_arg0,_arg1); |
e6056257 | 1972 | |
0e2ff151 | 1973 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1974 | if (PyErr_Occurred()) return NULL; |
1975 | } Py_INCREF(Py_None); | |
1976 | _resultobj = Py_None; | |
1977 | return _resultobj; | |
1978 | } | |
1979 | ||
1980 | #define wxSashLayoutWindow_SetDefaultSize(_swigobj,_swigarg0) (_swigobj->SetDefaultSize(_swigarg0)) | |
1981 | static PyObject *_wrap_wxSashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1982 | PyObject * _resultobj; | |
1983 | wxSashLayoutWindow * _arg0; | |
1984 | wxSize * _arg1; | |
1985 | PyObject * _argo0 = 0; | |
1986 | wxSize temp; | |
1987 | PyObject * _obj1 = 0; | |
1988 | char *_kwnames[] = { "self","size", NULL }; | |
1989 | ||
1990 | self = self; | |
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSashLayoutWindow_SetDefaultSize",_kwnames,&_argo0,&_obj1)) | |
1992 | return NULL; | |
1993 | if (_argo0) { | |
1994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
1996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetDefaultSize. Expected _wxSashLayoutWindow_p."); | |
1997 | return NULL; | |
1998 | } | |
1999 | } | |
2000 | { | |
2001 | _arg1 = &temp; | |
2002 | if (! wxSize_helper(_obj1, &_arg1)) | |
2003 | return NULL; | |
2004 | } | |
2005 | { | |
0e2ff151 | 2006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2007 | wxSashLayoutWindow_SetDefaultSize(_arg0,*_arg1); |
e6056257 | 2008 | |
0e2ff151 | 2009 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2010 | if (PyErr_Occurred()) return NULL; |
2011 | } Py_INCREF(Py_None); | |
2012 | _resultobj = Py_None; | |
2013 | return _resultobj; | |
2014 | } | |
2015 | ||
2016 | #define wxSashLayoutWindow_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) | |
2017 | static PyObject *_wrap_wxSashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject * _resultobj; | |
2019 | wxSashLayoutWindow * _arg0; | |
2020 | wxLayoutOrientation _arg1; | |
2021 | PyObject * _argo0 = 0; | |
2022 | char *_kwnames[] = { "self","orientation", NULL }; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSashLayoutWindow_SetOrientation",_kwnames,&_argo0,&_arg1)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSashLayoutWindow_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSashLayoutWindow_SetOrientation. Expected _wxSashLayoutWindow_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | { | |
0e2ff151 | 2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2036 | wxSashLayoutWindow_SetOrientation(_arg0,_arg1); |
e6056257 | 2037 | |
0e2ff151 | 2038 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2039 | if (PyErr_Occurred()) return NULL; |
2040 | } Py_INCREF(Py_None); | |
2041 | _resultobj = Py_None; | |
2042 | return _resultobj; | |
2043 | } | |
2044 | ||
2045 | static void *SwigwxLayoutAlgorithmTowxObject(void *ptr) { | |
2046 | wxLayoutAlgorithm *src; | |
2047 | wxObject *dest; | |
2048 | src = (wxLayoutAlgorithm *) ptr; | |
2049 | dest = (wxObject *) src; | |
2050 | return (void *) dest; | |
2051 | } | |
2052 | ||
2053 | #define new_wxLayoutAlgorithm() (new wxLayoutAlgorithm()) | |
2054 | static PyObject *_wrap_new_wxLayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2055 | PyObject * _resultobj; | |
2056 | wxLayoutAlgorithm * _result; | |
2057 | char *_kwnames[] = { NULL }; | |
2058 | char _ptemp[128]; | |
2059 | ||
2060 | self = self; | |
2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLayoutAlgorithm",_kwnames)) | |
2062 | return NULL; | |
2063 | { | |
0e2ff151 | 2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2065 | _result = (wxLayoutAlgorithm *)new_wxLayoutAlgorithm(); |
e6056257 | 2066 | |
0e2ff151 | 2067 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2068 | if (PyErr_Occurred()) return NULL; |
2069 | } if (_result) { | |
2070 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutAlgorithm_p"); | |
2071 | _resultobj = Py_BuildValue("s",_ptemp); | |
2072 | } else { | |
2073 | Py_INCREF(Py_None); | |
2074 | _resultobj = Py_None; | |
2075 | } | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | #define delete_wxLayoutAlgorithm(_swigobj) (delete _swigobj) | |
2080 | static PyObject *_wrap_delete_wxLayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject * _resultobj; | |
2082 | wxLayoutAlgorithm * _arg0; | |
2083 | PyObject * _argo0 = 0; | |
2084 | char *_kwnames[] = { "self", NULL }; | |
2085 | ||
2086 | self = self; | |
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLayoutAlgorithm",_kwnames,&_argo0)) | |
2088 | return NULL; | |
2089 | if (_argo0) { | |
2090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
2092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLayoutAlgorithm. Expected _wxLayoutAlgorithm_p."); | |
2093 | return NULL; | |
2094 | } | |
2095 | } | |
2096 | { | |
0e2ff151 | 2097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2098 | delete_wxLayoutAlgorithm(_arg0); |
e6056257 | 2099 | |
0e2ff151 | 2100 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2101 | if (PyErr_Occurred()) return NULL; |
2102 | } Py_INCREF(Py_None); | |
2103 | _resultobj = Py_None; | |
2104 | return _resultobj; | |
2105 | } | |
2106 | ||
2107 | #define wxLayoutAlgorithm_LayoutMDIFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutMDIFrame(_swigarg0,_swigarg1)) | |
2108 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject * _resultobj; | |
2110 | bool _result; | |
2111 | wxLayoutAlgorithm * _arg0; | |
2112 | wxMDIParentFrame * _arg1; | |
2113 | wxRect * _arg2 = (wxRect *) NULL; | |
2114 | PyObject * _argo0 = 0; | |
2115 | PyObject * _argo1 = 0; | |
2116 | wxRect temp; | |
2117 | PyObject * _obj2 = 0; | |
2118 | char *_kwnames[] = { "self","frame","rect", NULL }; | |
2119 | ||
2120 | self = self; | |
2121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutMDIFrame",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2122 | return NULL; | |
2123 | if (_argo0) { | |
2124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
2126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutMDIFrame. Expected _wxLayoutAlgorithm_p."); | |
2127 | return NULL; | |
2128 | } | |
2129 | } | |
2130 | if (_argo1) { | |
2131 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) { | |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutMDIFrame. Expected _wxMDIParentFrame_p."); | |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
2137 | if (_obj2) | |
2138 | { | |
2139 | _arg2 = &temp; | |
2140 | if (! wxRect_helper(_obj2, &_arg2)) | |
2141 | return NULL; | |
2142 | } | |
2143 | { | |
0e2ff151 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2145 | _result = (bool )wxLayoutAlgorithm_LayoutMDIFrame(_arg0,_arg1,_arg2); |
e6056257 | 2146 | |
0e2ff151 | 2147 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2148 | if (PyErr_Occurred()) return NULL; |
2149 | } _resultobj = Py_BuildValue("i",_result); | |
2150 | return _resultobj; | |
2151 | } | |
2152 | ||
2153 | #define wxLayoutAlgorithm_LayoutFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutFrame(_swigarg0,_swigarg1)) | |
2154 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject * _resultobj; | |
2156 | bool _result; | |
2157 | wxLayoutAlgorithm * _arg0; | |
2158 | wxFrame * _arg1; | |
2159 | wxWindow * _arg2 = (wxWindow *) NULL; | |
2160 | PyObject * _argo0 = 0; | |
2161 | PyObject * _argo1 = 0; | |
2162 | PyObject * _argo2 = 0; | |
2163 | char *_kwnames[] = { "self","frame","mainWindow", NULL }; | |
2164 | ||
2165 | self = self; | |
2166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutFrame",_kwnames,&_argo0,&_argo1,&_argo2)) | |
2167 | return NULL; | |
2168 | if (_argo0) { | |
2169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
2171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutFrame. Expected _wxLayoutAlgorithm_p."); | |
2172 | return NULL; | |
2173 | } | |
2174 | } | |
2175 | if (_argo1) { | |
2176 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) { | |
2178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutFrame. Expected _wxFrame_p."); | |
2179 | return NULL; | |
2180 | } | |
2181 | } | |
2182 | if (_argo2) { | |
2183 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxLayoutAlgorithm_LayoutFrame. Expected _wxWindow_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
0e2ff151 | 2190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2191 | _result = (bool )wxLayoutAlgorithm_LayoutFrame(_arg0,_arg1,_arg2); |
e6056257 | 2192 | |
0e2ff151 | 2193 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2194 | if (PyErr_Occurred()) return NULL; |
2195 | } _resultobj = Py_BuildValue("i",_result); | |
2196 | return _resultobj; | |
2197 | } | |
2198 | ||
2199 | #define wxLayoutAlgorithm_LayoutWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->LayoutWindow(_swigarg0,_swigarg1)) | |
2200 | static PyObject *_wrap_wxLayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject * _resultobj; | |
2202 | bool _result; | |
2203 | wxLayoutAlgorithm * _arg0; | |
2204 | wxWindow * _arg1; | |
2205 | wxWindow * _arg2 = (wxWindow *) NULL; | |
2206 | PyObject * _argo0 = 0; | |
2207 | PyObject * _argo1 = 0; | |
2208 | PyObject * _argo2 = 0; | |
2209 | char *_kwnames[] = { "self","parent","mainWindow", NULL }; | |
2210 | ||
2211 | self = self; | |
2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxLayoutAlgorithm_LayoutWindow",_kwnames,&_argo0,&_argo1,&_argo2)) | |
2213 | return NULL; | |
2214 | if (_argo0) { | |
2215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutAlgorithm_p")) { | |
2217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutAlgorithm_LayoutWindow. Expected _wxLayoutAlgorithm_p."); | |
2218 | return NULL; | |
2219 | } | |
2220 | } | |
2221 | if (_argo1) { | |
2222 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2223 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLayoutAlgorithm_LayoutWindow. Expected _wxWindow_p."); | |
2225 | return NULL; | |
2226 | } | |
2227 | } | |
2228 | if (_argo2) { | |
2229 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2230 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxLayoutAlgorithm_LayoutWindow. Expected _wxWindow_p."); | |
2232 | return NULL; | |
2233 | } | |
2234 | } | |
2235 | { | |
0e2ff151 | 2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2237 | _result = (bool )wxLayoutAlgorithm_LayoutWindow(_arg0,_arg1,_arg2); |
e6056257 | 2238 | |
0e2ff151 | 2239 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2240 | if (PyErr_Occurred()) return NULL; |
2241 | } _resultobj = Py_BuildValue("i",_result); | |
2242 | return _resultobj; | |
2243 | } | |
2244 | ||
d84a9306 RD |
2245 | static void *SwigwxTipWindowTowxFrame(void *ptr) { |
2246 | wxTipWindow *src; | |
2247 | wxFrame *dest; | |
2248 | src = (wxTipWindow *) ptr; | |
2249 | dest = (wxFrame *) src; | |
2250 | return (void *) dest; | |
2251 | } | |
2252 | ||
2253 | static void *SwigwxTipWindowTowxTopLevelWindow(void *ptr) { | |
2254 | wxTipWindow *src; | |
2255 | wxTopLevelWindow *dest; | |
2256 | src = (wxTipWindow *) ptr; | |
2257 | dest = (wxTopLevelWindow *) src; | |
2258 | return (void *) dest; | |
2259 | } | |
2260 | ||
2261 | static void *SwigwxTipWindowTowxWindow(void *ptr) { | |
2262 | wxTipWindow *src; | |
2263 | wxWindow *dest; | |
2264 | src = (wxTipWindow *) ptr; | |
2265 | dest = (wxWindow *) src; | |
2266 | return (void *) dest; | |
2267 | } | |
2268 | ||
2269 | static void *SwigwxTipWindowTowxEvtHandler(void *ptr) { | |
2270 | wxTipWindow *src; | |
2271 | wxEvtHandler *dest; | |
2272 | src = (wxTipWindow *) ptr; | |
2273 | dest = (wxEvtHandler *) src; | |
2274 | return (void *) dest; | |
2275 | } | |
2276 | ||
2277 | static void *SwigwxTipWindowTowxObject(void *ptr) { | |
2278 | wxTipWindow *src; | |
2279 | wxObject *dest; | |
2280 | src = (wxTipWindow *) ptr; | |
2281 | dest = (wxObject *) src; | |
2282 | return (void *) dest; | |
2283 | } | |
2284 | ||
2285 | static wxTipWindow *new_wxTipWindow(wxWindow *parent,const wxString *text,wxCoord maxLength,wxRect *rectBound) { | |
2286 | wxString tmp = *text; | |
2287 | return new wxTipWindow(parent, tmp, maxLength, NULL, rectBound); | |
2288 | } | |
2289 | ||
2290 | static PyObject *_wrap_new_wxTipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2291 | PyObject * _resultobj; | |
2292 | wxTipWindow * _result; | |
2293 | wxWindow * _arg0; | |
2294 | wxString * _arg1; | |
2295 | wxCoord _arg2 = (wxCoord ) 100; | |
2296 | wxRect * _arg3 = (wxRect *) NULL; | |
2297 | PyObject * _argo0 = 0; | |
2298 | PyObject * _obj1 = 0; | |
2299 | wxRect temp; | |
2300 | PyObject * _obj3 = 0; | |
2301 | char *_kwnames[] = { "parent","text","maxLength","rectBound", NULL }; | |
2302 | char _ptemp[128]; | |
2303 | ||
2304 | self = self; | |
2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iO:new_wxTipWindow",_kwnames,&_argo0,&_obj1,&_arg2,&_obj3)) | |
2306 | return NULL; | |
2307 | if (_argo0) { | |
2308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTipWindow. Expected _wxWindow_p."); | |
2311 | return NULL; | |
2312 | } | |
2313 | } | |
2314 | { | |
2315 | _arg1 = wxString_in_helper(_obj1); | |
2316 | if (_arg1 == NULL) | |
2317 | return NULL; | |
2318 | } | |
2319 | if (_obj3) | |
2320 | { | |
2321 | _arg3 = &temp; | |
2322 | if (! wxRect_helper(_obj3, &_arg3)) | |
2323 | return NULL; | |
2324 | } | |
2325 | { | |
2326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2327 | _result = (wxTipWindow *)new_wxTipWindow(_arg0,_arg1,_arg2,_arg3); | |
2328 | ||
2329 | wxPyEndAllowThreads(__tstate); | |
2330 | if (PyErr_Occurred()) return NULL; | |
2331 | } if (_result) { | |
2332 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipWindow_p"); | |
2333 | _resultobj = Py_BuildValue("s",_ptemp); | |
2334 | } else { | |
2335 | Py_INCREF(Py_None); | |
2336 | _resultobj = Py_None; | |
2337 | } | |
2338 | { | |
2339 | if (_obj1) | |
2340 | delete _arg1; | |
2341 | } | |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
2345 | #define wxTipWindow_SetBoundingRect(_swigobj,_swigarg0) (_swigobj->SetBoundingRect(_swigarg0)) | |
2346 | static PyObject *_wrap_wxTipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject * _resultobj; | |
2348 | wxTipWindow * _arg0; | |
2349 | wxRect * _arg1; | |
2350 | PyObject * _argo0 = 0; | |
2351 | wxRect temp; | |
2352 | PyObject * _obj1 = 0; | |
2353 | char *_kwnames[] = { "self","rectBound", NULL }; | |
2354 | ||
2355 | self = self; | |
2356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTipWindow_SetBoundingRect",_kwnames,&_argo0,&_obj1)) | |
2357 | return NULL; | |
2358 | if (_argo0) { | |
2359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipWindow_p")) { | |
2361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipWindow_SetBoundingRect. Expected _wxTipWindow_p."); | |
2362 | return NULL; | |
2363 | } | |
2364 | } | |
2365 | { | |
2366 | _arg1 = &temp; | |
2367 | if (! wxRect_helper(_obj1, &_arg1)) | |
2368 | return NULL; | |
2369 | } | |
2370 | { | |
2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2372 | wxTipWindow_SetBoundingRect(_arg0,*_arg1); | |
2373 | ||
2374 | wxPyEndAllowThreads(__tstate); | |
2375 | if (PyErr_Occurred()) return NULL; | |
2376 | } Py_INCREF(Py_None); | |
2377 | _resultobj = Py_None; | |
2378 | return _resultobj; | |
2379 | } | |
2380 | ||
2381 | #define wxTipWindow_Close(_swigobj) (_swigobj->Close()) | |
2382 | static PyObject *_wrap_wxTipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2383 | PyObject * _resultobj; | |
2384 | wxTipWindow * _arg0; | |
2385 | PyObject * _argo0 = 0; | |
2386 | char *_kwnames[] = { "self", NULL }; | |
2387 | ||
2388 | self = self; | |
2389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipWindow_Close",_kwnames,&_argo0)) | |
2390 | return NULL; | |
2391 | if (_argo0) { | |
2392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipWindow_p")) { | |
2394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipWindow_Close. Expected _wxTipWindow_p."); | |
2395 | return NULL; | |
2396 | } | |
2397 | } | |
2398 | { | |
2399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2400 | wxTipWindow_Close(_arg0); | |
2401 | ||
2402 | wxPyEndAllowThreads(__tstate); | |
2403 | if (PyErr_Occurred()) return NULL; | |
2404 | } Py_INCREF(Py_None); | |
2405 | _resultobj = Py_None; | |
2406 | return _resultobj; | |
2407 | } | |
2408 | ||
77762d0f RD |
2409 | static void *SwigwxPyVScrolledWindowTowxPanel(void *ptr) { |
2410 | wxPyVScrolledWindow *src; | |
2411 | wxPanel *dest; | |
2412 | src = (wxPyVScrolledWindow *) ptr; | |
2413 | dest = (wxPanel *) src; | |
2414 | return (void *) dest; | |
e6056257 | 2415 | } |
e6056257 | 2416 | |
77762d0f RD |
2417 | static void *SwigwxPyVScrolledWindowTowxWindow(void *ptr) { |
2418 | wxPyVScrolledWindow *src; | |
2419 | wxWindow *dest; | |
2420 | src = (wxPyVScrolledWindow *) ptr; | |
2421 | dest = (wxWindow *) src; | |
2422 | return (void *) dest; | |
2423 | } | |
2424 | ||
2425 | static void *SwigwxPyVScrolledWindowTowxEvtHandler(void *ptr) { | |
2426 | wxPyVScrolledWindow *src; | |
2427 | wxEvtHandler *dest; | |
2428 | src = (wxPyVScrolledWindow *) ptr; | |
2429 | dest = (wxEvtHandler *) src; | |
2430 | return (void *) dest; | |
2431 | } | |
2432 | ||
2433 | static void *SwigwxPyVScrolledWindowTowxObject(void *ptr) { | |
2434 | wxPyVScrolledWindow *src; | |
2435 | wxObject *dest; | |
2436 | src = (wxPyVScrolledWindow *) ptr; | |
2437 | dest = (wxObject *) src; | |
2438 | return (void *) dest; | |
2439 | } | |
2440 | ||
2441 | #define new_wxVScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyVScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2442 | static PyObject *_wrap_new_wxVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2443 | PyObject * _resultobj; | |
2444 | wxPyVScrolledWindow * _result; | |
2445 | wxWindow * _arg0; | |
2446 | wxWindowID _arg1 = (wxWindowID ) wxID_ANY; | |
2447 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2448 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2449 | long _arg4 = (long ) 0; | |
2450 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; | |
2451 | PyObject * _argo0 = 0; | |
2452 | wxPoint temp; | |
2453 | PyObject * _obj2 = 0; | |
2454 | wxSize temp0; | |
2455 | PyObject * _obj3 = 0; | |
2456 | PyObject * _obj5 = 0; | |
2457 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
2458 | char _ptemp[128]; | |
2459 | ||
2460 | self = self; | |
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxVScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
2462 | return NULL; | |
2463 | if (_argo0) { | |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxVScrolledWindow. Expected _wxWindow_p."); | |
2467 | return NULL; | |
2468 | } | |
2469 | } | |
2470 | if (_obj2) | |
2471 | { | |
2472 | _arg2 = &temp; | |
2473 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2474 | return NULL; | |
2475 | } | |
2476 | if (_obj3) | |
2477 | { | |
2478 | _arg3 = &temp0; | |
2479 | if (! wxSize_helper(_obj3, &_arg3)) | |
2480 | return NULL; | |
2481 | } | |
2482 | if (_obj5) | |
2483 | { | |
2484 | _arg5 = wxString_in_helper(_obj5); | |
2485 | if (_arg5 == NULL) | |
2486 | return NULL; | |
2487 | } | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | _result = (wxPyVScrolledWindow *)new_wxVScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) return NULL; | |
2494 | } if (_result) { | |
2495 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyVScrolledWindow_p"); | |
2496 | _resultobj = Py_BuildValue("s",_ptemp); | |
2497 | } else { | |
2498 | Py_INCREF(Py_None); | |
2499 | _resultobj = Py_None; | |
2500 | } | |
2501 | { | |
2502 | if (_obj5) | |
2503 | delete _arg5; | |
2504 | } | |
2505 | return _resultobj; | |
2506 | } | |
2507 | ||
2508 | #define new_wxPreVScrolledWindow() (new wxPyVScrolledWindow()) | |
2509 | static PyObject *_wrap_new_wxPreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject * _resultobj; | |
2511 | wxPyVScrolledWindow * _result; | |
2512 | char *_kwnames[] = { NULL }; | |
2513 | char _ptemp[128]; | |
2514 | ||
2515 | self = self; | |
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreVScrolledWindow",_kwnames)) | |
2517 | return NULL; | |
2518 | { | |
2519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2520 | _result = (wxPyVScrolledWindow *)new_wxPreVScrolledWindow(); | |
2521 | ||
2522 | wxPyEndAllowThreads(__tstate); | |
2523 | if (PyErr_Occurred()) return NULL; | |
2524 | } if (_result) { | |
2525 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyVScrolledWindow_p"); | |
2526 | _resultobj = Py_BuildValue("s",_ptemp); | |
2527 | } else { | |
2528 | Py_INCREF(Py_None); | |
2529 | _resultobj = Py_None; | |
2530 | } | |
2531 | return _resultobj; | |
2532 | } | |
2533 | ||
2534 | #define wxVScrolledWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
2535 | static PyObject *_wrap_wxVScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject * _resultobj; | |
2537 | wxPyVScrolledWindow * _arg0; | |
2538 | PyObject * _arg1; | |
2539 | PyObject * _arg2; | |
2540 | PyObject * _argo0 = 0; | |
2541 | PyObject * _obj1 = 0; | |
2542 | PyObject * _obj2 = 0; | |
2543 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2544 | ||
2545 | self = self; | |
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxVScrolledWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2547 | return NULL; | |
2548 | if (_argo0) { | |
2549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow__setCallbackInfo. Expected _wxPyVScrolledWindow_p."); | |
2552 | return NULL; | |
2553 | } | |
2554 | } | |
2555 | { | |
2556 | _arg1 = _obj1; | |
2557 | } | |
2558 | { | |
2559 | _arg2 = _obj2; | |
2560 | } | |
2561 | { | |
2562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2563 | wxVScrolledWindow__setCallbackInfo(_arg0,_arg1,_arg2); | |
2564 | ||
2565 | wxPyEndAllowThreads(__tstate); | |
2566 | if (PyErr_Occurred()) return NULL; | |
2567 | } Py_INCREF(Py_None); | |
2568 | _resultobj = Py_None; | |
2569 | return _resultobj; | |
2570 | } | |
2571 | ||
2572 | #define wxVScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2573 | static PyObject *_wrap_wxVScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject * _resultobj; | |
2575 | bool _result; | |
2576 | wxPyVScrolledWindow * _arg0; | |
2577 | wxWindow * _arg1; | |
2578 | wxWindowID _arg2 = (wxWindowID ) wxID_ANY; | |
2579 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2580 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2581 | long _arg5 = (long ) 0; | |
2582 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
2583 | PyObject * _argo0 = 0; | |
2584 | PyObject * _argo1 = 0; | |
2585 | wxPoint temp; | |
2586 | PyObject * _obj3 = 0; | |
2587 | wxSize temp0; | |
2588 | PyObject * _obj4 = 0; | |
2589 | PyObject * _obj6 = 0; | |
2590 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
2591 | ||
2592 | self = self; | |
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxVScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
2594 | return NULL; | |
2595 | if (_argo0) { | |
2596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_Create. Expected _wxPyVScrolledWindow_p."); | |
2599 | return NULL; | |
2600 | } | |
2601 | } | |
2602 | if (_argo1) { | |
2603 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2604 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxVScrolledWindow_Create. Expected _wxWindow_p."); | |
2606 | return NULL; | |
2607 | } | |
2608 | } | |
2609 | if (_obj3) | |
2610 | { | |
2611 | _arg3 = &temp; | |
2612 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2613 | return NULL; | |
2614 | } | |
2615 | if (_obj4) | |
2616 | { | |
2617 | _arg4 = &temp0; | |
2618 | if (! wxSize_helper(_obj4, &_arg4)) | |
2619 | return NULL; | |
2620 | } | |
2621 | if (_obj6) | |
2622 | { | |
2623 | _arg6 = wxString_in_helper(_obj6); | |
2624 | if (_arg6 == NULL) | |
2625 | return NULL; | |
2626 | } | |
2627 | { | |
2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2629 | _result = (bool )wxVScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
2630 | ||
2631 | wxPyEndAllowThreads(__tstate); | |
2632 | if (PyErr_Occurred()) return NULL; | |
2633 | } _resultobj = Py_BuildValue("i",_result); | |
2634 | { | |
2635 | if (_obj6) | |
2636 | delete _arg6; | |
2637 | } | |
2638 | return _resultobj; | |
2639 | } | |
2640 | ||
2641 | #define wxVScrolledWindow_SetLineCount(_swigobj,_swigarg0) (_swigobj->SetLineCount(_swigarg0)) | |
2642 | static PyObject *_wrap_wxVScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2643 | PyObject * _resultobj; | |
2644 | wxPyVScrolledWindow * _arg0; | |
2645 | size_t _arg1; | |
2646 | PyObject * _argo0 = 0; | |
2647 | char *_kwnames[] = { "self","count", NULL }; | |
2648 | ||
2649 | self = self; | |
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_SetLineCount",_kwnames,&_argo0,&_arg1)) | |
2651 | return NULL; | |
2652 | if (_argo0) { | |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_SetLineCount. Expected _wxPyVScrolledWindow_p."); | |
2656 | return NULL; | |
2657 | } | |
2658 | } | |
2659 | { | |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | wxVScrolledWindow_SetLineCount(_arg0,_arg1); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) return NULL; | |
2665 | } Py_INCREF(Py_None); | |
2666 | _resultobj = Py_None; | |
2667 | return _resultobj; | |
2668 | } | |
2669 | ||
2670 | #define wxVScrolledWindow_ScrollToLine(_swigobj,_swigarg0) (_swigobj->ScrollToLine(_swigarg0)) | |
2671 | static PyObject *_wrap_wxVScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2672 | PyObject * _resultobj; | |
2673 | bool _result; | |
2674 | wxPyVScrolledWindow * _arg0; | |
2675 | size_t _arg1; | |
2676 | PyObject * _argo0 = 0; | |
2677 | char *_kwnames[] = { "self","line", NULL }; | |
2678 | ||
2679 | self = self; | |
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_ScrollToLine",_kwnames,&_argo0,&_arg1)) | |
2681 | return NULL; | |
2682 | if (_argo0) { | |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_ScrollToLine. Expected _wxPyVScrolledWindow_p."); | |
2686 | return NULL; | |
2687 | } | |
2688 | } | |
2689 | { | |
2690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2691 | _result = (bool )wxVScrolledWindow_ScrollToLine(_arg0,_arg1); | |
2692 | ||
2693 | wxPyEndAllowThreads(__tstate); | |
2694 | if (PyErr_Occurred()) return NULL; | |
2695 | } _resultobj = Py_BuildValue("i",_result); | |
2696 | return _resultobj; | |
2697 | } | |
2698 | ||
2699 | #define wxVScrolledWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) | |
2700 | static PyObject *_wrap_wxVScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject * _resultobj; | |
2702 | bool _result; | |
2703 | wxPyVScrolledWindow * _arg0; | |
2704 | int _arg1; | |
2705 | PyObject * _argo0 = 0; | |
2706 | char *_kwnames[] = { "self","lines", NULL }; | |
2707 | ||
2708 | self = self; | |
2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
2710 | return NULL; | |
2711 | if (_argo0) { | |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_ScrollLines. Expected _wxPyVScrolledWindow_p."); | |
2715 | return NULL; | |
2716 | } | |
2717 | } | |
2718 | { | |
2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2720 | _result = (bool )wxVScrolledWindow_ScrollLines(_arg0,_arg1); | |
2721 | ||
2722 | wxPyEndAllowThreads(__tstate); | |
2723 | if (PyErr_Occurred()) return NULL; | |
2724 | } _resultobj = Py_BuildValue("i",_result); | |
2725 | return _resultobj; | |
2726 | } | |
2727 | ||
2728 | #define wxVScrolledWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
2729 | static PyObject *_wrap_wxVScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject * _resultobj; | |
2731 | bool _result; | |
2732 | wxPyVScrolledWindow * _arg0; | |
2733 | int _arg1; | |
2734 | PyObject * _argo0 = 0; | |
2735 | char *_kwnames[] = { "self","pages", NULL }; | |
2736 | ||
2737 | self = self; | |
2738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
2739 | return NULL; | |
2740 | if (_argo0) { | |
2741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_ScrollPages. Expected _wxPyVScrolledWindow_p."); | |
2744 | return NULL; | |
2745 | } | |
2746 | } | |
2747 | { | |
2748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2749 | _result = (bool )wxVScrolledWindow_ScrollPages(_arg0,_arg1); | |
2750 | ||
2751 | wxPyEndAllowThreads(__tstate); | |
2752 | if (PyErr_Occurred()) return NULL; | |
2753 | } _resultobj = Py_BuildValue("i",_result); | |
2754 | return _resultobj; | |
2755 | } | |
2756 | ||
2757 | #define wxVScrolledWindow_RefreshLine(_swigobj,_swigarg0) (_swigobj->RefreshLine(_swigarg0)) | |
2758 | static PyObject *_wrap_wxVScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2759 | PyObject * _resultobj; | |
2760 | wxPyVScrolledWindow * _arg0; | |
2761 | size_t _arg1; | |
2762 | PyObject * _argo0 = 0; | |
2763 | char *_kwnames[] = { "self","line", NULL }; | |
2764 | ||
2765 | self = self; | |
2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_RefreshLine",_kwnames,&_argo0,&_arg1)) | |
2767 | return NULL; | |
2768 | if (_argo0) { | |
2769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_RefreshLine. Expected _wxPyVScrolledWindow_p."); | |
2772 | return NULL; | |
2773 | } | |
2774 | } | |
2775 | { | |
2776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2777 | wxVScrolledWindow_RefreshLine(_arg0,_arg1); | |
2778 | ||
2779 | wxPyEndAllowThreads(__tstate); | |
2780 | if (PyErr_Occurred()) return NULL; | |
2781 | } Py_INCREF(Py_None); | |
2782 | _resultobj = Py_None; | |
2783 | return _resultobj; | |
2784 | } | |
2785 | ||
2786 | #define wxVScrolledWindow_RefreshLines(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshLines(_swigarg0,_swigarg1)) | |
2787 | static PyObject *_wrap_wxVScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2788 | PyObject * _resultobj; | |
2789 | wxPyVScrolledWindow * _arg0; | |
2790 | size_t _arg1; | |
2791 | size_t _arg2; | |
2792 | PyObject * _argo0 = 0; | |
2793 | char *_kwnames[] = { "self","from","to", NULL }; | |
2794 | ||
2795 | self = self; | |
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxVScrolledWindow_RefreshLines",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2797 | return NULL; | |
2798 | if (_argo0) { | |
2799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_RefreshLines. Expected _wxPyVScrolledWindow_p."); | |
2802 | return NULL; | |
2803 | } | |
2804 | } | |
2805 | { | |
2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2807 | wxVScrolledWindow_RefreshLines(_arg0,_arg1,_arg2); | |
2808 | ||
2809 | wxPyEndAllowThreads(__tstate); | |
2810 | if (PyErr_Occurred()) return NULL; | |
2811 | } Py_INCREF(Py_None); | |
2812 | _resultobj = Py_None; | |
2813 | return _resultobj; | |
2814 | } | |
2815 | ||
2816 | #define wxVScrolledWindow_HitTestXT(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
2817 | static PyObject *_wrap_wxVScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2818 | PyObject * _resultobj; | |
2819 | int _result; | |
2820 | wxPyVScrolledWindow * _arg0; | |
2821 | wxCoord _arg1; | |
2822 | wxCoord _arg2; | |
2823 | PyObject * _argo0 = 0; | |
2824 | char *_kwnames[] = { "self","x","y", NULL }; | |
2825 | ||
2826 | self = self; | |
2827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxVScrolledWindow_HitTestXT",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2828 | return NULL; | |
2829 | if (_argo0) { | |
2830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_HitTestXT. Expected _wxPyVScrolledWindow_p."); | |
2833 | return NULL; | |
2834 | } | |
2835 | } | |
2836 | { | |
2837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2838 | _result = (int )wxVScrolledWindow_HitTestXT(_arg0,_arg1,_arg2); | |
2839 | ||
2840 | wxPyEndAllowThreads(__tstate); | |
2841 | if (PyErr_Occurred()) return NULL; | |
2842 | } _resultobj = Py_BuildValue("i",_result); | |
2843 | return _resultobj; | |
2844 | } | |
2845 | ||
2846 | #define wxVScrolledWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) | |
2847 | static PyObject *_wrap_wxVScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2848 | PyObject * _resultobj; | |
2849 | int _result; | |
2850 | wxPyVScrolledWindow * _arg0; | |
2851 | wxPoint * _arg1; | |
2852 | PyObject * _argo0 = 0; | |
2853 | wxPoint temp; | |
2854 | PyObject * _obj1 = 0; | |
2855 | char *_kwnames[] = { "self","pt", NULL }; | |
2856 | ||
2857 | self = self; | |
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxVScrolledWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2859 | return NULL; | |
2860 | if (_argo0) { | |
2861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_HitTest. Expected _wxPyVScrolledWindow_p."); | |
2864 | return NULL; | |
2865 | } | |
2866 | } | |
2867 | { | |
2868 | _arg1 = &temp; | |
2869 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2870 | return NULL; | |
2871 | } | |
2872 | { | |
2873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2874 | _result = (int )wxVScrolledWindow_HitTest(_arg0,*_arg1); | |
2875 | ||
2876 | wxPyEndAllowThreads(__tstate); | |
2877 | if (PyErr_Occurred()) return NULL; | |
2878 | } _resultobj = Py_BuildValue("i",_result); | |
2879 | return _resultobj; | |
2880 | } | |
2881 | ||
2882 | #define wxVScrolledWindow_RefreshAll(_swigobj) (_swigobj->RefreshAll()) | |
2883 | static PyObject *_wrap_wxVScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2884 | PyObject * _resultobj; | |
2885 | wxPyVScrolledWindow * _arg0; | |
2886 | PyObject * _argo0 = 0; | |
2887 | char *_kwnames[] = { "self", NULL }; | |
2888 | ||
2889 | self = self; | |
2890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVScrolledWindow_RefreshAll",_kwnames,&_argo0)) | |
2891 | return NULL; | |
2892 | if (_argo0) { | |
2893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_RefreshAll. Expected _wxPyVScrolledWindow_p."); | |
2896 | return NULL; | |
2897 | } | |
2898 | } | |
2899 | { | |
2900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2901 | wxVScrolledWindow_RefreshAll(_arg0); | |
2902 | ||
2903 | wxPyEndAllowThreads(__tstate); | |
2904 | if (PyErr_Occurred()) return NULL; | |
2905 | } Py_INCREF(Py_None); | |
2906 | _resultobj = Py_None; | |
2907 | return _resultobj; | |
2908 | } | |
2909 | ||
2910 | #define wxVScrolledWindow_GetLineCount(_swigobj) (_swigobj->GetLineCount()) | |
2911 | static PyObject *_wrap_wxVScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2912 | PyObject * _resultobj; | |
2913 | size_t _result; | |
2914 | wxPyVScrolledWindow * _arg0; | |
2915 | PyObject * _argo0 = 0; | |
2916 | char *_kwnames[] = { "self", NULL }; | |
2917 | ||
2918 | self = self; | |
2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVScrolledWindow_GetLineCount",_kwnames,&_argo0)) | |
2920 | return NULL; | |
2921 | if (_argo0) { | |
2922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_GetLineCount. Expected _wxPyVScrolledWindow_p."); | |
2925 | return NULL; | |
2926 | } | |
2927 | } | |
2928 | { | |
2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2930 | _result = (size_t )wxVScrolledWindow_GetLineCount(_arg0); | |
2931 | ||
2932 | wxPyEndAllowThreads(__tstate); | |
2933 | if (PyErr_Occurred()) return NULL; | |
2934 | } _resultobj = Py_BuildValue("i",_result); | |
2935 | return _resultobj; | |
2936 | } | |
2937 | ||
2938 | #define wxVScrolledWindow_GetFirstVisibleLine(_swigobj) (_swigobj->GetFirstVisibleLine()) | |
2939 | static PyObject *_wrap_wxVScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject * _resultobj; | |
2941 | size_t _result; | |
2942 | wxPyVScrolledWindow * _arg0; | |
2943 | PyObject * _argo0 = 0; | |
2944 | char *_kwnames[] = { "self", NULL }; | |
2945 | ||
2946 | self = self; | |
2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVScrolledWindow_GetFirstVisibleLine",_kwnames,&_argo0)) | |
2948 | return NULL; | |
2949 | if (_argo0) { | |
2950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_GetFirstVisibleLine. Expected _wxPyVScrolledWindow_p."); | |
2953 | return NULL; | |
2954 | } | |
2955 | } | |
2956 | { | |
2957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2958 | _result = (size_t )wxVScrolledWindow_GetFirstVisibleLine(_arg0); | |
2959 | ||
2960 | wxPyEndAllowThreads(__tstate); | |
2961 | if (PyErr_Occurred()) return NULL; | |
2962 | } _resultobj = Py_BuildValue("i",_result); | |
2963 | return _resultobj; | |
2964 | } | |
2965 | ||
2966 | #define wxVScrolledWindow_GetLastVisibleLine(_swigobj) (_swigobj->GetLastVisibleLine()) | |
2967 | static PyObject *_wrap_wxVScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject * _resultobj; | |
2969 | size_t _result; | |
2970 | wxPyVScrolledWindow * _arg0; | |
2971 | PyObject * _argo0 = 0; | |
2972 | char *_kwnames[] = { "self", NULL }; | |
2973 | ||
2974 | self = self; | |
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVScrolledWindow_GetLastVisibleLine",_kwnames,&_argo0)) | |
2976 | return NULL; | |
2977 | if (_argo0) { | |
2978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
2980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_GetLastVisibleLine. Expected _wxPyVScrolledWindow_p."); | |
2981 | return NULL; | |
2982 | } | |
2983 | } | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | _result = (size_t )wxVScrolledWindow_GetLastVisibleLine(_arg0); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) return NULL; | |
2990 | } _resultobj = Py_BuildValue("i",_result); | |
2991 | return _resultobj; | |
2992 | } | |
2993 | ||
2994 | #define wxVScrolledWindow_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) | |
2995 | static PyObject *_wrap_wxVScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2996 | PyObject * _resultobj; | |
2997 | bool _result; | |
2998 | wxPyVScrolledWindow * _arg0; | |
2999 | size_t _arg1; | |
3000 | PyObject * _argo0 = 0; | |
3001 | char *_kwnames[] = { "self","line", NULL }; | |
3002 | ||
3003 | self = self; | |
3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVScrolledWindow_IsVisible",_kwnames,&_argo0,&_arg1)) | |
3005 | return NULL; | |
3006 | if (_argo0) { | |
3007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVScrolledWindow_p")) { | |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVScrolledWindow_IsVisible. Expected _wxPyVScrolledWindow_p."); | |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
3013 | { | |
3014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3015 | _result = (bool )wxVScrolledWindow_IsVisible(_arg0,_arg1); | |
3016 | ||
3017 | wxPyEndAllowThreads(__tstate); | |
3018 | if (PyErr_Occurred()) return NULL; | |
3019 | } _resultobj = Py_BuildValue("i",_result); | |
3020 | return _resultobj; | |
3021 | } | |
3022 | ||
3023 | static void *SwigwxPyVListBoxTowxPyVScrolledWindow(void *ptr) { | |
3024 | wxPyVListBox *src; | |
3025 | wxPyVScrolledWindow *dest; | |
3026 | src = (wxPyVListBox *) ptr; | |
3027 | dest = (wxPyVScrolledWindow *) src; | |
3028 | return (void *) dest; | |
3029 | } | |
3030 | ||
3031 | static void *SwigwxPyVListBoxTowxPanel(void *ptr) { | |
3032 | wxPyVListBox *src; | |
3033 | wxPanel *dest; | |
3034 | src = (wxPyVListBox *) ptr; | |
3035 | dest = (wxPanel *) src; | |
3036 | return (void *) dest; | |
3037 | } | |
3038 | ||
3039 | static void *SwigwxPyVListBoxTowxWindow(void *ptr) { | |
3040 | wxPyVListBox *src; | |
3041 | wxWindow *dest; | |
3042 | src = (wxPyVListBox *) ptr; | |
3043 | dest = (wxWindow *) src; | |
3044 | return (void *) dest; | |
3045 | } | |
3046 | ||
3047 | static void *SwigwxPyVListBoxTowxEvtHandler(void *ptr) { | |
3048 | wxPyVListBox *src; | |
3049 | wxEvtHandler *dest; | |
3050 | src = (wxPyVListBox *) ptr; | |
3051 | dest = (wxEvtHandler *) src; | |
3052 | return (void *) dest; | |
3053 | } | |
3054 | ||
3055 | static void *SwigwxPyVListBoxTowxObject(void *ptr) { | |
3056 | wxPyVListBox *src; | |
3057 | wxObject *dest; | |
3058 | src = (wxPyVListBox *) ptr; | |
3059 | dest = (wxObject *) src; | |
3060 | return (void *) dest; | |
3061 | } | |
3062 | ||
3063 | #define new_wxVListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyVListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3064 | static PyObject *_wrap_new_wxVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject * _resultobj; | |
3066 | wxPyVListBox * _result; | |
3067 | wxWindow * _arg0; | |
3068 | wxWindowID _arg1 = (wxWindowID ) wxID_ANY; | |
3069 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
3070 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
3071 | long _arg4 = (long ) 0; | |
3072 | wxString * _arg5 = (wxString *) &wxPyVListBoxNameStr; | |
3073 | PyObject * _argo0 = 0; | |
3074 | wxPoint temp; | |
3075 | PyObject * _obj2 = 0; | |
3076 | wxSize temp0; | |
3077 | PyObject * _obj3 = 0; | |
3078 | PyObject * _obj5 = 0; | |
3079 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
3080 | char _ptemp[128]; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxVListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
3084 | return NULL; | |
3085 | if (_argo0) { | |
3086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxVListBox. Expected _wxWindow_p."); | |
3089 | return NULL; | |
3090 | } | |
3091 | } | |
3092 | if (_obj2) | |
3093 | { | |
3094 | _arg2 = &temp; | |
3095 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3096 | return NULL; | |
3097 | } | |
3098 | if (_obj3) | |
3099 | { | |
3100 | _arg3 = &temp0; | |
3101 | if (! wxSize_helper(_obj3, &_arg3)) | |
3102 | return NULL; | |
3103 | } | |
3104 | if (_obj5) | |
3105 | { | |
3106 | _arg5 = wxString_in_helper(_obj5); | |
3107 | if (_arg5 == NULL) | |
3108 | return NULL; | |
3109 | } | |
3110 | { | |
3111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3112 | _result = (wxPyVListBox *)new_wxVListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
3113 | ||
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) return NULL; | |
3116 | } if (_result) { | |
3117 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyVListBox_p"); | |
3118 | _resultobj = Py_BuildValue("s",_ptemp); | |
3119 | } else { | |
3120 | Py_INCREF(Py_None); | |
3121 | _resultobj = Py_None; | |
3122 | } | |
3123 | { | |
3124 | if (_obj5) | |
3125 | delete _arg5; | |
3126 | } | |
3127 | return _resultobj; | |
3128 | } | |
3129 | ||
3130 | #define new_wxPreVListBox() (new wxPyVListBox()) | |
3131 | static PyObject *_wrap_new_wxPreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3132 | PyObject * _resultobj; | |
3133 | wxPyVListBox * _result; | |
3134 | char *_kwnames[] = { NULL }; | |
3135 | char _ptemp[128]; | |
3136 | ||
3137 | self = self; | |
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreVListBox",_kwnames)) | |
3139 | return NULL; | |
3140 | { | |
3141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3142 | _result = (wxPyVListBox *)new_wxPreVListBox(); | |
3143 | ||
3144 | wxPyEndAllowThreads(__tstate); | |
3145 | if (PyErr_Occurred()) return NULL; | |
3146 | } if (_result) { | |
3147 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyVListBox_p"); | |
3148 | _resultobj = Py_BuildValue("s",_ptemp); | |
3149 | } else { | |
3150 | Py_INCREF(Py_None); | |
3151 | _resultobj = Py_None; | |
3152 | } | |
3153 | return _resultobj; | |
3154 | } | |
3155 | ||
3156 | #define wxVListBox__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
3157 | static PyObject *_wrap_wxVListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3158 | PyObject * _resultobj; | |
3159 | wxPyVListBox * _arg0; | |
3160 | PyObject * _arg1; | |
3161 | PyObject * _arg2; | |
3162 | PyObject * _argo0 = 0; | |
3163 | PyObject * _obj1 = 0; | |
3164 | PyObject * _obj2 = 0; | |
3165 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3166 | ||
3167 | self = self; | |
3168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxVListBox__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3169 | return NULL; | |
3170 | if (_argo0) { | |
3171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox__setCallbackInfo. Expected _wxPyVListBox_p."); | |
3174 | return NULL; | |
3175 | } | |
3176 | } | |
3177 | { | |
3178 | _arg1 = _obj1; | |
3179 | } | |
3180 | { | |
3181 | _arg2 = _obj2; | |
3182 | } | |
3183 | { | |
3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3185 | wxVListBox__setCallbackInfo(_arg0,_arg1,_arg2); | |
3186 | ||
3187 | wxPyEndAllowThreads(__tstate); | |
3188 | if (PyErr_Occurred()) return NULL; | |
3189 | } Py_INCREF(Py_None); | |
3190 | _resultobj = Py_None; | |
3191 | return _resultobj; | |
3192 | } | |
3193 | ||
3194 | #define wxVListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3195 | static PyObject *_wrap_wxVListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | bool _result; | |
3198 | wxPyVListBox * _arg0; | |
3199 | wxWindow * _arg1; | |
3200 | wxWindowID _arg2 = (wxWindowID ) wxID_ANY; | |
3201 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3202 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3203 | long _arg5 = (long ) 0; | |
3204 | wxString * _arg6 = (wxString *) &wxPyVListBoxNameStr; | |
3205 | PyObject * _argo0 = 0; | |
3206 | PyObject * _argo1 = 0; | |
3207 | wxPoint temp; | |
3208 | PyObject * _obj3 = 0; | |
3209 | wxSize temp0; | |
3210 | PyObject * _obj4 = 0; | |
3211 | PyObject * _obj6 = 0; | |
3212 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
3213 | ||
3214 | self = self; | |
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxVListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
3216 | return NULL; | |
3217 | if (_argo0) { | |
3218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_Create. Expected _wxPyVListBox_p."); | |
3221 | return NULL; | |
3222 | } | |
3223 | } | |
3224 | if (_argo1) { | |
3225 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3226 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxVListBox_Create. Expected _wxWindow_p."); | |
3228 | return NULL; | |
3229 | } | |
3230 | } | |
3231 | if (_obj3) | |
3232 | { | |
3233 | _arg3 = &temp; | |
3234 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3235 | return NULL; | |
3236 | } | |
3237 | if (_obj4) | |
3238 | { | |
3239 | _arg4 = &temp0; | |
3240 | if (! wxSize_helper(_obj4, &_arg4)) | |
3241 | return NULL; | |
3242 | } | |
3243 | if (_obj6) | |
3244 | { | |
3245 | _arg6 = wxString_in_helper(_obj6); | |
3246 | if (_arg6 == NULL) | |
3247 | return NULL; | |
3248 | } | |
3249 | { | |
3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3251 | _result = (bool )wxVListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
3252 | ||
3253 | wxPyEndAllowThreads(__tstate); | |
3254 | if (PyErr_Occurred()) return NULL; | |
3255 | } _resultobj = Py_BuildValue("i",_result); | |
3256 | { | |
3257 | if (_obj6) | |
3258 | delete _arg6; | |
3259 | } | |
3260 | return _resultobj; | |
3261 | } | |
3262 | ||
3263 | #define wxVListBox_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
3264 | static PyObject *_wrap_wxVListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3265 | PyObject * _resultobj; | |
3266 | size_t _result; | |
3267 | wxPyVListBox * _arg0; | |
3268 | PyObject * _argo0 = 0; | |
3269 | char *_kwnames[] = { "self", NULL }; | |
3270 | ||
3271 | self = self; | |
3272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_GetItemCount",_kwnames,&_argo0)) | |
3273 | return NULL; | |
3274 | if (_argo0) { | |
3275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetItemCount. Expected _wxPyVListBox_p."); | |
3278 | return NULL; | |
3279 | } | |
3280 | } | |
3281 | { | |
3282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3283 | _result = (size_t )wxVListBox_GetItemCount(_arg0); | |
3284 | ||
3285 | wxPyEndAllowThreads(__tstate); | |
3286 | if (PyErr_Occurred()) return NULL; | |
3287 | } _resultobj = Py_BuildValue("i",_result); | |
3288 | return _resultobj; | |
3289 | } | |
3290 | ||
3291 | #define wxVListBox_HasMultipleSelection(_swigobj) (_swigobj->HasMultipleSelection()) | |
3292 | static PyObject *_wrap_wxVListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3293 | PyObject * _resultobj; | |
3294 | bool _result; | |
3295 | wxPyVListBox * _arg0; | |
3296 | PyObject * _argo0 = 0; | |
3297 | char *_kwnames[] = { "self", NULL }; | |
3298 | ||
3299 | self = self; | |
3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_HasMultipleSelection",_kwnames,&_argo0)) | |
3301 | return NULL; | |
3302 | if (_argo0) { | |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_HasMultipleSelection. Expected _wxPyVListBox_p."); | |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
3309 | { | |
3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3311 | _result = (bool )wxVListBox_HasMultipleSelection(_arg0); | |
3312 | ||
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) return NULL; | |
3315 | } _resultobj = Py_BuildValue("i",_result); | |
3316 | return _resultobj; | |
3317 | } | |
3318 | ||
3319 | #define wxVListBox_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
3320 | static PyObject *_wrap_wxVListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3321 | PyObject * _resultobj; | |
3322 | int _result; | |
3323 | wxPyVListBox * _arg0; | |
3324 | PyObject * _argo0 = 0; | |
3325 | char *_kwnames[] = { "self", NULL }; | |
3326 | ||
3327 | self = self; | |
3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_GetSelection",_kwnames,&_argo0)) | |
3329 | return NULL; | |
3330 | if (_argo0) { | |
3331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetSelection. Expected _wxPyVListBox_p."); | |
3334 | return NULL; | |
3335 | } | |
3336 | } | |
3337 | { | |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | _result = (int )wxVListBox_GetSelection(_arg0); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) return NULL; | |
3343 | } _resultobj = Py_BuildValue("i",_result); | |
3344 | return _resultobj; | |
3345 | } | |
3346 | ||
3347 | #define wxVListBox_IsCurrent(_swigobj,_swigarg0) (_swigobj->IsCurrent(_swigarg0)) | |
3348 | static PyObject *_wrap_wxVListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3349 | PyObject * _resultobj; | |
3350 | bool _result; | |
3351 | wxPyVListBox * _arg0; | |
3352 | size_t _arg1; | |
3353 | PyObject * _argo0 = 0; | |
3354 | char *_kwnames[] = { "self","item", NULL }; | |
3355 | ||
3356 | self = self; | |
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVListBox_IsCurrent",_kwnames,&_argo0,&_arg1)) | |
3358 | return NULL; | |
3359 | if (_argo0) { | |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_IsCurrent. Expected _wxPyVListBox_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | { | |
3367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3368 | _result = (bool )wxVListBox_IsCurrent(_arg0,_arg1); | |
3369 | ||
3370 | wxPyEndAllowThreads(__tstate); | |
3371 | if (PyErr_Occurred()) return NULL; | |
3372 | } _resultobj = Py_BuildValue("i",_result); | |
3373 | return _resultobj; | |
3374 | } | |
3375 | ||
3376 | #define wxVListBox_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
3377 | static PyObject *_wrap_wxVListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject * _resultobj; | |
3379 | bool _result; | |
3380 | wxPyVListBox * _arg0; | |
3381 | size_t _arg1; | |
3382 | PyObject * _argo0 = 0; | |
3383 | char *_kwnames[] = { "self","item", NULL }; | |
3384 | ||
3385 | self = self; | |
3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVListBox_IsSelected",_kwnames,&_argo0,&_arg1)) | |
3387 | return NULL; | |
3388 | if (_argo0) { | |
3389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_IsSelected. Expected _wxPyVListBox_p."); | |
3392 | return NULL; | |
3393 | } | |
3394 | } | |
3395 | { | |
3396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3397 | _result = (bool )wxVListBox_IsSelected(_arg0,_arg1); | |
3398 | ||
3399 | wxPyEndAllowThreads(__tstate); | |
3400 | if (PyErr_Occurred()) return NULL; | |
3401 | } _resultobj = Py_BuildValue("i",_result); | |
3402 | return _resultobj; | |
3403 | } | |
3404 | ||
3405 | #define wxVListBox_GetSelectedCount(_swigobj) (_swigobj->GetSelectedCount()) | |
3406 | static PyObject *_wrap_wxVListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject * _resultobj; | |
3408 | size_t _result; | |
3409 | wxPyVListBox * _arg0; | |
3410 | PyObject * _argo0 = 0; | |
3411 | char *_kwnames[] = { "self", NULL }; | |
3412 | ||
3413 | self = self; | |
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_GetSelectedCount",_kwnames,&_argo0)) | |
3415 | return NULL; | |
3416 | if (_argo0) { | |
3417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetSelectedCount. Expected _wxPyVListBox_p."); | |
3420 | return NULL; | |
3421 | } | |
3422 | } | |
3423 | { | |
3424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3425 | _result = (size_t )wxVListBox_GetSelectedCount(_arg0); | |
3426 | ||
3427 | wxPyEndAllowThreads(__tstate); | |
3428 | if (PyErr_Occurred()) return NULL; | |
3429 | } _resultobj = Py_BuildValue("i",_result); | |
3430 | return _resultobj; | |
3431 | } | |
3432 | ||
3433 | #define wxVListBox_GetFirstSelected(_swigobj,_swigarg0) (_swigobj->GetFirstSelected(_swigarg0)) | |
3434 | static PyObject *_wrap_wxVListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3435 | PyObject * _resultobj; | |
3436 | int _result; | |
3437 | wxPyVListBox * _arg0; | |
3438 | unsigned long * _arg1; | |
3439 | PyObject * _argo0 = 0; | |
3440 | PyObject * _argo1 = 0; | |
3441 | char *_kwnames[] = { "self","cookie", NULL }; | |
3442 | ||
3443 | self = self; | |
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxVListBox_GetFirstSelected",_kwnames,&_argo0,&_argo1)) | |
3445 | return NULL; | |
3446 | if (_argo0) { | |
3447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetFirstSelected. Expected _wxPyVListBox_p."); | |
3450 | return NULL; | |
3451 | } | |
3452 | } | |
3453 | if (_argo1) { | |
3454 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_unsigned_long_p")) { | |
3455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxVListBox_GetFirstSelected. Expected _unsigned_long_p."); | |
3456 | return NULL; | |
3457 | } | |
3458 | } | |
3459 | { | |
3460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3461 | _result = (int )wxVListBox_GetFirstSelected(_arg0,*_arg1); | |
3462 | ||
3463 | wxPyEndAllowThreads(__tstate); | |
3464 | if (PyErr_Occurred()) return NULL; | |
3465 | } _resultobj = Py_BuildValue("i",_result); | |
3466 | return _resultobj; | |
3467 | } | |
3468 | ||
3469 | #define wxVListBox_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
3470 | static PyObject *_wrap_wxVListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3471 | PyObject * _resultobj; | |
3472 | int _result; | |
3473 | wxPyVListBox * _arg0; | |
3474 | unsigned long * _arg1; | |
3475 | PyObject * _argo0 = 0; | |
3476 | PyObject * _argo1 = 0; | |
3477 | char *_kwnames[] = { "self","cookie", NULL }; | |
3478 | ||
3479 | self = self; | |
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxVListBox_GetNextSelected",_kwnames,&_argo0,&_argo1)) | |
3481 | return NULL; | |
3482 | if (_argo0) { | |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetNextSelected. Expected _wxPyVListBox_p."); | |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
3489 | if (_argo1) { | |
3490 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_unsigned_long_p")) { | |
3491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxVListBox_GetNextSelected. Expected _unsigned_long_p."); | |
3492 | return NULL; | |
3493 | } | |
3494 | } | |
3495 | { | |
3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3497 | _result = (int )wxVListBox_GetNextSelected(_arg0,*_arg1); | |
3498 | ||
3499 | wxPyEndAllowThreads(__tstate); | |
3500 | if (PyErr_Occurred()) return NULL; | |
3501 | } _resultobj = Py_BuildValue("i",_result); | |
3502 | return _resultobj; | |
3503 | } | |
3504 | ||
3505 | #define wxVListBox_GetMargins(_swigobj) (_swigobj->GetMargins()) | |
3506 | static PyObject *_wrap_wxVListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3507 | PyObject * _resultobj; | |
3508 | wxPoint * _result; | |
3509 | wxPyVListBox * _arg0; | |
3510 | PyObject * _argo0 = 0; | |
3511 | char *_kwnames[] = { "self", NULL }; | |
3512 | char _ptemp[128]; | |
3513 | ||
3514 | self = self; | |
3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_GetMargins",_kwnames,&_argo0)) | |
3516 | return NULL; | |
3517 | if (_argo0) { | |
3518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetMargins. Expected _wxPyVListBox_p."); | |
3521 | return NULL; | |
3522 | } | |
3523 | } | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | _result = new wxPoint (wxVListBox_GetMargins(_arg0)); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) return NULL; | |
3530 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
3531 | _resultobj = Py_BuildValue("s",_ptemp); | |
3532 | return _resultobj; | |
3533 | } | |
3534 | ||
3535 | #define wxVListBox_GetSelectionBackground(_swigobj) (_swigobj->GetSelectionBackground()) | |
3536 | static PyObject *_wrap_wxVListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3537 | PyObject * _resultobj; | |
3538 | wxColour * _result; | |
3539 | wxPyVListBox * _arg0; | |
3540 | PyObject * _argo0 = 0; | |
3541 | char *_kwnames[] = { "self", NULL }; | |
3542 | char _ptemp[128]; | |
3543 | ||
3544 | self = self; | |
3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_GetSelectionBackground",_kwnames,&_argo0)) | |
3546 | return NULL; | |
3547 | if (_argo0) { | |
3548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_GetSelectionBackground. Expected _wxPyVListBox_p."); | |
3551 | return NULL; | |
3552 | } | |
3553 | } | |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | const wxColour & _result_ref = wxVListBox_GetSelectionBackground(_arg0); | |
3557 | _result = (wxColour *) &_result_ref; | |
3558 | ||
3559 | wxPyEndAllowThreads(__tstate); | |
3560 | if (PyErr_Occurred()) return NULL; | |
3561 | } if (_result) { | |
3562 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3563 | _resultobj = Py_BuildValue("s",_ptemp); | |
3564 | } else { | |
3565 | Py_INCREF(Py_None); | |
3566 | _resultobj = Py_None; | |
3567 | } | |
3568 | return _resultobj; | |
3569 | } | |
3570 | ||
3571 | #define wxVListBox_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) | |
3572 | static PyObject *_wrap_wxVListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3573 | PyObject * _resultobj; | |
3574 | wxPyVListBox * _arg0; | |
3575 | size_t _arg1; | |
3576 | PyObject * _argo0 = 0; | |
3577 | char *_kwnames[] = { "self","count", NULL }; | |
3578 | ||
3579 | self = self; | |
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVListBox_SetItemCount",_kwnames,&_argo0,&_arg1)) | |
3581 | return NULL; | |
3582 | if (_argo0) { | |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SetItemCount. Expected _wxPyVListBox_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3591 | wxVListBox_SetItemCount(_arg0,_arg1); | |
3592 | ||
3593 | wxPyEndAllowThreads(__tstate); | |
3594 | if (PyErr_Occurred()) return NULL; | |
3595 | } Py_INCREF(Py_None); | |
3596 | _resultobj = Py_None; | |
3597 | return _resultobj; | |
3598 | } | |
3599 | ||
3600 | #define wxVListBox_Clear(_swigobj) (_swigobj->Clear()) | |
3601 | static PyObject *_wrap_wxVListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3602 | PyObject * _resultobj; | |
3603 | wxPyVListBox * _arg0; | |
3604 | PyObject * _argo0 = 0; | |
3605 | char *_kwnames[] = { "self", NULL }; | |
3606 | ||
3607 | self = self; | |
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_Clear",_kwnames,&_argo0)) | |
3609 | return NULL; | |
3610 | if (_argo0) { | |
3611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_Clear. Expected _wxPyVListBox_p."); | |
3614 | return NULL; | |
3615 | } | |
3616 | } | |
3617 | { | |
3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3619 | wxVListBox_Clear(_arg0); | |
3620 | ||
3621 | wxPyEndAllowThreads(__tstate); | |
3622 | if (PyErr_Occurred()) return NULL; | |
3623 | } Py_INCREF(Py_None); | |
3624 | _resultobj = Py_None; | |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | #define wxVListBox_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
3629 | static PyObject *_wrap_wxVListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3630 | PyObject * _resultobj; | |
3631 | wxPyVListBox * _arg0; | |
3632 | int _arg1; | |
3633 | PyObject * _argo0 = 0; | |
3634 | char *_kwnames[] = { "self","selection", NULL }; | |
3635 | ||
3636 | self = self; | |
3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVListBox_SetSelection",_kwnames,&_argo0,&_arg1)) | |
3638 | return NULL; | |
3639 | if (_argo0) { | |
3640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SetSelection. Expected _wxPyVListBox_p."); | |
3643 | return NULL; | |
3644 | } | |
3645 | } | |
3646 | { | |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | wxVListBox_SetSelection(_arg0,_arg1); | |
3649 | ||
3650 | wxPyEndAllowThreads(__tstate); | |
3651 | if (PyErr_Occurred()) return NULL; | |
3652 | } Py_INCREF(Py_None); | |
3653 | _resultobj = Py_None; | |
3654 | return _resultobj; | |
3655 | } | |
3656 | ||
3657 | #define wxVListBox_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
3658 | static PyObject *_wrap_wxVListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3659 | PyObject * _resultobj; | |
3660 | bool _result; | |
3661 | wxPyVListBox * _arg0; | |
3662 | size_t _arg1; | |
3663 | bool _arg2 = (bool ) true; | |
3664 | PyObject * _argo0 = 0; | |
3665 | int tempbool2 = (int) true; | |
3666 | char *_kwnames[] = { "self","item","select", NULL }; | |
3667 | ||
3668 | self = self; | |
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxVListBox_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3670 | return NULL; | |
3671 | if (_argo0) { | |
3672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_Select. Expected _wxPyVListBox_p."); | |
3675 | return NULL; | |
3676 | } | |
3677 | } | |
3678 | _arg2 = (bool ) tempbool2; | |
3679 | { | |
3680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3681 | _result = (bool )wxVListBox_Select(_arg0,_arg1,_arg2); | |
3682 | ||
3683 | wxPyEndAllowThreads(__tstate); | |
3684 | if (PyErr_Occurred()) return NULL; | |
3685 | } _resultobj = Py_BuildValue("i",_result); | |
3686 | return _resultobj; | |
3687 | } | |
3688 | ||
3689 | #define wxVListBox_SelectRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SelectRange(_swigarg0,_swigarg1)) | |
3690 | static PyObject *_wrap_wxVListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3691 | PyObject * _resultobj; | |
3692 | bool _result; | |
3693 | wxPyVListBox * _arg0; | |
3694 | size_t _arg1; | |
3695 | size_t _arg2; | |
3696 | PyObject * _argo0 = 0; | |
3697 | char *_kwnames[] = { "self","from","to", NULL }; | |
3698 | ||
3699 | self = self; | |
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxVListBox_SelectRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3701 | return NULL; | |
3702 | if (_argo0) { | |
3703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SelectRange. Expected _wxPyVListBox_p."); | |
3706 | return NULL; | |
3707 | } | |
3708 | } | |
3709 | { | |
3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3711 | _result = (bool )wxVListBox_SelectRange(_arg0,_arg1,_arg2); | |
3712 | ||
3713 | wxPyEndAllowThreads(__tstate); | |
3714 | if (PyErr_Occurred()) return NULL; | |
3715 | } _resultobj = Py_BuildValue("i",_result); | |
3716 | return _resultobj; | |
3717 | } | |
3718 | ||
3719 | #define wxVListBox_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
3720 | static PyObject *_wrap_wxVListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject * _resultobj; | |
3722 | wxPyVListBox * _arg0; | |
3723 | size_t _arg1; | |
3724 | PyObject * _argo0 = 0; | |
3725 | char *_kwnames[] = { "self","item", NULL }; | |
3726 | ||
3727 | self = self; | |
3728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxVListBox_Toggle",_kwnames,&_argo0,&_arg1)) | |
3729 | return NULL; | |
3730 | if (_argo0) { | |
3731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_Toggle. Expected _wxPyVListBox_p."); | |
3734 | return NULL; | |
3735 | } | |
3736 | } | |
3737 | { | |
3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3739 | wxVListBox_Toggle(_arg0,_arg1); | |
3740 | ||
3741 | wxPyEndAllowThreads(__tstate); | |
3742 | if (PyErr_Occurred()) return NULL; | |
3743 | } Py_INCREF(Py_None); | |
3744 | _resultobj = Py_None; | |
3745 | return _resultobj; | |
3746 | } | |
3747 | ||
3748 | #define wxVListBox_SelectAll(_swigobj) (_swigobj->SelectAll()) | |
3749 | static PyObject *_wrap_wxVListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3750 | PyObject * _resultobj; | |
3751 | bool _result; | |
3752 | wxPyVListBox * _arg0; | |
3753 | PyObject * _argo0 = 0; | |
3754 | char *_kwnames[] = { "self", NULL }; | |
3755 | ||
3756 | self = self; | |
3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_SelectAll",_kwnames,&_argo0)) | |
3758 | return NULL; | |
3759 | if (_argo0) { | |
3760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SelectAll. Expected _wxPyVListBox_p."); | |
3763 | return NULL; | |
3764 | } | |
3765 | } | |
3766 | { | |
3767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3768 | _result = (bool )wxVListBox_SelectAll(_arg0); | |
3769 | ||
3770 | wxPyEndAllowThreads(__tstate); | |
3771 | if (PyErr_Occurred()) return NULL; | |
3772 | } _resultobj = Py_BuildValue("i",_result); | |
3773 | return _resultobj; | |
3774 | } | |
3775 | ||
3776 | #define wxVListBox_DeselectAll(_swigobj) (_swigobj->DeselectAll()) | |
3777 | static PyObject *_wrap_wxVListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3778 | PyObject * _resultobj; | |
3779 | bool _result; | |
3780 | wxPyVListBox * _arg0; | |
3781 | PyObject * _argo0 = 0; | |
3782 | char *_kwnames[] = { "self", NULL }; | |
3783 | ||
3784 | self = self; | |
3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxVListBox_DeselectAll",_kwnames,&_argo0)) | |
3786 | return NULL; | |
3787 | if (_argo0) { | |
3788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_DeselectAll. Expected _wxPyVListBox_p."); | |
3791 | return NULL; | |
3792 | } | |
3793 | } | |
3794 | { | |
3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3796 | _result = (bool )wxVListBox_DeselectAll(_arg0); | |
3797 | ||
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) return NULL; | |
3800 | } _resultobj = Py_BuildValue("i",_result); | |
3801 | return _resultobj; | |
3802 | } | |
3803 | ||
3804 | #define wxVListBox_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0)) | |
3805 | static PyObject *_wrap_wxVListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject * _resultobj; | |
3807 | wxPyVListBox * _arg0; | |
3808 | wxPoint * _arg1; | |
3809 | PyObject * _argo0 = 0; | |
3810 | wxPoint temp; | |
3811 | PyObject * _obj1 = 0; | |
3812 | char *_kwnames[] = { "self","pt", NULL }; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxVListBox_SetMargins",_kwnames,&_argo0,&_obj1)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SetMargins. Expected _wxPyVListBox_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | { | |
3825 | _arg1 = &temp; | |
3826 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3827 | return NULL; | |
3828 | } | |
3829 | { | |
3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3831 | wxVListBox_SetMargins(_arg0,*_arg1); | |
3832 | ||
3833 | wxPyEndAllowThreads(__tstate); | |
3834 | if (PyErr_Occurred()) return NULL; | |
3835 | } Py_INCREF(Py_None); | |
3836 | _resultobj = Py_None; | |
3837 | return _resultobj; | |
3838 | } | |
3839 | ||
3840 | #define wxVListBox_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) | |
3841 | static PyObject *_wrap_wxVListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject * _resultobj; | |
3843 | wxPyVListBox * _arg0; | |
3844 | wxCoord _arg1; | |
3845 | wxCoord _arg2; | |
3846 | PyObject * _argo0 = 0; | |
3847 | char *_kwnames[] = { "self","x","y", NULL }; | |
3848 | ||
3849 | self = self; | |
3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxVListBox_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3851 | return NULL; | |
3852 | if (_argo0) { | |
3853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SetMarginsXY. Expected _wxPyVListBox_p."); | |
3856 | return NULL; | |
3857 | } | |
3858 | } | |
3859 | { | |
3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3861 | wxVListBox_SetMarginsXY(_arg0,_arg1,_arg2); | |
3862 | ||
3863 | wxPyEndAllowThreads(__tstate); | |
3864 | if (PyErr_Occurred()) return NULL; | |
3865 | } Py_INCREF(Py_None); | |
3866 | _resultobj = Py_None; | |
3867 | return _resultobj; | |
3868 | } | |
3869 | ||
3870 | #define wxVListBox_SetSelectionBackground(_swigobj,_swigarg0) (_swigobj->SetSelectionBackground(_swigarg0)) | |
3871 | static PyObject *_wrap_wxVListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject * _resultobj; | |
3873 | wxPyVListBox * _arg0; | |
3874 | wxColour * _arg1; | |
3875 | PyObject * _argo0 = 0; | |
3876 | wxColour temp; | |
3877 | PyObject * _obj1 = 0; | |
3878 | char *_kwnames[] = { "self","col", NULL }; | |
3879 | ||
3880 | self = self; | |
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxVListBox_SetSelectionBackground",_kwnames,&_argo0,&_obj1)) | |
3882 | return NULL; | |
3883 | if (_argo0) { | |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyVListBox_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxVListBox_SetSelectionBackground. Expected _wxPyVListBox_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | { | |
3891 | _arg1 = &temp; | |
3892 | if (! wxColour_helper(_obj1, &_arg1)) | |
3893 | return NULL; | |
3894 | } | |
3895 | { | |
3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3897 | wxVListBox_SetSelectionBackground(_arg0,*_arg1); | |
3898 | ||
3899 | wxPyEndAllowThreads(__tstate); | |
3900 | if (PyErr_Occurred()) return NULL; | |
3901 | } Py_INCREF(Py_None); | |
3902 | _resultobj = Py_None; | |
3903 | return _resultobj; | |
3904 | } | |
3905 | ||
3906 | static void *SwigwxPyHtmlListBoxTowxPyVListBox(void *ptr) { | |
3907 | wxPyHtmlListBox *src; | |
3908 | wxPyVListBox *dest; | |
3909 | src = (wxPyHtmlListBox *) ptr; | |
3910 | dest = (wxPyVListBox *) src; | |
3911 | return (void *) dest; | |
3912 | } | |
3913 | ||
3914 | static void *SwigwxPyHtmlListBoxTowxPyVScrolledWindow(void *ptr) { | |
3915 | wxPyHtmlListBox *src; | |
3916 | wxPyVScrolledWindow *dest; | |
3917 | src = (wxPyHtmlListBox *) ptr; | |
3918 | dest = (wxPyVScrolledWindow *) src; | |
3919 | return (void *) dest; | |
3920 | } | |
3921 | ||
3922 | static void *SwigwxPyHtmlListBoxTowxPanel(void *ptr) { | |
3923 | wxPyHtmlListBox *src; | |
3924 | wxPanel *dest; | |
3925 | src = (wxPyHtmlListBox *) ptr; | |
3926 | dest = (wxPanel *) src; | |
3927 | return (void *) dest; | |
3928 | } | |
3929 | ||
3930 | static void *SwigwxPyHtmlListBoxTowxWindow(void *ptr) { | |
3931 | wxPyHtmlListBox *src; | |
3932 | wxWindow *dest; | |
3933 | src = (wxPyHtmlListBox *) ptr; | |
3934 | dest = (wxWindow *) src; | |
3935 | return (void *) dest; | |
3936 | } | |
3937 | ||
3938 | static void *SwigwxPyHtmlListBoxTowxEvtHandler(void *ptr) { | |
3939 | wxPyHtmlListBox *src; | |
3940 | wxEvtHandler *dest; | |
3941 | src = (wxPyHtmlListBox *) ptr; | |
3942 | dest = (wxEvtHandler *) src; | |
3943 | return (void *) dest; | |
3944 | } | |
3945 | ||
3946 | static void *SwigwxPyHtmlListBoxTowxObject(void *ptr) { | |
3947 | wxPyHtmlListBox *src; | |
3948 | wxObject *dest; | |
3949 | src = (wxPyHtmlListBox *) ptr; | |
3950 | dest = (wxObject *) src; | |
3951 | return (void *) dest; | |
3952 | } | |
3953 | ||
3954 | #define new_wxHtmlListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyHtmlListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
3955 | static PyObject *_wrap_new_wxHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3956 | PyObject * _resultobj; | |
3957 | wxPyHtmlListBox * _result; | |
3958 | wxWindow * _arg0; | |
3959 | wxWindowID _arg1 = (wxWindowID ) wxID_ANY; | |
3960 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
3961 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
3962 | long _arg4 = (long ) 0; | |
3963 | wxString * _arg5 = (wxString *) &wxPyVListBoxNameStr; | |
3964 | PyObject * _argo0 = 0; | |
3965 | wxPoint temp; | |
3966 | PyObject * _obj2 = 0; | |
3967 | wxSize temp0; | |
3968 | PyObject * _obj3 = 0; | |
3969 | PyObject * _obj5 = 0; | |
3970 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; | |
3971 | char _ptemp[128]; | |
3972 | ||
3973 | self = self; | |
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxHtmlListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
3975 | return NULL; | |
3976 | if (_argo0) { | |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlListBox. Expected _wxWindow_p."); | |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
3983 | if (_obj2) | |
3984 | { | |
3985 | _arg2 = &temp; | |
3986 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3987 | return NULL; | |
3988 | } | |
3989 | if (_obj3) | |
3990 | { | |
3991 | _arg3 = &temp0; | |
3992 | if (! wxSize_helper(_obj3, &_arg3)) | |
3993 | return NULL; | |
3994 | } | |
3995 | if (_obj5) | |
3996 | { | |
3997 | _arg5 = wxString_in_helper(_obj5); | |
3998 | if (_arg5 == NULL) | |
3999 | return NULL; | |
4000 | } | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | _result = (wxPyHtmlListBox *)new_wxHtmlListBox(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) return NULL; | |
4007 | } if (_result) { | |
4008 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlListBox_p"); | |
4009 | _resultobj = Py_BuildValue("s",_ptemp); | |
4010 | } else { | |
4011 | Py_INCREF(Py_None); | |
4012 | _resultobj = Py_None; | |
4013 | } | |
4014 | { | |
4015 | if (_obj5) | |
4016 | delete _arg5; | |
4017 | } | |
4018 | return _resultobj; | |
4019 | } | |
4020 | ||
4021 | #define new_wxPreHtmlListBox() (new wxPyHtmlListBox()) | |
4022 | static PyObject *_wrap_new_wxPreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4023 | PyObject * _resultobj; | |
4024 | wxPyHtmlListBox * _result; | |
4025 | char *_kwnames[] = { NULL }; | |
4026 | char _ptemp[128]; | |
4027 | ||
4028 | self = self; | |
4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreHtmlListBox",_kwnames)) | |
4030 | return NULL; | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | _result = (wxPyHtmlListBox *)new_wxPreHtmlListBox(); | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) return NULL; | |
4037 | } if (_result) { | |
4038 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyHtmlListBox_p"); | |
4039 | _resultobj = Py_BuildValue("s",_ptemp); | |
4040 | } else { | |
4041 | Py_INCREF(Py_None); | |
4042 | _resultobj = Py_None; | |
4043 | } | |
4044 | return _resultobj; | |
4045 | } | |
4046 | ||
4047 | #define wxHtmlListBox__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
4048 | static PyObject *_wrap_wxHtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject * _resultobj; | |
4050 | wxPyHtmlListBox * _arg0; | |
4051 | PyObject * _arg1; | |
4052 | PyObject * _arg2; | |
4053 | PyObject * _argo0 = 0; | |
4054 | PyObject * _obj1 = 0; | |
4055 | PyObject * _obj2 = 0; | |
4056 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4057 | ||
4058 | self = self; | |
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHtmlListBox__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
4060 | return NULL; | |
4061 | if (_argo0) { | |
4062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlListBox_p")) { | |
4064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlListBox__setCallbackInfo. Expected _wxPyHtmlListBox_p."); | |
4065 | return NULL; | |
4066 | } | |
4067 | } | |
4068 | { | |
4069 | _arg1 = _obj1; | |
4070 | } | |
4071 | { | |
4072 | _arg2 = _obj2; | |
4073 | } | |
4074 | { | |
4075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4076 | wxHtmlListBox__setCallbackInfo(_arg0,_arg1,_arg2); | |
4077 | ||
4078 | wxPyEndAllowThreads(__tstate); | |
4079 | if (PyErr_Occurred()) return NULL; | |
4080 | } Py_INCREF(Py_None); | |
4081 | _resultobj = Py_None; | |
4082 | return _resultobj; | |
4083 | } | |
4084 | ||
4085 | #define wxHtmlListBox_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
4086 | static PyObject *_wrap_wxHtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject * _resultobj; | |
4088 | bool _result; | |
4089 | wxPyHtmlListBox * _arg0; | |
4090 | wxWindow * _arg1; | |
4091 | wxWindowID _arg2 = (wxWindowID ) wxID_ANY; | |
4092 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
4093 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
4094 | long _arg5 = (long ) 0; | |
4095 | wxString * _arg6 = (wxString *) &wxPyVListBoxNameStr; | |
4096 | PyObject * _argo0 = 0; | |
4097 | PyObject * _argo1 = 0; | |
4098 | wxPoint temp; | |
4099 | PyObject * _obj3 = 0; | |
4100 | wxSize temp0; | |
4101 | PyObject * _obj4 = 0; | |
4102 | PyObject * _obj6 = 0; | |
4103 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
4104 | ||
4105 | self = self; | |
4106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxHtmlListBox_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) | |
4107 | return NULL; | |
4108 | if (_argo0) { | |
4109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlListBox_p")) { | |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlListBox_Create. Expected _wxPyHtmlListBox_p."); | |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
4115 | if (_argo1) { | |
4116 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4117 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHtmlListBox_Create. Expected _wxWindow_p."); | |
4119 | return NULL; | |
4120 | } | |
4121 | } | |
4122 | if (_obj3) | |
4123 | { | |
4124 | _arg3 = &temp; | |
4125 | if (! wxPoint_helper(_obj3, &_arg3)) | |
4126 | return NULL; | |
4127 | } | |
4128 | if (_obj4) | |
4129 | { | |
4130 | _arg4 = &temp0; | |
4131 | if (! wxSize_helper(_obj4, &_arg4)) | |
4132 | return NULL; | |
4133 | } | |
4134 | if (_obj6) | |
4135 | { | |
4136 | _arg6 = wxString_in_helper(_obj6); | |
4137 | if (_arg6 == NULL) | |
4138 | return NULL; | |
4139 | } | |
4140 | { | |
4141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4142 | _result = (bool )wxHtmlListBox_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); | |
4143 | ||
4144 | wxPyEndAllowThreads(__tstate); | |
4145 | if (PyErr_Occurred()) return NULL; | |
4146 | } _resultobj = Py_BuildValue("i",_result); | |
4147 | { | |
4148 | if (_obj6) | |
4149 | delete _arg6; | |
4150 | } | |
4151 | return _resultobj; | |
4152 | } | |
4153 | ||
4154 | #define wxHtmlListBox_RefreshAll(_swigobj) (_swigobj->RefreshAll()) | |
4155 | static PyObject *_wrap_wxHtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject * _resultobj; | |
4157 | wxPyHtmlListBox * _arg0; | |
4158 | PyObject * _argo0 = 0; | |
4159 | char *_kwnames[] = { "self", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlListBox_RefreshAll",_kwnames,&_argo0)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlListBox_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlListBox_RefreshAll. Expected _wxPyHtmlListBox_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | wxHtmlListBox_RefreshAll(_arg0); | |
4174 | ||
4175 | wxPyEndAllowThreads(__tstate); | |
4176 | if (PyErr_Occurred()) return NULL; | |
4177 | } Py_INCREF(Py_None); | |
4178 | _resultobj = Py_None; | |
4179 | return _resultobj; | |
4180 | } | |
4181 | ||
4182 | #define wxHtmlListBox_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) | |
4183 | static PyObject *_wrap_wxHtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4184 | PyObject * _resultobj; | |
4185 | wxPyHtmlListBox * _arg0; | |
4186 | size_t _arg1; | |
4187 | PyObject * _argo0 = 0; | |
4188 | char *_kwnames[] = { "self","count", NULL }; | |
4189 | ||
4190 | self = self; | |
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxHtmlListBox_SetItemCount",_kwnames,&_argo0,&_arg1)) | |
4192 | return NULL; | |
4193 | if (_argo0) { | |
4194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyHtmlListBox_p")) { | |
4196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlListBox_SetItemCount. Expected _wxPyHtmlListBox_p."); | |
4197 | return NULL; | |
4198 | } | |
4199 | } | |
4200 | { | |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | wxHtmlListBox_SetItemCount(_arg0,_arg1); | |
4203 | ||
4204 | wxPyEndAllowThreads(__tstate); | |
4205 | if (PyErr_Occurred()) return NULL; | |
4206 | } Py_INCREF(Py_None); | |
4207 | _resultobj = Py_None; | |
4208 | return _resultobj; | |
4209 | } | |
4210 | ||
4211 | static PyMethodDef windows3cMethods[] = { | |
4212 | { "wxHtmlListBox_SetItemCount", (PyCFunction) _wrap_wxHtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
4213 | { "wxHtmlListBox_RefreshAll", (PyCFunction) _wrap_wxHtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
4214 | { "wxHtmlListBox_Create", (PyCFunction) _wrap_wxHtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
4215 | { "wxHtmlListBox__setCallbackInfo", (PyCFunction) _wrap_wxHtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
4216 | { "new_wxPreHtmlListBox", (PyCFunction) _wrap_new_wxPreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
4217 | { "new_wxHtmlListBox", (PyCFunction) _wrap_new_wxHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
4218 | { "wxVListBox_SetSelectionBackground", (PyCFunction) _wrap_wxVListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
4219 | { "wxVListBox_SetMarginsXY", (PyCFunction) _wrap_wxVListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
4220 | { "wxVListBox_SetMargins", (PyCFunction) _wrap_wxVListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
4221 | { "wxVListBox_DeselectAll", (PyCFunction) _wrap_wxVListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
4222 | { "wxVListBox_SelectAll", (PyCFunction) _wrap_wxVListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
4223 | { "wxVListBox_Toggle", (PyCFunction) _wrap_wxVListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
4224 | { "wxVListBox_SelectRange", (PyCFunction) _wrap_wxVListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
4225 | { "wxVListBox_Select", (PyCFunction) _wrap_wxVListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
4226 | { "wxVListBox_SetSelection", (PyCFunction) _wrap_wxVListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
4227 | { "wxVListBox_Clear", (PyCFunction) _wrap_wxVListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
4228 | { "wxVListBox_SetItemCount", (PyCFunction) _wrap_wxVListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
4229 | { "wxVListBox_GetSelectionBackground", (PyCFunction) _wrap_wxVListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
4230 | { "wxVListBox_GetMargins", (PyCFunction) _wrap_wxVListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
4231 | { "wxVListBox_GetNextSelected", (PyCFunction) _wrap_wxVListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
4232 | { "wxVListBox_GetFirstSelected", (PyCFunction) _wrap_wxVListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
4233 | { "wxVListBox_GetSelectedCount", (PyCFunction) _wrap_wxVListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
4234 | { "wxVListBox_IsSelected", (PyCFunction) _wrap_wxVListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
4235 | { "wxVListBox_IsCurrent", (PyCFunction) _wrap_wxVListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
4236 | { "wxVListBox_GetSelection", (PyCFunction) _wrap_wxVListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
4237 | { "wxVListBox_HasMultipleSelection", (PyCFunction) _wrap_wxVListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
4238 | { "wxVListBox_GetItemCount", (PyCFunction) _wrap_wxVListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
4239 | { "wxVListBox_Create", (PyCFunction) _wrap_wxVListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
4240 | { "wxVListBox__setCallbackInfo", (PyCFunction) _wrap_wxVListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
4241 | { "new_wxPreVListBox", (PyCFunction) _wrap_new_wxPreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
4242 | { "new_wxVListBox", (PyCFunction) _wrap_new_wxVListBox, METH_VARARGS | METH_KEYWORDS }, | |
4243 | { "wxVScrolledWindow_IsVisible", (PyCFunction) _wrap_wxVScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
4244 | { "wxVScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_wxVScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
4245 | { "wxVScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_wxVScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
4246 | { "wxVScrolledWindow_GetLineCount", (PyCFunction) _wrap_wxVScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
4247 | { "wxVScrolledWindow_RefreshAll", (PyCFunction) _wrap_wxVScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
4248 | { "wxVScrolledWindow_HitTest", (PyCFunction) _wrap_wxVScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
4249 | { "wxVScrolledWindow_HitTestXT", (PyCFunction) _wrap_wxVScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
4250 | { "wxVScrolledWindow_RefreshLines", (PyCFunction) _wrap_wxVScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
4251 | { "wxVScrolledWindow_RefreshLine", (PyCFunction) _wrap_wxVScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
4252 | { "wxVScrolledWindow_ScrollPages", (PyCFunction) _wrap_wxVScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
4253 | { "wxVScrolledWindow_ScrollLines", (PyCFunction) _wrap_wxVScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
4254 | { "wxVScrolledWindow_ScrollToLine", (PyCFunction) _wrap_wxVScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
4255 | { "wxVScrolledWindow_SetLineCount", (PyCFunction) _wrap_wxVScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
4256 | { "wxVScrolledWindow_Create", (PyCFunction) _wrap_wxVScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
4257 | { "wxVScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_wxVScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
4258 | { "new_wxPreVScrolledWindow", (PyCFunction) _wrap_new_wxPreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
4259 | { "new_wxVScrolledWindow", (PyCFunction) _wrap_new_wxVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
4260 | { "wxTipWindow_Close", (PyCFunction) _wrap_wxTipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
4261 | { "wxTipWindow_SetBoundingRect", (PyCFunction) _wrap_wxTipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
4262 | { "new_wxTipWindow", (PyCFunction) _wrap_new_wxTipWindow, METH_VARARGS | METH_KEYWORDS }, | |
4263 | { "wxLayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
4264 | { "wxLayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
4265 | { "wxLayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_wxLayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
4266 | { "delete_wxLayoutAlgorithm", (PyCFunction) _wrap_delete_wxLayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
4267 | { "new_wxLayoutAlgorithm", (PyCFunction) _wrap_new_wxLayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
4268 | { "wxSashLayoutWindow_SetOrientation", (PyCFunction) _wrap_wxSashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
4269 | { "wxSashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_wxSashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
4270 | { "wxSashLayoutWindow_SetAlignment", (PyCFunction) _wrap_wxSashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
4271 | { "wxSashLayoutWindow_GetOrientation", (PyCFunction) _wrap_wxSashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
4272 | { "wxSashLayoutWindow_GetAlignment", (PyCFunction) _wrap_wxSashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
4273 | { "wxSashLayoutWindow_Create", (PyCFunction) _wrap_wxSashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
4274 | { "new_wxPreSashLayoutWindow", (PyCFunction) _wrap_new_wxPreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
4275 | { "new_wxSashLayoutWindow", (PyCFunction) _wrap_new_wxSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
4276 | { "wxCalculateLayoutEvent_GetRect", (PyCFunction) _wrap_wxCalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
4277 | { "wxCalculateLayoutEvent_SetRect", (PyCFunction) _wrap_wxCalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
4278 | { "wxCalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_wxCalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4279 | { "wxCalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_wxCalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4280 | { "new_wxCalculateLayoutEvent", (PyCFunction) _wrap_new_wxCalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
4281 | { "wxQueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
4282 | { "wxQueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
4283 | { "wxQueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
4284 | { "wxQueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
4285 | { "wxQueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
4286 | { "wxQueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
4287 | { "wxQueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4288 | { "wxQueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4289 | { "wxQueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
4290 | { "wxQueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_wxQueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
4291 | { "new_wxQueryLayoutInfoEvent", (PyCFunction) _wrap_new_wxQueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
4292 | { "wxSashWindow_SetSashBorder", (PyCFunction) _wrap_wxSashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
4293 | { "wxSashWindow_SetSashVisible", (PyCFunction) _wrap_wxSashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
4294 | { "wxSashWindow_SetMinimumSizeY", (PyCFunction) _wrap_wxSashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
4295 | { "wxSashWindow_SetMinimumSizeX", (PyCFunction) _wrap_wxSashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
4296 | { "wxSashWindow_SetMaximumSizeY", (PyCFunction) _wrap_wxSashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
4297 | { "wxSashWindow_SetMaximumSizeX", (PyCFunction) _wrap_wxSashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
4298 | { "wxSashWindow_SetExtraBorderSize", (PyCFunction) _wrap_wxSashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
4299 | { "wxSashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_wxSashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
4300 | { "wxSashWindow_HasBorder", (PyCFunction) _wrap_wxSashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
4301 | { "wxSashWindow_GetMinimumSizeY", (PyCFunction) _wrap_wxSashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
4302 | { "wxSashWindow_GetMinimumSizeX", (PyCFunction) _wrap_wxSashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
4303 | { "wxSashWindow_GetMaximumSizeY", (PyCFunction) _wrap_wxSashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
4304 | { "wxSashWindow_GetMaximumSizeX", (PyCFunction) _wrap_wxSashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
4305 | { "wxSashWindow_GetExtraBorderSize", (PyCFunction) _wrap_wxSashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
4306 | { "wxSashWindow_GetEdgeMargin", (PyCFunction) _wrap_wxSashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
4307 | { "wxSashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_wxSashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
4308 | { "wxSashWindow_GetSashVisible", (PyCFunction) _wrap_wxSashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
4309 | { "wxSashWindow_Create", (PyCFunction) _wrap_wxSashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
4310 | { "new_wxPreSashWindow", (PyCFunction) _wrap_new_wxPreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
4311 | { "new_wxSashWindow", (PyCFunction) _wrap_new_wxSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
4312 | { "wxSashEvent_GetDragStatus", (PyCFunction) _wrap_wxSashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
4313 | { "wxSashEvent_SetDragStatus", (PyCFunction) _wrap_wxSashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
4314 | { "wxSashEvent_GetDragRect", (PyCFunction) _wrap_wxSashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
4315 | { "wxSashEvent_SetDragRect", (PyCFunction) _wrap_wxSashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
4316 | { "wxSashEvent_GetEdge", (PyCFunction) _wrap_wxSashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
4317 | { "wxSashEvent_SetEdge", (PyCFunction) _wrap_wxSashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
4318 | { "new_wxSashEvent", (PyCFunction) _wrap_new_wxSashEvent, METH_VARARGS | METH_KEYWORDS }, | |
4319 | { NULL, NULL } | |
4320 | }; | |
4321 | #ifdef __cplusplus | |
4322 | } | |
4323 | #endif | |
4324 | /* | |
4325 | * This table is used by the pointer type-checker | |
4326 | */ | |
4327 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
4328 | { "_wxEvent","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxEvent}, | |
4329 | { "_wxEvent","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxEvent}, | |
4330 | { "_wxEvent","_wxSashEvent",SwigwxSashEventTowxEvent}, | |
4331 | { "_signed_long","_long",0}, | |
4332 | { "_wxPrintQuality","_wxCoord",0}, | |
4333 | { "_wxPrintQuality","_int",0}, | |
4334 | { "_wxPrintQuality","_signed_int",0}, | |
4335 | { "_wxPrintQuality","_unsigned_int",0}, | |
4336 | { "_wxPrintQuality","_wxWindowID",0}, | |
4337 | { "_wxPrintQuality","_uint",0}, | |
4338 | { "_wxPrintQuality","_EBool",0}, | |
4339 | { "_wxPrintQuality","_size_t",0}, | |
4340 | { "_wxPrintQuality","_time_t",0}, | |
4341 | { "_byte","_unsigned_char",0}, | |
4342 | { "_long","_unsigned_long",0}, | |
4343 | { "_long","_signed_long",0}, | |
4344 | { "_wxSashWindow","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxSashWindow}, | |
4345 | { "_size_t","_wxCoord",0}, | |
4346 | { "_size_t","_wxPrintQuality",0}, | |
4347 | { "_size_t","_time_t",0}, | |
4348 | { "_size_t","_unsigned_int",0}, | |
4349 | { "_size_t","_int",0}, | |
4350 | { "_size_t","_wxWindowID",0}, | |
4351 | { "_size_t","_uint",0}, | |
4352 | { "_wxPanel","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxPanel}, | |
4353 | { "_wxPanel","_wxPyVListBox",SwigwxPyVListBoxTowxPanel}, | |
4354 | { "_wxPanel","_wxPyVScrolledWindow",SwigwxPyVScrolledWindowTowxPanel}, | |
4355 | { "_wxTopLevelWindow","_wxTipWindow",SwigwxTipWindowTowxTopLevelWindow}, | |
4356 | { "_uint","_wxCoord",0}, | |
4357 | { "_uint","_wxPrintQuality",0}, | |
4358 | { "_uint","_time_t",0}, | |
4359 | { "_uint","_size_t",0}, | |
4360 | { "_uint","_unsigned_int",0}, | |
4361 | { "_uint","_int",0}, | |
4362 | { "_uint","_wxWindowID",0}, | |
4363 | { "_wxChar","_char",0}, | |
4364 | { "_wxCommandEvent","_wxSashEvent",SwigwxSashEventTowxCommandEvent}, | |
4365 | { "_char","_wxChar",0}, | |
4366 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
4367 | { "_EBool","_wxCoord",0}, | |
4368 | { "_EBool","_wxPrintQuality",0}, | |
4369 | { "_EBool","_signed_int",0}, | |
4370 | { "_EBool","_int",0}, | |
4371 | { "_EBool","_wxWindowID",0}, | |
4372 | { "_unsigned_long","_long",0}, | |
4373 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
4374 | { "_signed_int","_wxCoord",0}, | |
4375 | { "_signed_int","_wxPrintQuality",0}, | |
4376 | { "_signed_int","_EBool",0}, | |
4377 | { "_signed_int","_wxWindowID",0}, | |
4378 | { "_signed_int","_int",0}, | |
4379 | { "_WXTYPE","_short",0}, | |
4380 | { "_WXTYPE","_signed_short",0}, | |
4381 | { "_WXTYPE","_unsigned_short",0}, | |
4382 | { "_unsigned_short","_WXTYPE",0}, | |
4383 | { "_unsigned_short","_short",0}, | |
4384 | { "_wxObject","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxObject}, | |
4385 | { "_wxObject","_wxPyVListBox",SwigwxPyVListBoxTowxObject}, | |
4386 | { "_wxObject","_wxPyVScrolledWindow",SwigwxPyVScrolledWindowTowxObject}, | |
4387 | { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject}, | |
4388 | { "_wxObject","_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject}, | |
4389 | { "_wxObject","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject}, | |
4390 | { "_wxObject","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject}, | |
4391 | { "_wxObject","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject}, | |
4392 | { "_wxObject","_wxSashWindow",SwigwxSashWindowTowxObject}, | |
4393 | { "_wxObject","_wxSashEvent",SwigwxSashEventTowxObject}, | |
4394 | { "_wxPyVScrolledWindow","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxPyVScrolledWindow}, | |
4395 | { "_wxPyVScrolledWindow","_wxPyVListBox",SwigwxPyVListBoxTowxPyVScrolledWindow}, | |
4396 | { "_signed_short","_WXTYPE",0}, | |
4397 | { "_signed_short","_short",0}, | |
4398 | { "_unsigned_char","_byte",0}, | |
4399 | { "_unsigned_int","_wxCoord",0}, | |
4400 | { "_unsigned_int","_wxPrintQuality",0}, | |
4401 | { "_unsigned_int","_time_t",0}, | |
4402 | { "_unsigned_int","_size_t",0}, | |
4403 | { "_unsigned_int","_uint",0}, | |
4404 | { "_unsigned_int","_wxWindowID",0}, | |
4405 | { "_unsigned_int","_int",0}, | |
4406 | { "_short","_WXTYPE",0}, | |
4407 | { "_short","_unsigned_short",0}, | |
4408 | { "_short","_signed_short",0}, | |
4409 | { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame}, | |
4410 | { "_wxWindowID","_wxCoord",0}, | |
4411 | { "_wxWindowID","_wxPrintQuality",0}, | |
4412 | { "_wxWindowID","_time_t",0}, | |
4413 | { "_wxWindowID","_size_t",0}, | |
4414 | { "_wxWindowID","_EBool",0}, | |
4415 | { "_wxWindowID","_uint",0}, | |
4416 | { "_wxWindowID","_int",0}, | |
4417 | { "_wxWindowID","_signed_int",0}, | |
4418 | { "_wxWindowID","_unsigned_int",0}, | |
4419 | { "_int","_wxCoord",0}, | |
4420 | { "_int","_wxPrintQuality",0}, | |
4421 | { "_int","_time_t",0}, | |
4422 | { "_int","_size_t",0}, | |
4423 | { "_int","_EBool",0}, | |
4424 | { "_int","_uint",0}, | |
4425 | { "_int","_wxWindowID",0}, | |
4426 | { "_int","_unsigned_int",0}, | |
4427 | { "_int","_signed_int",0}, | |
4428 | { "_time_t","_wxCoord",0}, | |
4429 | { "_time_t","_wxPrintQuality",0}, | |
4430 | { "_time_t","_unsigned_int",0}, | |
4431 | { "_time_t","_int",0}, | |
4432 | { "_time_t","_wxWindowID",0}, | |
4433 | { "_time_t","_uint",0}, | |
4434 | { "_time_t","_size_t",0}, | |
4435 | { "_wxCoord","_int",0}, | |
4436 | { "_wxCoord","_signed_int",0}, | |
4437 | { "_wxCoord","_unsigned_int",0}, | |
4438 | { "_wxCoord","_wxWindowID",0}, | |
4439 | { "_wxCoord","_uint",0}, | |
4440 | { "_wxCoord","_EBool",0}, | |
4441 | { "_wxCoord","_size_t",0}, | |
4442 | { "_wxCoord","_time_t",0}, | |
4443 | { "_wxCoord","_wxPrintQuality",0}, | |
4444 | { "_wxEvtHandler","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxEvtHandler}, | |
4445 | { "_wxEvtHandler","_wxPyVListBox",SwigwxPyVListBoxTowxEvtHandler}, | |
4446 | { "_wxEvtHandler","_wxPyVScrolledWindow",SwigwxPyVScrolledWindowTowxEvtHandler}, | |
4447 | { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler}, | |
4448 | { "_wxEvtHandler","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxEvtHandler}, | |
4449 | { "_wxEvtHandler","_wxSashWindow",SwigwxSashWindowTowxEvtHandler}, | |
4450 | { "_wxWindow","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxWindow}, | |
4451 | { "_wxWindow","_wxPyVListBox",SwigwxPyVListBoxTowxWindow}, | |
4452 | { "_wxWindow","_wxPyVScrolledWindow",SwigwxPyVScrolledWindowTowxWindow}, | |
4453 | { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow}, | |
4454 | { "_wxWindow","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxWindow}, | |
4455 | { "_wxWindow","_wxSashWindow",SwigwxSashWindowTowxWindow}, | |
4456 | { "_wxPyVListBox","_wxPyHtmlListBox",SwigwxPyHtmlListBoxTowxPyVListBox}, | |
4457 | {0,0,0}}; | |
4458 | ||
4459 | static PyObject *SWIG_globals; | |
4460 | #ifdef __cplusplus | |
4461 | extern "C" | |
4462 | #endif | |
4463 | SWIGEXPORT(void) initwindows3c() { | |
4464 | PyObject *m, *d; | |
4465 | SWIG_globals = SWIG_newvarlink(); | |
4466 | m = Py_InitModule("windows3c", windows3cMethods); | |
4467 | d = PyModule_GetDict(m); | |
4468 | PyDict_SetItemString(d,"wxSASH_TOP", PyInt_FromLong((long) wxSASH_TOP)); | |
4469 | PyDict_SetItemString(d,"wxSASH_RIGHT", PyInt_FromLong((long) wxSASH_RIGHT)); | |
4470 | PyDict_SetItemString(d,"wxSASH_BOTTOM", PyInt_FromLong((long) wxSASH_BOTTOM)); | |
4471 | PyDict_SetItemString(d,"wxSASH_LEFT", PyInt_FromLong((long) wxSASH_LEFT)); | |
4472 | PyDict_SetItemString(d,"wxSASH_NONE", PyInt_FromLong((long) wxSASH_NONE)); | |
4473 | PyDict_SetItemString(d,"wxEVT_SASH_DRAGGED", PyInt_FromLong((long) wxEVT_SASH_DRAGGED)); | |
4474 | PyDict_SetItemString(d,"wxSW_3D", PyInt_FromLong((long) wxSW_3D)); | |
4475 | PyDict_SetItemString(d,"wxSW_3DSASH", PyInt_FromLong((long) wxSW_3DSASH)); | |
4476 | PyDict_SetItemString(d,"wxSW_3DBORDER", PyInt_FromLong((long) wxSW_3DBORDER)); | |
4477 | PyDict_SetItemString(d,"wxSW_BORDER", PyInt_FromLong((long) wxSW_BORDER)); | |
4478 | PyDict_SetItemString(d,"wxSASH_STATUS_OK", PyInt_FromLong((long) wxSASH_STATUS_OK)); | |
4479 | PyDict_SetItemString(d,"wxSASH_STATUS_OUT_OF_RANGE", PyInt_FromLong((long) wxSASH_STATUS_OUT_OF_RANGE)); | |
4480 | PyDict_SetItemString(d,"wxLAYOUT_HORIZONTAL", PyInt_FromLong((long) wxLAYOUT_HORIZONTAL)); | |
4481 | PyDict_SetItemString(d,"wxLAYOUT_VERTICAL", PyInt_FromLong((long) wxLAYOUT_VERTICAL)); | |
4482 | PyDict_SetItemString(d,"wxLAYOUT_NONE", PyInt_FromLong((long) wxLAYOUT_NONE)); | |
4483 | PyDict_SetItemString(d,"wxLAYOUT_TOP", PyInt_FromLong((long) wxLAYOUT_TOP)); | |
4484 | PyDict_SetItemString(d,"wxLAYOUT_LEFT", PyInt_FromLong((long) wxLAYOUT_LEFT)); | |
4485 | PyDict_SetItemString(d,"wxLAYOUT_RIGHT", PyInt_FromLong((long) wxLAYOUT_RIGHT)); | |
4486 | PyDict_SetItemString(d,"wxLAYOUT_BOTTOM", PyInt_FromLong((long) wxLAYOUT_BOTTOM)); | |
4487 | PyDict_SetItemString(d,"wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong((long) wxEVT_QUERY_LAYOUT_INFO)); | |
4488 | PyDict_SetItemString(d,"wxEVT_CALCULATE_LAYOUT", PyInt_FromLong((long) wxEVT_CALCULATE_LAYOUT)); | |
4489 | ||
4490 | // Map renamed classes back to their common name for OOR | |
4491 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
4492 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
4493 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
e6056257 RD |
4494 | { |
4495 | int i; | |
4496 | for (i = 0; _swig_mapping[i].n1; i++) | |
4497 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
4498 | } | |
4499 | } |