]>
Commit | Line | Data |
---|---|---|
4120ef2b | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/clip_dnd.cpp |
077def0b | 3 | * |
4120ef2b RD |
4 | * This file was automatically generated by : |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
077def0b | 7 | * |
4120ef2b RD |
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. | |
077def0b | 12 | * |
4120ef2b RD |
13 | * Do not make changes to this file--changes will be lost! |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
4120ef2b | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
4120ef2b RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
4120ef2b RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
4120ef2b RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
4120ef2b RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initclip_dndc | |
55 | ||
56 | #define SWIG_name "clip_dndc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/dataobj.h> | |
60 | #include <wx/clipbrd.h> | |
61 | #include <wx/dnd.h> | |
62 | ||
4120ef2b RD |
63 | |
64 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
65 | PyObject* o2; | |
66 | PyObject* o3; | |
67 | ||
1c09ae54 | 68 | if (!target) { |
4120ef2b | 69 | target = o; |
1c09ae54 | 70 | } else if (target == Py_None) { |
4120ef2b RD |
71 | Py_DECREF(Py_None); |
72 | target = o; | |
1c09ae54 | 73 | } else { |
4120ef2b RD |
74 | if (!PyTuple_Check(target)) { |
75 | o2 = target; | |
76 | target = PyTuple_New(1); | |
77 | PyTuple_SetItem(target, 0, o2); | |
78 | } | |
1c09ae54 RD |
79 | o3 = PyTuple_New(1); |
80 | PyTuple_SetItem(o3, 0, o); | |
4120ef2b RD |
81 | |
82 | o2 = target; | |
1c09ae54 RD |
83 | target = PySequence_Concat(o2, o3); |
84 | Py_DECREF(o2); | |
4120ef2b RD |
85 | Py_DECREF(o3); |
86 | } | |
87 | return target; | |
88 | } | |
89 | ||
7a446686 RD |
90 | #if PYTHON_API_VERSION >= 1009 |
91 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
92 | #else | |
93 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
94 | #endif | |
4120ef2b RD |
95 | // An alternate constructor... |
96 | wxDataFormat* wxCustomDataFormat(const wxString &id) { | |
97 | return new wxDataFormat(id); | |
98 | } | |
99 | ||
100 | wxDataFormat wxPyFormatInvalid; | |
101 | // Create a new class for wxPython to use | |
102 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
103 | public: | |
104 | wxPyDataObjectSimple(const wxDataFormat& format = wxPyFormatInvalid) | |
105 | : wxDataObjectSimple(format) {} | |
106 | ||
107 | DEC_PYCALLBACK_SIZET_(GetDataSize); | |
108 | bool GetDataHere(void *buf); | |
109 | bool SetData(size_t len, const void *buf); | |
110 | PYPRIVATE; | |
111 | }; | |
112 | ||
113 | IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
114 | ||
115 | bool wxPyDataObjectSimple::GetDataHere(void *buf) { | |
116 | // We need to get the data for this object and write it to buf. I think | |
117 | // the best way to do this for wxPython is to have the Python method | |
118 | // return either a string or None and then act appropriately with the | |
119 | // C++ version. | |
120 | ||
121 | bool rval = FALSE; | |
059a841c | 122 | wxPyTState* state = wxPyBeginBlockThreads(); |
4120ef2b RD |
123 | if (m_myInst.findCallback("GetDataHere")) { |
124 | PyObject* ro; | |
125 | ro = m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
126 | if (ro) { |
127 | rval = (ro != Py_None && PyString_Check(ro)); | |
128 | if (rval) | |
129 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
130 | Py_DECREF(ro); | |
131 | } | |
4120ef2b | 132 | } |
059a841c | 133 | wxPyEndBlockThreads(state); |
4120ef2b RD |
134 | return rval; |
135 | } | |
136 | ||
137 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) { | |
138 | // For this one we simply need to make a string from buf and len | |
139 | // and send it to the Python method. | |
140 | bool rval = FALSE; | |
059a841c | 141 | wxPyTState* state = wxPyBeginBlockThreads(); |
4120ef2b RD |
142 | if (m_myInst.findCallback("SetData")) { |
143 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
144 | rval = m_myInst.callCallback(Py_BuildValue("(O)", data)); | |
145 | Py_DECREF(data); | |
146 | } | |
059a841c | 147 | wxPyEndBlockThreads(state); |
4120ef2b RD |
148 | return rval; |
149 | } | |
150 | // Create a new class for wxPython to use | |
151 | class wxPyTextDataObject : public wxTextDataObject { | |
152 | public: | |
153 | wxPyTextDataObject(const wxString& text = wxEmptyString) | |
154 | : wxTextDataObject(text) {} | |
155 | ||
156 | DEC_PYCALLBACK_SIZET_(GetTextLength); | |
157 | DEC_PYCALLBACK_STRING_(GetText); | |
158 | DEC_PYCALLBACK__STRING(SetText); | |
159 | PYPRIVATE; | |
160 | }; | |
161 | ||
162 | IMP_PYCALLBACK_SIZET_(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
163 | IMP_PYCALLBACK_STRING_(wxPyTextDataObject, wxTextDataObject, GetText); | |
164 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
165 | ||
166 | // Create a new class for wxPython to use | |
167 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
168 | public: | |
169 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
170 | : wxBitmapDataObject(bitmap) {} | |
171 | ||
172 | wxBitmap GetBitmap(); | |
173 | void SetBitmap(const wxBitmap& bitmap); | |
174 | PYPRIVATE; | |
175 | }; | |
176 | ||
177 | wxBitmap wxPyBitmapDataObject::GetBitmap() { | |
178 | wxBitmap* rval = &wxNullBitmap; | |
059a841c | 179 | wxPyTState* state = wxPyBeginBlockThreads(); |
4120ef2b RD |
180 | if (m_myInst.findCallback("GetBitmap")) { |
181 | PyObject* ro; | |
182 | wxBitmap* ptr; | |
183 | ro = m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
184 | if (ro) { |
185 | if (!SWIG_GetPtrObj(ro, (void **)&ptr, "_wxBitmap_p")) | |
186 | rval = ptr; | |
187 | Py_DECREF(ro); | |
188 | } | |
4120ef2b | 189 | } |
059a841c | 190 | wxPyEndBlockThreads(state); |
4120ef2b RD |
191 | return *rval; |
192 | } | |
193 | ||
194 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
059a841c | 195 | wxPyTState* state = wxPyBeginBlockThreads(); |
4120ef2b RD |
196 | if (m_myInst.findCallback("SetBitmap")) { |
197 | m_myInst.callCallback(Py_BuildValue("(O)", | |
198 | wxPyConstructObject((void*)&bitmap, "wxBitmap"))); | |
199 | } | |
059a841c | 200 | wxPyEndBlockThreads(state); |
4120ef2b RD |
201 | } |
202 | ||
56f5d962 | 203 | // See below in the init function... |
4120ef2b RD |
204 | wxClipboard* wxPyTheClipboard; |
205 | ||
206 | class wxPyDropSource : public wxDropSource { | |
207 | public: | |
208 | #ifdef __WXMSW__ | |
209 | wxPyDropSource(wxWindow *win = NULL, | |
210 | const wxCursor &cursorCopy = wxNullCursor, | |
211 | const wxCursor &cursorMove = wxNullCursor, | |
212 | const wxCursor &cursorStop = wxNullCursor) | |
213 | : wxDropSource(win, cursorCopy, cursorMove, cursorStop) {} | |
214 | #else | |
215 | wxPyDropSource(wxWindow *win = NULL, | |
216 | const wxIcon &go = wxNullIcon) | |
217 | : wxDropSource(win, go) {} | |
218 | #endif | |
077def0b | 219 | ~wxPyDropSource() { } |
b7312675 | 220 | |
4120ef2b RD |
221 | DEC_PYCALLBACK_BOOL_DR(GiveFeedback); |
222 | PYPRIVATE; | |
223 | }; | |
224 | ||
225 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
226 | ||
227 | ||
228 | class wxPyDropTarget : public wxDropTarget { | |
229 | public: | |
230 | wxPyDropTarget(wxDataObject *dataObject = NULL) | |
231 | : wxDropTarget(dataObject) {} | |
232 | ||
233 | // DEC_PYCALLBACK_SIZET_(GetFormatCount); | |
234 | // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat); | |
235 | ||
236 | DEC_PYCALLBACK__(OnLeave); | |
237 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
238 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
239 | DEC_PYCALLBACK_DR_2WXCDR_pure(OnData); | |
240 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
241 | ||
242 | PYPRIVATE; | |
243 | }; | |
244 | ||
245 | // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount); | |
246 | // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat); | |
247 | ||
248 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
249 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
250 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
251 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
252 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
253 | ||
254 | ||
255 | class wxPyTextDropTarget : public wxTextDropTarget { | |
256 | public: | |
257 | wxPyTextDropTarget() {} | |
258 | ||
259 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
260 | ||
261 | DEC_PYCALLBACK__(OnLeave); | |
262 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
263 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
264 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
265 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
266 | ||
267 | PYPRIVATE; | |
268 | }; | |
269 | ||
270 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
271 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
272 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
273 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
274 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
275 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
276 | ||
277 | ||
278 | class wxPyFileDropTarget : public wxFileDropTarget { | |
279 | public: | |
280 | wxPyFileDropTarget() {} | |
281 | ||
282 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
283 | ||
284 | DEC_PYCALLBACK__(OnLeave); | |
285 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
286 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
287 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
288 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
289 | ||
290 | PYPRIVATE; | |
291 | }; | |
292 | ||
293 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
294 | const wxArrayString& filenames) { | |
295 | bool rval = FALSE; | |
059a841c | 296 | wxPyTState* state = wxPyBeginBlockThreads(); |
4120ef2b RD |
297 | PyObject* list = PyList_New(0); |
298 | for (size_t i=0; i<filenames.GetCount(); i++) { | |
299 | PyObject* str = PyString_FromString(filenames[i].c_str()); | |
300 | PyList_Append(list, str); | |
301 | } | |
302 | if (m_myInst.findCallback("OnDropFiles")) | |
303 | rval = m_myInst.callCallback(Py_BuildValue("(iiO)",x,y,list)); | |
304 | Py_DECREF(list); | |
059a841c | 305 | wxPyEndBlockThreads(state); |
4120ef2b RD |
306 | return rval; |
307 | } | |
308 | ||
309 | ||
310 | ||
311 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
312 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
313 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
314 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
315 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
316 | ||
317 | #ifdef __cplusplus | |
318 | extern "C" { | |
319 | #endif | |
320 | static PyObject *_wrap_wxCustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | wxDataFormat * _result; | |
323 | wxString * _arg0; | |
324 | PyObject * _obj0 = 0; | |
325 | char *_kwnames[] = { "id", NULL }; | |
326 | char _ptemp[128]; | |
327 | ||
328 | self = self; | |
077def0b | 329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataFormat",_kwnames,&_obj0)) |
4120ef2b RD |
330 | return NULL; |
331 | { | |
2cd2fac8 RD |
332 | #if PYTHON_API_VERSION >= 1009 |
333 | char* tmpPtr; int tmpSize; | |
334 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 335 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
336 | return NULL; |
337 | } | |
338 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
339 | return NULL; | |
340 | _arg0 = new wxString(tmpPtr, tmpSize); | |
341 | #else | |
4120ef2b RD |
342 | if (!PyString_Check(_obj0)) { |
343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
344 | return NULL; | |
345 | } | |
2cd2fac8 RD |
346 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
347 | #endif | |
4120ef2b RD |
348 | } |
349 | { | |
350 | wxPy_BEGIN_ALLOW_THREADS; | |
351 | _result = (wxDataFormat *)wxCustomDataFormat(*_arg0); | |
352 | ||
353 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 354 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
355 | } if (_result) { |
356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p"); | |
357 | _resultobj = Py_BuildValue("s",_ptemp); | |
358 | } else { | |
359 | Py_INCREF(Py_None); | |
360 | _resultobj = Py_None; | |
361 | } | |
362 | { | |
363 | if (_obj0) | |
364 | delete _arg0; | |
365 | } | |
366 | return _resultobj; | |
367 | } | |
368 | ||
369 | static int _wrap_wxPyFormatInvalid_set(PyObject *val) { | |
370 | ||
371 | PyErr_SetString(PyExc_TypeError,"Variable wxFormatInvalid is read-only."); | |
372 | return 1; | |
373 | } | |
374 | ||
375 | static PyObject *_wrap_wxPyFormatInvalid_get() { | |
376 | PyObject * pyobj; | |
377 | char ptemp[128]; | |
378 | ||
379 | SWIG_MakePtr(ptemp,(char *) &wxPyFormatInvalid,"_wxDataFormat_p"); | |
380 | pyobj = PyString_FromString(ptemp); | |
381 | return pyobj; | |
382 | } | |
383 | ||
384 | static int _wrap_wxPyTheClipboard_set(PyObject *val) { | |
385 | ||
386 | PyErr_SetString(PyExc_TypeError,"Variable wxTheClipboard is read-only."); | |
387 | return 1; | |
388 | } | |
389 | ||
390 | static PyObject *_wrap_wxPyTheClipboard_get() { | |
391 | PyObject * pyobj; | |
392 | char ptemp[128]; | |
393 | ||
394 | SWIG_MakePtr(ptemp, (char *) wxPyTheClipboard,"_wxClipboard_p"); | |
395 | pyobj = PyString_FromString(ptemp); | |
396 | return pyobj; | |
397 | } | |
398 | ||
399 | static PyObject *_wrap_wxIsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
400 | PyObject * _resultobj; | |
401 | bool _result; | |
402 | wxDragResult _arg0; | |
403 | char *_kwnames[] = { "res", NULL }; | |
404 | ||
405 | self = self; | |
077def0b | 406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxIsDragResultOk",_kwnames,&_arg0)) |
4120ef2b RD |
407 | return NULL; |
408 | { | |
409 | wxPy_BEGIN_ALLOW_THREADS; | |
410 | _result = (bool )wxIsDragResultOk(_arg0); | |
411 | ||
412 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 413 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
414 | } _resultobj = Py_BuildValue("i",_result); |
415 | return _resultobj; | |
416 | } | |
417 | ||
418 | #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0)) | |
419 | static PyObject *_wrap_new_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
420 | PyObject * _resultobj; | |
421 | wxDataFormat * _result; | |
422 | wxDataFormatId _arg0; | |
423 | char *_kwnames[] = { "type", NULL }; | |
424 | char _ptemp[128]; | |
425 | ||
426 | self = self; | |
077def0b | 427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDataFormat",_kwnames,&_arg0)) |
4120ef2b RD |
428 | return NULL; |
429 | { | |
430 | wxPy_BEGIN_ALLOW_THREADS; | |
431 | _result = (wxDataFormat *)new_wxDataFormat(_arg0); | |
432 | ||
433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 434 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
435 | } if (_result) { |
436 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p"); | |
437 | _resultobj = Py_BuildValue("s",_ptemp); | |
438 | } else { | |
439 | Py_INCREF(Py_None); | |
440 | _resultobj = Py_None; | |
441 | } | |
442 | return _resultobj; | |
443 | } | |
444 | ||
445 | #define delete_wxDataFormat(_swigobj) (delete _swigobj) | |
446 | static PyObject *_wrap_delete_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
447 | PyObject * _resultobj; | |
448 | wxDataFormat * _arg0; | |
449 | PyObject * _argo0 = 0; | |
450 | char *_kwnames[] = { "self", NULL }; | |
451 | ||
452 | self = self; | |
077def0b | 453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataFormat",_kwnames,&_argo0)) |
4120ef2b RD |
454 | return NULL; |
455 | if (_argo0) { | |
456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p."); | |
459 | return NULL; | |
460 | } | |
461 | } | |
462 | { | |
463 | wxPy_BEGIN_ALLOW_THREADS; | |
464 | delete_wxDataFormat(_arg0); | |
465 | ||
466 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 467 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
468 | } Py_INCREF(Py_None); |
469 | _resultobj = Py_None; | |
470 | return _resultobj; | |
471 | } | |
472 | ||
473 | #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0)) | |
474 | static PyObject *_wrap_wxDataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
475 | PyObject * _resultobj; | |
476 | wxDataFormat * _arg0; | |
477 | wxDataFormatId _arg1; | |
478 | PyObject * _argo0 = 0; | |
479 | char *_kwnames[] = { "self","format", NULL }; | |
480 | ||
481 | self = self; | |
077def0b | 482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDataFormat_SetType",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
483 | return NULL; |
484 | if (_argo0) { | |
485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p."); | |
488 | return NULL; | |
489 | } | |
490 | } | |
491 | { | |
492 | wxPy_BEGIN_ALLOW_THREADS; | |
493 | wxDataFormat_SetType(_arg0,_arg1); | |
494 | ||
495 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 496 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
497 | } Py_INCREF(Py_None); |
498 | _resultobj = Py_None; | |
499 | return _resultobj; | |
500 | } | |
501 | ||
502 | #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType()) | |
503 | static PyObject *_wrap_wxDataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
504 | PyObject * _resultobj; | |
505 | wxDataFormatId _result; | |
506 | wxDataFormat * _arg0; | |
507 | PyObject * _argo0 = 0; | |
508 | char *_kwnames[] = { "self", NULL }; | |
509 | ||
510 | self = self; | |
077def0b | 511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetType",_kwnames,&_argo0)) |
4120ef2b RD |
512 | return NULL; |
513 | if (_argo0) { | |
514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p."); | |
517 | return NULL; | |
518 | } | |
519 | } | |
520 | { | |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | _result = (wxDataFormatId )wxDataFormat_GetType(_arg0); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 525 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
526 | } _resultobj = Py_BuildValue("i",_result); |
527 | return _resultobj; | |
528 | } | |
529 | ||
530 | #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId()) | |
531 | static PyObject *_wrap_wxDataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
532 | PyObject * _resultobj; | |
533 | wxString * _result; | |
534 | wxDataFormat * _arg0; | |
535 | PyObject * _argo0 = 0; | |
536 | char *_kwnames[] = { "self", NULL }; | |
537 | ||
538 | self = self; | |
077def0b | 539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetId",_kwnames,&_argo0)) |
4120ef2b RD |
540 | return NULL; |
541 | if (_argo0) { | |
542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p."); | |
545 | return NULL; | |
546 | } | |
547 | } | |
548 | { | |
549 | wxPy_BEGIN_ALLOW_THREADS; | |
550 | _result = new wxString (wxDataFormat_GetId(_arg0)); | |
551 | ||
552 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 553 | if (PyErr_Occurred()) return NULL; |
4120ef2b | 554 | }{ |
e02c03a4 | 555 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
4120ef2b RD |
556 | } |
557 | { | |
558 | delete _result; | |
559 | } | |
560 | return _resultobj; | |
561 | } | |
562 | ||
563 | #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
564 | static PyObject *_wrap_wxDataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
565 | PyObject * _resultobj; | |
566 | wxDataFormat * _arg0; | |
567 | char * _arg1; | |
568 | PyObject * _argo0 = 0; | |
569 | char *_kwnames[] = { "self","format", NULL }; | |
570 | ||
571 | self = self; | |
077def0b | 572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDataFormat_SetId",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
573 | return NULL; |
574 | if (_argo0) { | |
575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p."); | |
578 | return NULL; | |
579 | } | |
580 | } | |
581 | { | |
582 | wxPy_BEGIN_ALLOW_THREADS; | |
583 | wxDataFormat_SetId(_arg0,_arg1); | |
584 | ||
585 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 586 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
587 | } Py_INCREF(Py_None); |
588 | _resultobj = Py_None; | |
589 | return _resultobj; | |
590 | } | |
591 | ||
592 | #define delete_wxDataObject(_swigobj) (delete _swigobj) | |
593 | static PyObject *_wrap_delete_wxDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
594 | PyObject * _resultobj; | |
595 | wxDataObject * _arg0; | |
596 | PyObject * _argo0 = 0; | |
597 | char *_kwnames[] = { "self", NULL }; | |
598 | ||
599 | self = self; | |
077def0b | 600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
601 | return NULL; |
602 | if (_argo0) { | |
603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p."); | |
606 | return NULL; | |
607 | } | |
608 | } | |
609 | { | |
610 | wxPy_BEGIN_ALLOW_THREADS; | |
611 | delete_wxDataObject(_arg0); | |
612 | ||
613 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 614 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
615 | } Py_INCREF(Py_None); |
616 | _resultobj = Py_None; | |
617 | return _resultobj; | |
618 | } | |
619 | ||
620 | #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0)) | |
621 | static PyObject *_wrap_wxDataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
622 | PyObject * _resultobj; | |
623 | wxDataFormat * _result; | |
624 | wxDataObject * _arg0; | |
625 | wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get; | |
626 | PyObject * _argo0 = 0; | |
627 | char *_kwnames[] = { "self","dir", NULL }; | |
628 | char _ptemp[128]; | |
629 | ||
630 | self = self; | |
077def0b | 631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetPreferredFormat",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
632 | return NULL; |
633 | if (_argo0) { | |
634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p."); | |
637 | return NULL; | |
638 | } | |
639 | } | |
640 | { | |
641 | wxPy_BEGIN_ALLOW_THREADS; | |
642 | _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1)); | |
643 | ||
644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 645 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
646 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDataFormat_p"); |
647 | _resultobj = Py_BuildValue("s",_ptemp); | |
648 | return _resultobj; | |
649 | } | |
650 | ||
651 | #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0)) | |
652 | static PyObject *_wrap_wxDataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
653 | PyObject * _resultobj; | |
654 | size_t _result; | |
655 | wxDataObject * _arg0; | |
656 | wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get; | |
657 | PyObject * _argo0 = 0; | |
658 | char *_kwnames[] = { "self","dir", NULL }; | |
659 | ||
660 | self = self; | |
077def0b | 661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetFormatCount",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
662 | return NULL; |
663 | if (_argo0) { | |
664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p."); | |
667 | return NULL; | |
668 | } | |
669 | } | |
670 | { | |
671 | wxPy_BEGIN_ALLOW_THREADS; | |
672 | _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1); | |
673 | ||
674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 675 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
676 | } _resultobj = Py_BuildValue("i",_result); |
677 | return _resultobj; | |
678 | } | |
679 | ||
680 | #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1)) | |
681 | static PyObject *_wrap_wxDataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
682 | PyObject * _resultobj; | |
683 | wxDataObject * _arg0; | |
684 | wxDataFormat * _arg1; | |
685 | wxDataObject::Direction _arg2 = (wxDataObject::Direction ) wxDataObject::Get; | |
686 | PyObject * _argo0 = 0; | |
687 | PyObject * _argo1 = 0; | |
688 | char *_kwnames[] = { "self","formats","dir", NULL }; | |
689 | ||
690 | self = self; | |
077def0b | 691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObject_GetAllFormats",_kwnames,&_argo0,&_argo1,&_arg2)) |
4120ef2b RD |
692 | return NULL; |
693 | if (_argo0) { | |
694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p."); | |
697 | return NULL; | |
698 | } | |
699 | } | |
700 | if (_argo1) { | |
701 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
702 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p."); | |
704 | return NULL; | |
705 | } | |
706 | } | |
707 | { | |
708 | wxPy_BEGIN_ALLOW_THREADS; | |
709 | wxDataObject_GetAllFormats(_arg0,_arg1,_arg2); | |
710 | ||
711 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 712 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
713 | } Py_INCREF(Py_None); |
714 | _resultobj = Py_None; | |
715 | return _resultobj; | |
716 | } | |
717 | ||
718 | #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0)) | |
719 | static PyObject *_wrap_wxDataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
720 | PyObject * _resultobj; | |
721 | size_t _result; | |
722 | wxDataObject * _arg0; | |
723 | wxDataFormat * _arg1; | |
724 | PyObject * _argo0 = 0; | |
725 | PyObject * _argo1 = 0; | |
726 | char *_kwnames[] = { "self","format", NULL }; | |
727 | ||
728 | self = self; | |
077def0b | 729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_GetDataSize",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
730 | return NULL; |
731 | if (_argo0) { | |
732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p."); | |
735 | return NULL; | |
736 | } | |
737 | } | |
738 | if (_argo1) { | |
739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p."); | |
742 | return NULL; | |
743 | } | |
744 | } | |
745 | { | |
746 | wxPy_BEGIN_ALLOW_THREADS; | |
747 | _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1); | |
748 | ||
749 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 750 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
751 | } _resultobj = Py_BuildValue("i",_result); |
752 | return _resultobj; | |
753 | } | |
754 | ||
755 | #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1)) | |
756 | static PyObject *_wrap_wxDataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | bool _result; | |
759 | wxDataObject * _arg0; | |
760 | wxDataFormat * _arg1; | |
761 | void * _arg2; | |
762 | PyObject * _argo0 = 0; | |
763 | PyObject * _argo1 = 0; | |
764 | PyObject * _argo2 = 0; | |
765 | char *_kwnames[] = { "self","format","buf", NULL }; | |
766 | ||
767 | self = self; | |
077def0b | 768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDataObject_GetDataHere",_kwnames,&_argo0,&_argo1,&_argo2)) |
4120ef2b RD |
769 | return NULL; |
770 | if (_argo0) { | |
771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p."); | |
774 | return NULL; | |
775 | } | |
776 | } | |
777 | if (_argo1) { | |
778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p."); | |
781 | return NULL; | |
782 | } | |
783 | } | |
784 | if (_argo2) { | |
785 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,(char *) 0 )) { | |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p."); | |
788 | return NULL; | |
789 | } | |
790 | } | |
791 | { | |
792 | wxPy_BEGIN_ALLOW_THREADS; | |
793 | _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2); | |
794 | ||
795 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 796 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
797 | } _resultobj = Py_BuildValue("i",_result); |
798 | return _resultobj; | |
799 | } | |
800 | ||
801 | #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2)) | |
802 | static PyObject *_wrap_wxDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
803 | PyObject * _resultobj; | |
804 | bool _result; | |
805 | wxDataObject * _arg0; | |
806 | wxDataFormat * _arg1; | |
807 | size_t _arg2; | |
808 | void * _arg3; | |
809 | PyObject * _argo0 = 0; | |
810 | PyObject * _argo1 = 0; | |
811 | PyObject * _argo3 = 0; | |
812 | char *_kwnames[] = { "self","format","len","buf", NULL }; | |
813 | ||
814 | self = self; | |
077def0b | 815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO:wxDataObject_SetData",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3)) |
4120ef2b RD |
816 | return NULL; |
817 | if (_argo0) { | |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | if (_argo1) { | |
825 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
826 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p."); | |
828 | return NULL; | |
829 | } | |
830 | } | |
831 | if (_argo3) { | |
832 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
833 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,(char *) 0 )) { | |
834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p."); | |
835 | return NULL; | |
836 | } | |
837 | } | |
838 | { | |
839 | wxPy_BEGIN_ALLOW_THREADS; | |
840 | _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3); | |
841 | ||
842 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 843 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
844 | } _resultobj = Py_BuildValue("i",_result); |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0)) | |
849 | static PyObject *_wrap_wxDataObject_IsSupportedFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
850 | PyObject * _resultobj; | |
851 | bool _result; | |
852 | wxDataObject * _arg0; | |
853 | wxDataFormat * _arg1; | |
854 | PyObject * _argo0 = 0; | |
855 | PyObject * _argo1 = 0; | |
856 | char *_kwnames[] = { "self","format", NULL }; | |
857 | ||
858 | self = self; | |
077def0b | 859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_IsSupportedFormat",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
860 | return NULL; |
861 | if (_argo0) { | |
862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p."); | |
865 | return NULL; | |
866 | } | |
867 | } | |
868 | if (_argo1) { | |
869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p."); | |
872 | return NULL; | |
873 | } | |
874 | } | |
875 | { | |
876 | wxPy_BEGIN_ALLOW_THREADS; | |
877 | _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1); | |
878 | ||
879 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 880 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
881 | } _resultobj = Py_BuildValue("i",_result); |
882 | return _resultobj; | |
883 | } | |
884 | ||
885 | static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr) { | |
886 | wxDataObjectSimple *src; | |
887 | wxDataObject *dest; | |
888 | src = (wxDataObjectSimple *) ptr; | |
889 | dest = (wxDataObject *) src; | |
890 | return (void *) dest; | |
891 | } | |
892 | ||
893 | #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0)) | |
894 | static PyObject *_wrap_new_wxDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
895 | PyObject * _resultobj; | |
896 | wxDataObjectSimple * _result; | |
897 | wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid; | |
898 | PyObject * _argo0 = 0; | |
899 | char *_kwnames[] = { "format", NULL }; | |
900 | char _ptemp[128]; | |
901 | ||
902 | self = self; | |
077def0b | 903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxDataObjectSimple",_kwnames,&_argo0)) |
4120ef2b RD |
904 | return NULL; |
905 | if (_argo0) { | |
906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | { | |
913 | wxPy_BEGIN_ALLOW_THREADS; | |
914 | _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0); | |
915 | ||
916 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 917 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
918 | } if (_result) { |
919 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectSimple_p"); | |
920 | _resultobj = Py_BuildValue("s",_ptemp); | |
921 | } else { | |
922 | Py_INCREF(Py_None); | |
923 | _resultobj = Py_None; | |
924 | } | |
925 | return _resultobj; | |
926 | } | |
927 | ||
928 | #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat()) | |
929 | static PyObject *_wrap_wxDataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject * _resultobj; | |
931 | wxDataFormat * _result; | |
932 | wxDataObjectSimple * _arg0; | |
933 | PyObject * _argo0 = 0; | |
934 | char *_kwnames[] = { "self", NULL }; | |
935 | char _ptemp[128]; | |
936 | ||
937 | self = self; | |
077def0b | 938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataObjectSimple_GetFormat",_kwnames,&_argo0)) |
4120ef2b RD |
939 | return NULL; |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
948 | wxPy_BEGIN_ALLOW_THREADS; | |
949 | const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0); | |
950 | _result = (wxDataFormat *) &_result_ref; | |
951 | ||
952 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 953 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
954 | } if (_result) { |
955 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p"); | |
956 | _resultobj = Py_BuildValue("s",_ptemp); | |
957 | } else { | |
958 | Py_INCREF(Py_None); | |
959 | _resultobj = Py_None; | |
960 | } | |
961 | return _resultobj; | |
962 | } | |
963 | ||
964 | #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0)) | |
965 | static PyObject *_wrap_wxDataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
966 | PyObject * _resultobj; | |
967 | wxDataObjectSimple * _arg0; | |
968 | wxDataFormat * _arg1; | |
969 | PyObject * _argo0 = 0; | |
970 | PyObject * _argo1 = 0; | |
971 | char *_kwnames[] = { "self","format", NULL }; | |
972 | ||
973 | self = self; | |
077def0b | 974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObjectSimple_SetFormat",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
975 | return NULL; |
976 | if (_argo0) { | |
977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) { | |
979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p."); | |
980 | return NULL; | |
981 | } | |
982 | } | |
983 | if (_argo1) { | |
984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p."); | |
987 | return NULL; | |
988 | } | |
989 | } | |
990 | { | |
991 | wxPy_BEGIN_ALLOW_THREADS; | |
992 | wxDataObjectSimple_SetFormat(_arg0,*_arg1); | |
993 | ||
994 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 995 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
996 | } Py_INCREF(Py_None); |
997 | _resultobj = Py_None; | |
998 | return _resultobj; | |
999 | } | |
1000 | ||
1001 | static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr) { | |
1002 | wxPyDataObjectSimple *src; | |
1003 | wxDataObjectSimple *dest; | |
1004 | src = (wxPyDataObjectSimple *) ptr; | |
1005 | dest = (wxDataObjectSimple *) src; | |
1006 | return (void *) dest; | |
1007 | } | |
1008 | ||
1009 | static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr) { | |
1010 | wxPyDataObjectSimple *src; | |
1011 | wxDataObject *dest; | |
1012 | src = (wxPyDataObjectSimple *) ptr; | |
1013 | dest = (wxDataObject *) src; | |
1014 | return (void *) dest; | |
1015 | } | |
1016 | ||
1017 | #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0)) | |
1018 | static PyObject *_wrap_new_wxPyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1019 | PyObject * _resultobj; | |
1020 | wxPyDataObjectSimple * _result; | |
1021 | wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid; | |
1022 | PyObject * _argo0 = 0; | |
1023 | char *_kwnames[] = { "format", NULL }; | |
1024 | char _ptemp[128]; | |
1025 | ||
1026 | self = self; | |
077def0b | 1027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDataObjectSimple",_kwnames,&_argo0)) |
4120ef2b RD |
1028 | return NULL; |
1029 | if (_argo0) { | |
1030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
1032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p."); | |
1033 | return NULL; | |
1034 | } | |
1035 | } | |
1036 | { | |
1037 | wxPy_BEGIN_ALLOW_THREADS; | |
1038 | _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0); | |
1039 | ||
1040 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1041 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1042 | } if (_result) { |
1043 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDataObjectSimple_p"); | |
1044 | _resultobj = Py_BuildValue("s",_ptemp); | |
1045 | } else { | |
1046 | Py_INCREF(Py_None); | |
1047 | _resultobj = Py_None; | |
1048 | } | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
f6bcfd97 | 1052 | #define wxPyDataObjectSimple__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
1053 | static PyObject *_wrap_wxPyDataObjectSimple__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
1054 | PyObject * _resultobj; | |
1055 | wxPyDataObjectSimple * _arg0; | |
1056 | PyObject * _arg1; | |
f6bcfd97 | 1057 | PyObject * _arg2; |
4120ef2b RD |
1058 | PyObject * _argo0 = 0; |
1059 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
1060 | PyObject * _obj2 = 0; |
1061 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
1062 | |
1063 | self = self; | |
f6bcfd97 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDataObjectSimple__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
1065 | return NULL; |
1066 | if (_argo0) { | |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDataObjectSimple_p")) { | |
1069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDataObjectSimple__setSelf. Expected _wxPyDataObjectSimple_p."); | |
1070 | return NULL; | |
1071 | } | |
1072 | } | |
1073 | { | |
1074 | _arg1 = _obj1; | |
1075 | } | |
f6bcfd97 BP |
1076 | { |
1077 | _arg2 = _obj2; | |
1078 | } | |
4120ef2b RD |
1079 | { |
1080 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1081 | wxPyDataObjectSimple__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
1082 | |
1083 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1084 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1085 | } Py_INCREF(Py_None); |
1086 | _resultobj = Py_None; | |
1087 | return _resultobj; | |
1088 | } | |
1089 | ||
1090 | static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr) { | |
1091 | wxDataObjectComposite *src; | |
1092 | wxDataObject *dest; | |
1093 | src = (wxDataObjectComposite *) ptr; | |
1094 | dest = (wxDataObject *) src; | |
1095 | return (void *) dest; | |
1096 | } | |
1097 | ||
1098 | #define new_wxDataObjectComposite() (new wxDataObjectComposite()) | |
1099 | static PyObject *_wrap_new_wxDataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1100 | PyObject * _resultobj; | |
1101 | wxDataObjectComposite * _result; | |
1102 | char *_kwnames[] = { NULL }; | |
1103 | char _ptemp[128]; | |
1104 | ||
1105 | self = self; | |
077def0b | 1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDataObjectComposite",_kwnames)) |
4120ef2b RD |
1107 | return NULL; |
1108 | { | |
1109 | wxPy_BEGIN_ALLOW_THREADS; | |
1110 | _result = (wxDataObjectComposite *)new_wxDataObjectComposite(); | |
1111 | ||
1112 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1113 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1114 | } if (_result) { |
1115 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectComposite_p"); | |
1116 | _resultobj = Py_BuildValue("s",_ptemp); | |
1117 | } else { | |
1118 | Py_INCREF(Py_None); | |
1119 | _resultobj = Py_None; | |
1120 | } | |
1121 | return _resultobj; | |
1122 | } | |
1123 | ||
1124 | #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1125 | static PyObject *_wrap_wxDataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1126 | PyObject * _resultobj; | |
1127 | wxDataObjectComposite * _arg0; | |
1128 | wxDataObjectSimple * _arg1; | |
1129 | int _arg2 = (int ) FALSE; | |
1130 | PyObject * _argo0 = 0; | |
1131 | PyObject * _argo1 = 0; | |
1132 | char *_kwnames[] = { "self","dataObject","preferred", NULL }; | |
1133 | ||
1134 | self = self; | |
077def0b | 1135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObjectComposite_Add",_kwnames,&_argo0,&_argo1,&_arg2)) |
4120ef2b RD |
1136 | return NULL; |
1137 | if (_argo0) { | |
1138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectComposite_p")) { | |
1140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p."); | |
1141 | return NULL; | |
1142 | } | |
1143 | } | |
1144 | if (_argo1) { | |
1145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObjectSimple_p")) { | |
1147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p."); | |
1148 | return NULL; | |
1149 | } | |
1150 | } | |
1151 | { | |
1152 | wxPy_BEGIN_ALLOW_THREADS; | |
1153 | wxDataObjectComposite_Add(_arg0,_arg1,_arg2); | |
1154 | ||
1155 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1156 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1157 | } Py_INCREF(Py_None); |
1158 | _resultobj = Py_None; | |
1159 | return _resultobj; | |
1160 | } | |
1161 | ||
1162 | static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr) { | |
1163 | wxTextDataObject *src; | |
1164 | wxDataObjectSimple *dest; | |
1165 | src = (wxTextDataObject *) ptr; | |
1166 | dest = (wxDataObjectSimple *) src; | |
1167 | return (void *) dest; | |
1168 | } | |
1169 | ||
1170 | static void *SwigwxTextDataObjectTowxDataObject(void *ptr) { | |
1171 | wxTextDataObject *src; | |
1172 | wxDataObject *dest; | |
1173 | src = (wxTextDataObject *) ptr; | |
1174 | dest = (wxDataObject *) src; | |
1175 | return (void *) dest; | |
1176 | } | |
1177 | ||
1178 | #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0)) | |
1179 | static PyObject *_wrap_new_wxTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | wxTextDataObject * _result; | |
1182 | wxString * _arg0 = (wxString *) &wxEmptyString; | |
1183 | PyObject * _obj0 = 0; | |
1184 | char *_kwnames[] = { "text", NULL }; | |
1185 | char _ptemp[128]; | |
1186 | ||
1187 | self = self; | |
077def0b | 1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTextDataObject",_kwnames,&_obj0)) |
4120ef2b RD |
1189 | return NULL; |
1190 | if (_obj0) | |
1191 | { | |
2cd2fac8 RD |
1192 | #if PYTHON_API_VERSION >= 1009 |
1193 | char* tmpPtr; int tmpSize; | |
1194 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1195 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1196 | return NULL; |
1197 | } | |
1198 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1199 | return NULL; | |
1200 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1201 | #else | |
4120ef2b RD |
1202 | if (!PyString_Check(_obj0)) { |
1203 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1204 | return NULL; | |
1205 | } | |
2cd2fac8 RD |
1206 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1207 | #endif | |
4120ef2b RD |
1208 | } |
1209 | { | |
1210 | wxPy_BEGIN_ALLOW_THREADS; | |
1211 | _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0); | |
1212 | ||
1213 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1214 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1215 | } if (_result) { |
1216 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextDataObject_p"); | |
1217 | _resultobj = Py_BuildValue("s",_ptemp); | |
1218 | } else { | |
1219 | Py_INCREF(Py_None); | |
1220 | _resultobj = Py_None; | |
1221 | } | |
1222 | { | |
1223 | if (_obj0) | |
1224 | delete _arg0; | |
1225 | } | |
1226 | return _resultobj; | |
1227 | } | |
1228 | ||
1229 | #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength()) | |
1230 | static PyObject *_wrap_wxTextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1231 | PyObject * _resultobj; | |
1232 | size_t _result; | |
1233 | wxTextDataObject * _arg0; | |
1234 | PyObject * _argo0 = 0; | |
1235 | char *_kwnames[] = { "self", NULL }; | |
1236 | ||
1237 | self = self; | |
077def0b | 1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetTextLength",_kwnames,&_argo0)) |
4120ef2b RD |
1239 | return NULL; |
1240 | if (_argo0) { | |
1241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) { | |
1243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p."); | |
1244 | return NULL; | |
1245 | } | |
1246 | } | |
1247 | { | |
1248 | wxPy_BEGIN_ALLOW_THREADS; | |
1249 | _result = (size_t )wxTextDataObject_GetTextLength(_arg0); | |
1250 | ||
1251 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1252 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1253 | } _resultobj = Py_BuildValue("i",_result); |
1254 | return _resultobj; | |
1255 | } | |
1256 | ||
1257 | #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText()) | |
1258 | static PyObject *_wrap_wxTextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1259 | PyObject * _resultobj; | |
1260 | wxString * _result; | |
1261 | wxTextDataObject * _arg0; | |
1262 | PyObject * _argo0 = 0; | |
1263 | char *_kwnames[] = { "self", NULL }; | |
1264 | ||
1265 | self = self; | |
077def0b | 1266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetText",_kwnames,&_argo0)) |
4120ef2b RD |
1267 | return NULL; |
1268 | if (_argo0) { | |
1269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) { | |
1271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p."); | |
1272 | return NULL; | |
1273 | } | |
1274 | } | |
1275 | { | |
1276 | wxPy_BEGIN_ALLOW_THREADS; | |
1277 | _result = new wxString (wxTextDataObject_GetText(_arg0)); | |
1278 | ||
1279 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1280 | if (PyErr_Occurred()) return NULL; |
4120ef2b | 1281 | }{ |
e02c03a4 | 1282 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
4120ef2b RD |
1283 | } |
1284 | { | |
1285 | delete _result; | |
1286 | } | |
1287 | return _resultobj; | |
1288 | } | |
1289 | ||
1290 | #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
1291 | static PyObject *_wrap_wxTextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1292 | PyObject * _resultobj; | |
1293 | wxTextDataObject * _arg0; | |
1294 | wxString * _arg1; | |
1295 | PyObject * _argo0 = 0; | |
1296 | PyObject * _obj1 = 0; | |
1297 | char *_kwnames[] = { "self","text", NULL }; | |
1298 | ||
1299 | self = self; | |
077def0b | 1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextDataObject_SetText",_kwnames,&_argo0,&_obj1)) |
4120ef2b RD |
1301 | return NULL; |
1302 | if (_argo0) { | |
1303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) { | |
1305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p."); | |
1306 | return NULL; | |
1307 | } | |
1308 | } | |
1309 | { | |
2cd2fac8 RD |
1310 | #if PYTHON_API_VERSION >= 1009 |
1311 | char* tmpPtr; int tmpSize; | |
1312 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1313 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1314 | return NULL; |
1315 | } | |
1316 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1317 | return NULL; | |
1318 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1319 | #else | |
4120ef2b RD |
1320 | if (!PyString_Check(_obj1)) { |
1321 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1322 | return NULL; | |
1323 | } | |
2cd2fac8 RD |
1324 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1325 | #endif | |
4120ef2b RD |
1326 | } |
1327 | { | |
1328 | wxPy_BEGIN_ALLOW_THREADS; | |
1329 | wxTextDataObject_SetText(_arg0,*_arg1); | |
1330 | ||
1331 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1332 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1333 | } Py_INCREF(Py_None); |
1334 | _resultobj = Py_None; | |
1335 | { | |
1336 | if (_obj1) | |
1337 | delete _arg1; | |
1338 | } | |
1339 | return _resultobj; | |
1340 | } | |
1341 | ||
1342 | static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr) { | |
1343 | wxPyTextDataObject *src; | |
1344 | wxTextDataObject *dest; | |
1345 | src = (wxPyTextDataObject *) ptr; | |
1346 | dest = (wxTextDataObject *) src; | |
1347 | return (void *) dest; | |
1348 | } | |
1349 | ||
1350 | static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr) { | |
1351 | wxPyTextDataObject *src; | |
1352 | wxDataObjectSimple *dest; | |
1353 | src = (wxPyTextDataObject *) ptr; | |
1354 | dest = (wxDataObjectSimple *) src; | |
1355 | return (void *) dest; | |
1356 | } | |
1357 | ||
1358 | static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr) { | |
1359 | wxPyTextDataObject *src; | |
1360 | wxDataObject *dest; | |
1361 | src = (wxPyTextDataObject *) ptr; | |
1362 | dest = (wxDataObject *) src; | |
1363 | return (void *) dest; | |
1364 | } | |
1365 | ||
1366 | #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0)) | |
1367 | static PyObject *_wrap_new_wxPyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1368 | PyObject * _resultobj; | |
1369 | wxPyTextDataObject * _result; | |
1370 | wxString * _arg0 = (wxString *) &wxEmptyString; | |
1371 | PyObject * _obj0 = 0; | |
1372 | char *_kwnames[] = { "text", NULL }; | |
1373 | char _ptemp[128]; | |
1374 | ||
1375 | self = self; | |
077def0b | 1376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyTextDataObject",_kwnames,&_obj0)) |
4120ef2b RD |
1377 | return NULL; |
1378 | if (_obj0) | |
1379 | { | |
2cd2fac8 RD |
1380 | #if PYTHON_API_VERSION >= 1009 |
1381 | char* tmpPtr; int tmpSize; | |
1382 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1384 | return NULL; |
1385 | } | |
1386 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1387 | return NULL; | |
1388 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1389 | #else | |
4120ef2b RD |
1390 | if (!PyString_Check(_obj0)) { |
1391 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1392 | return NULL; | |
1393 | } | |
2cd2fac8 RD |
1394 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1395 | #endif | |
4120ef2b RD |
1396 | } |
1397 | { | |
1398 | wxPy_BEGIN_ALLOW_THREADS; | |
1399 | _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0); | |
1400 | ||
1401 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1402 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1403 | } if (_result) { |
1404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDataObject_p"); | |
1405 | _resultobj = Py_BuildValue("s",_ptemp); | |
1406 | } else { | |
1407 | Py_INCREF(Py_None); | |
1408 | _resultobj = Py_None; | |
1409 | } | |
1410 | { | |
1411 | if (_obj0) | |
1412 | delete _arg0; | |
1413 | } | |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
f6bcfd97 | 1417 | #define wxPyTextDataObject__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
1418 | static PyObject *_wrap_wxPyTextDataObject__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
1419 | PyObject * _resultobj; | |
1420 | wxPyTextDataObject * _arg0; | |
1421 | PyObject * _arg1; | |
f6bcfd97 | 1422 | PyObject * _arg2; |
4120ef2b RD |
1423 | PyObject * _argo0 = 0; |
1424 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
1425 | PyObject * _obj2 = 0; |
1426 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
1427 | |
1428 | self = self; | |
f6bcfd97 | 1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTextDataObject__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
1430 | return NULL; |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDataObject_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTextDataObject__setSelf. Expected _wxPyTextDataObject_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | _arg1 = _obj1; | |
1440 | } | |
f6bcfd97 BP |
1441 | { |
1442 | _arg2 = _obj2; | |
1443 | } | |
4120ef2b RD |
1444 | { |
1445 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1446 | wxPyTextDataObject__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
1447 | |
1448 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1449 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1450 | } Py_INCREF(Py_None); |
1451 | _resultobj = Py_None; | |
1452 | return _resultobj; | |
1453 | } | |
1454 | ||
1455 | static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr) { | |
1456 | wxBitmapDataObject *src; | |
1457 | wxDataObjectSimple *dest; | |
1458 | src = (wxBitmapDataObject *) ptr; | |
1459 | dest = (wxDataObjectSimple *) src; | |
1460 | return (void *) dest; | |
1461 | } | |
1462 | ||
1463 | static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr) { | |
1464 | wxBitmapDataObject *src; | |
1465 | wxDataObject *dest; | |
1466 | src = (wxBitmapDataObject *) ptr; | |
1467 | dest = (wxDataObject *) src; | |
1468 | return (void *) dest; | |
1469 | } | |
1470 | ||
1471 | #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0)) | |
1472 | static PyObject *_wrap_new_wxBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1473 | PyObject * _resultobj; | |
1474 | wxBitmapDataObject * _result; | |
1475 | wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap; | |
1476 | PyObject * _argo0 = 0; | |
1477 | char *_kwnames[] = { "bitmap", NULL }; | |
1478 | char _ptemp[128]; | |
1479 | ||
1480 | self = self; | |
077def0b | 1481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBitmapDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
1482 | return NULL; |
1483 | if (_argo0) { | |
1484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p."); | |
1487 | return NULL; | |
1488 | } | |
1489 | } | |
1490 | { | |
1491 | wxPy_BEGIN_ALLOW_THREADS; | |
1492 | _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0); | |
1493 | ||
1494 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1495 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1496 | } if (_result) { |
1497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapDataObject_p"); | |
1498 | _resultobj = Py_BuildValue("s",_ptemp); | |
1499 | } else { | |
1500 | Py_INCREF(Py_None); | |
1501 | _resultobj = Py_None; | |
1502 | } | |
1503 | return _resultobj; | |
1504 | } | |
1505 | ||
1506 | #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
1507 | static PyObject *_wrap_wxBitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1508 | PyObject * _resultobj; | |
1509 | wxBitmap * _result; | |
1510 | wxBitmapDataObject * _arg0; | |
1511 | PyObject * _argo0 = 0; | |
1512 | char *_kwnames[] = { "self", NULL }; | |
1513 | char _ptemp[128]; | |
1514 | ||
1515 | self = self; | |
077def0b | 1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapDataObject_GetBitmap",_kwnames,&_argo0)) |
4120ef2b RD |
1517 | return NULL; |
1518 | if (_argo0) { | |
1519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) { | |
1521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p."); | |
1522 | return NULL; | |
1523 | } | |
1524 | } | |
1525 | { | |
1526 | wxPy_BEGIN_ALLOW_THREADS; | |
1527 | _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0)); | |
1528 | ||
1529 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1530 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1531 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1532 | _resultobj = Py_BuildValue("s",_ptemp); | |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
1537 | static PyObject *_wrap_wxBitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | wxBitmapDataObject * _arg0; | |
1540 | wxBitmap * _arg1; | |
1541 | PyObject * _argo0 = 0; | |
1542 | PyObject * _argo1 = 0; | |
1543 | char *_kwnames[] = { "self","bitmap", NULL }; | |
1544 | ||
1545 | self = self; | |
077def0b | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapDataObject_SetBitmap",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
1547 | return NULL; |
1548 | if (_argo0) { | |
1549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) { | |
1551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p."); | |
1552 | return NULL; | |
1553 | } | |
1554 | } | |
1555 | if (_argo1) { | |
1556 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1557 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
1558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p."); | |
1559 | return NULL; | |
1560 | } | |
1561 | } | |
1562 | { | |
1563 | wxPy_BEGIN_ALLOW_THREADS; | |
1564 | wxBitmapDataObject_SetBitmap(_arg0,*_arg1); | |
1565 | ||
1566 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1567 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1568 | } Py_INCREF(Py_None); |
1569 | _resultobj = Py_None; | |
1570 | return _resultobj; | |
1571 | } | |
1572 | ||
1573 | static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr) { | |
1574 | wxPyBitmapDataObject *src; | |
1575 | wxBitmapDataObject *dest; | |
1576 | src = (wxPyBitmapDataObject *) ptr; | |
1577 | dest = (wxBitmapDataObject *) src; | |
1578 | return (void *) dest; | |
1579 | } | |
1580 | ||
1581 | static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr) { | |
1582 | wxPyBitmapDataObject *src; | |
1583 | wxDataObjectSimple *dest; | |
1584 | src = (wxPyBitmapDataObject *) ptr; | |
1585 | dest = (wxDataObjectSimple *) src; | |
1586 | return (void *) dest; | |
1587 | } | |
1588 | ||
1589 | static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr) { | |
1590 | wxPyBitmapDataObject *src; | |
1591 | wxDataObject *dest; | |
1592 | src = (wxPyBitmapDataObject *) ptr; | |
1593 | dest = (wxDataObject *) src; | |
1594 | return (void *) dest; | |
1595 | } | |
1596 | ||
1597 | #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0)) | |
1598 | static PyObject *_wrap_new_wxPyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | wxPyBitmapDataObject * _result; | |
1601 | wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "bitmap", NULL }; | |
1604 | char _ptemp[128]; | |
1605 | ||
1606 | self = self; | |
077def0b | 1607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyBitmapDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
1608 | return NULL; |
1609 | if (_argo0) { | |
1610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p."); | |
1613 | return NULL; | |
1614 | } | |
1615 | } | |
1616 | { | |
1617 | wxPy_BEGIN_ALLOW_THREADS; | |
1618 | _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0); | |
1619 | ||
1620 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1621 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1622 | } if (_result) { |
1623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyBitmapDataObject_p"); | |
1624 | _resultobj = Py_BuildValue("s",_ptemp); | |
1625 | } else { | |
1626 | Py_INCREF(Py_None); | |
1627 | _resultobj = Py_None; | |
1628 | } | |
1629 | return _resultobj; | |
1630 | } | |
1631 | ||
f6bcfd97 | 1632 | #define wxPyBitmapDataObject__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
1633 | static PyObject *_wrap_wxPyBitmapDataObject__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
1634 | PyObject * _resultobj; | |
1635 | wxPyBitmapDataObject * _arg0; | |
1636 | PyObject * _arg1; | |
f6bcfd97 | 1637 | PyObject * _arg2; |
4120ef2b RD |
1638 | PyObject * _argo0 = 0; |
1639 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
1640 | PyObject * _obj2 = 0; |
1641 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
1642 | |
1643 | self = self; | |
f6bcfd97 | 1644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyBitmapDataObject__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
1645 | return NULL; |
1646 | if (_argo0) { | |
1647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyBitmapDataObject_p")) { | |
1649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyBitmapDataObject__setSelf. Expected _wxPyBitmapDataObject_p."); | |
1650 | return NULL; | |
1651 | } | |
1652 | } | |
1653 | { | |
1654 | _arg1 = _obj1; | |
1655 | } | |
f6bcfd97 BP |
1656 | { |
1657 | _arg2 = _obj2; | |
1658 | } | |
4120ef2b RD |
1659 | { |
1660 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1661 | wxPyBitmapDataObject__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
1662 | |
1663 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1664 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1665 | } Py_INCREF(Py_None); |
1666 | _resultobj = Py_None; | |
1667 | return _resultobj; | |
1668 | } | |
1669 | ||
1670 | static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr) { | |
1671 | wxFileDataObject *src; | |
1672 | wxDataObjectSimple *dest; | |
1673 | src = (wxFileDataObject *) ptr; | |
1674 | dest = (wxDataObjectSimple *) src; | |
1675 | return (void *) dest; | |
1676 | } | |
1677 | ||
1678 | static void *SwigwxFileDataObjectTowxDataObject(void *ptr) { | |
1679 | wxFileDataObject *src; | |
1680 | wxDataObject *dest; | |
1681 | src = (wxFileDataObject *) ptr; | |
1682 | dest = (wxDataObject *) src; | |
1683 | return (void *) dest; | |
1684 | } | |
1685 | ||
1686 | #define new_wxFileDataObject() (new wxFileDataObject()) | |
1687 | static PyObject *_wrap_new_wxFileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1688 | PyObject * _resultobj; | |
1689 | wxFileDataObject * _result; | |
1690 | char *_kwnames[] = { NULL }; | |
1691 | char _ptemp[128]; | |
1692 | ||
1693 | self = self; | |
077def0b | 1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDataObject",_kwnames)) |
4120ef2b RD |
1695 | return NULL; |
1696 | { | |
1697 | wxPy_BEGIN_ALLOW_THREADS; | |
1698 | _result = (wxFileDataObject *)new_wxFileDataObject(); | |
1699 | ||
1700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1701 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1702 | } if (_result) { |
1703 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDataObject_p"); | |
1704 | _resultobj = Py_BuildValue("s",_ptemp); | |
1705 | } else { | |
1706 | Py_INCREF(Py_None); | |
1707 | _resultobj = Py_None; | |
1708 | } | |
1709 | return _resultobj; | |
1710 | } | |
1711 | ||
1712 | static PyObject * wxFileDataObject_GetFilenames(wxFileDataObject *self) { | |
1713 | const wxArrayString& strings = self->GetFilenames(); | |
1714 | PyObject* list = PyList_New(0); | |
1715 | for (size_t x=0; x<strings.GetCount(); x++) | |
1716 | PyList_Append(list, PyString_FromString(strings[x])); | |
1717 | return list; | |
1718 | } | |
1719 | static PyObject *_wrap_wxFileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1720 | PyObject * _resultobj; | |
1721 | PyObject * _result; | |
1722 | wxFileDataObject * _arg0; | |
1723 | PyObject * _argo0 = 0; | |
1724 | char *_kwnames[] = { "self", NULL }; | |
1725 | ||
1726 | self = self; | |
077def0b | 1727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDataObject_GetFilenames",_kwnames,&_argo0)) |
4120ef2b RD |
1728 | return NULL; |
1729 | if (_argo0) { | |
1730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDataObject_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p."); | |
1733 | return NULL; | |
1734 | } | |
1735 | } | |
1736 | { | |
1737 | wxPy_BEGIN_ALLOW_THREADS; | |
1738 | _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0); | |
1739 | ||
1740 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1741 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1742 | }{ |
1743 | _resultobj = _result; | |
1744 | } | |
1745 | return _resultobj; | |
1746 | } | |
1747 | ||
1748 | static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr) { | |
1749 | wxCustomDataObject *src; | |
1750 | wxDataObjectSimple *dest; | |
1751 | src = (wxCustomDataObject *) ptr; | |
1752 | dest = (wxDataObjectSimple *) src; | |
1753 | return (void *) dest; | |
1754 | } | |
1755 | ||
1756 | static void *SwigwxCustomDataObjectTowxDataObject(void *ptr) { | |
1757 | wxCustomDataObject *src; | |
1758 | wxDataObject *dest; | |
1759 | src = (wxCustomDataObject *) ptr; | |
1760 | dest = (wxDataObject *) src; | |
1761 | return (void *) dest; | |
1762 | } | |
1763 | ||
1764 | #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0)) | |
1765 | static PyObject *_wrap_new_wxCustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | wxCustomDataObject * _result; | |
1768 | wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "format", NULL }; | |
1771 | char _ptemp[128]; | |
1772 | ||
1773 | self = self; | |
077def0b | 1774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxCustomDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
1775 | return NULL; |
1776 | if (_argo0) { | |
1777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) { | |
1779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p."); | |
1780 | return NULL; | |
1781 | } | |
1782 | } | |
1783 | { | |
1784 | wxPy_BEGIN_ALLOW_THREADS; | |
1785 | _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0); | |
1786 | ||
1787 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1788 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1789 | } if (_result) { |
1790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCustomDataObject_p"); | |
1791 | _resultobj = Py_BuildValue("s",_ptemp); | |
1792 | } else { | |
1793 | Py_INCREF(Py_None); | |
1794 | _resultobj = Py_None; | |
1795 | } | |
1796 | return _resultobj; | |
1797 | } | |
1798 | ||
1799 | static void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject * data) { | |
1800 | if (PyString_Check(data)) { | |
1801 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1802 | } | |
1803 | } | |
1804 | static PyObject *_wrap_wxCustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject * _resultobj; | |
1806 | wxCustomDataObject * _arg0; | |
1807 | PyObject * _arg1; | |
1808 | PyObject * _argo0 = 0; | |
1809 | PyObject * _obj1 = 0; | |
1810 | char *_kwnames[] = { "self","data", NULL }; | |
1811 | ||
1812 | self = self; | |
077def0b | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_TakeData",_kwnames,&_argo0,&_obj1)) |
4120ef2b RD |
1814 | return NULL; |
1815 | if (_argo0) { | |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p."); | |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
1822 | { | |
1823 | _arg1 = _obj1; | |
1824 | } | |
1825 | { | |
1826 | wxPy_BEGIN_ALLOW_THREADS; | |
1827 | wxCustomDataObject_TakeData(_arg0,_arg1); | |
1828 | ||
1829 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1830 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1831 | } Py_INCREF(Py_None); |
1832 | _resultobj = Py_None; | |
1833 | return _resultobj; | |
1834 | } | |
1835 | ||
1836 | static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject * data) { | |
1837 | if (PyString_Check(data)) { | |
1838 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1839 | } | |
1840 | return FALSE; | |
1841 | } | |
1842 | static PyObject *_wrap_wxCustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject * _resultobj; | |
1844 | bool _result; | |
1845 | wxCustomDataObject * _arg0; | |
1846 | PyObject * _arg1; | |
1847 | PyObject * _argo0 = 0; | |
1848 | PyObject * _obj1 = 0; | |
1849 | char *_kwnames[] = { "self","data", NULL }; | |
1850 | ||
1851 | self = self; | |
077def0b | 1852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_SetData",_kwnames,&_argo0,&_obj1)) |
4120ef2b RD |
1853 | return NULL; |
1854 | if (_argo0) { | |
1855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) { | |
1857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p."); | |
1858 | return NULL; | |
1859 | } | |
1860 | } | |
1861 | { | |
1862 | _arg1 = _obj1; | |
1863 | } | |
1864 | { | |
1865 | wxPy_BEGIN_ALLOW_THREADS; | |
1866 | _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1); | |
1867 | ||
1868 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1869 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1870 | } _resultobj = Py_BuildValue("i",_result); |
1871 | return _resultobj; | |
1872 | } | |
1873 | ||
1874 | #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize()) | |
1875 | static PyObject *_wrap_wxCustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1876 | PyObject * _resultobj; | |
1877 | size_t _result; | |
1878 | wxCustomDataObject * _arg0; | |
1879 | PyObject * _argo0 = 0; | |
1880 | char *_kwnames[] = { "self", NULL }; | |
1881 | ||
1882 | self = self; | |
077def0b | 1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetSize",_kwnames,&_argo0)) |
4120ef2b RD |
1884 | return NULL; |
1885 | if (_argo0) { | |
1886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p."); | |
1889 | return NULL; | |
1890 | } | |
1891 | } | |
1892 | { | |
1893 | wxPy_BEGIN_ALLOW_THREADS; | |
1894 | _result = (size_t )wxCustomDataObject_GetSize(_arg0); | |
1895 | ||
1896 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1897 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1898 | } _resultobj = Py_BuildValue("i",_result); |
1899 | return _resultobj; | |
1900 | } | |
1901 | ||
1902 | static PyObject * wxCustomDataObject_GetData(wxCustomDataObject *self) { | |
1903 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1904 | } | |
1905 | static PyObject *_wrap_wxCustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | PyObject * _result; | |
1908 | wxCustomDataObject * _arg0; | |
1909 | PyObject * _argo0 = 0; | |
1910 | char *_kwnames[] = { "self", NULL }; | |
1911 | ||
1912 | self = self; | |
077def0b | 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetData",_kwnames,&_argo0)) |
4120ef2b RD |
1914 | return NULL; |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
1923 | wxPy_BEGIN_ALLOW_THREADS; | |
1924 | _result = (PyObject *)wxCustomDataObject_GetData(_arg0); | |
1925 | ||
1926 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1927 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1928 | }{ |
1929 | _resultobj = _result; | |
1930 | } | |
1931 | return _resultobj; | |
1932 | } | |
1933 | ||
9df61a29 RD |
1934 | static void *SwigwxClipboardTowxObject(void *ptr) { |
1935 | wxClipboard *src; | |
1936 | wxObject *dest; | |
1937 | src = (wxClipboard *) ptr; | |
1938 | dest = (wxObject *) src; | |
1939 | return (void *) dest; | |
1940 | } | |
1941 | ||
4120ef2b RD |
1942 | #define new_wxClipboard() (new wxClipboard()) |
1943 | static PyObject *_wrap_new_wxClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1944 | PyObject * _resultobj; | |
1945 | wxClipboard * _result; | |
1946 | char *_kwnames[] = { NULL }; | |
1947 | char _ptemp[128]; | |
1948 | ||
1949 | self = self; | |
077def0b | 1950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxClipboard",_kwnames)) |
4120ef2b RD |
1951 | return NULL; |
1952 | { | |
1953 | wxPy_BEGIN_ALLOW_THREADS; | |
1954 | _result = (wxClipboard *)new_wxClipboard(); | |
1955 | ||
1956 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1957 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1958 | } if (_result) { |
1959 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClipboard_p"); | |
1960 | _resultobj = Py_BuildValue("s",_ptemp); | |
1961 | } else { | |
1962 | Py_INCREF(Py_None); | |
1963 | _resultobj = Py_None; | |
1964 | } | |
1965 | return _resultobj; | |
1966 | } | |
1967 | ||
1968 | #define wxClipboard_Open(_swigobj) (_swigobj->Open()) | |
1969 | static PyObject *_wrap_wxClipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
1971 | bool _result; | |
1972 | wxClipboard * _arg0; | |
1973 | PyObject * _argo0 = 0; | |
1974 | char *_kwnames[] = { "self", NULL }; | |
1975 | ||
1976 | self = self; | |
077def0b | 1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Open",_kwnames,&_argo0)) |
4120ef2b RD |
1978 | return NULL; |
1979 | if (_argo0) { | |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
1987 | wxPy_BEGIN_ALLOW_THREADS; | |
1988 | _result = (bool )wxClipboard_Open(_arg0); | |
1989 | ||
1990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1991 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
1992 | } _resultobj = Py_BuildValue("i",_result); |
1993 | return _resultobj; | |
1994 | } | |
1995 | ||
1996 | #define wxClipboard_Close(_swigobj) (_swigobj->Close()) | |
1997 | static PyObject *_wrap_wxClipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject * _resultobj; | |
1999 | wxClipboard * _arg0; | |
2000 | PyObject * _argo0 = 0; | |
2001 | char *_kwnames[] = { "self", NULL }; | |
2002 | ||
2003 | self = self; | |
077def0b | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Close",_kwnames,&_argo0)) |
4120ef2b RD |
2005 | return NULL; |
2006 | if (_argo0) { | |
2007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p."); | |
2010 | return NULL; | |
2011 | } | |
2012 | } | |
2013 | { | |
2014 | wxPy_BEGIN_ALLOW_THREADS; | |
2015 | wxClipboard_Close(_arg0); | |
2016 | ||
2017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2018 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2019 | } Py_INCREF(Py_None); |
2020 | _resultobj = Py_None; | |
2021 | return _resultobj; | |
2022 | } | |
2023 | ||
2024 | #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened()) | |
2025 | static PyObject *_wrap_wxClipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2026 | PyObject * _resultobj; | |
2027 | bool _result; | |
2028 | wxClipboard * _arg0; | |
2029 | PyObject * _argo0 = 0; | |
2030 | char *_kwnames[] = { "self", NULL }; | |
2031 | ||
2032 | self = self; | |
077def0b | 2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_IsOpened",_kwnames,&_argo0)) |
4120ef2b RD |
2034 | return NULL; |
2035 | if (_argo0) { | |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p."); | |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
2042 | { | |
2043 | wxPy_BEGIN_ALLOW_THREADS; | |
2044 | _result = (bool )wxClipboard_IsOpened(_arg0); | |
2045 | ||
2046 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2047 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2048 | } _resultobj = Py_BuildValue("i",_result); |
2049 | return _resultobj; | |
2050 | } | |
2051 | ||
2052 | #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0)) | |
2053 | static PyObject *_wrap_wxClipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2054 | PyObject * _resultobj; | |
2055 | bool _result; | |
2056 | wxClipboard * _arg0; | |
2057 | wxDataObject * _arg1; | |
2058 | PyObject * _argo0 = 0; | |
2059 | PyObject * _argo1 = 0; | |
2060 | char *_kwnames[] = { "self","data", NULL }; | |
2061 | ||
2062 | self = self; | |
077def0b | 2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_AddData",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2064 | return NULL; |
2065 | if (_argo0) { | |
2066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p."); | |
2069 | return NULL; | |
2070 | } | |
2071 | } | |
2072 | if (_argo1) { | |
2073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) { | |
2075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p."); | |
2076 | return NULL; | |
2077 | } | |
2078 | } | |
2079 | { | |
2080 | wxPy_BEGIN_ALLOW_THREADS; | |
2081 | _result = (bool )wxClipboard_AddData(_arg0,_arg1); | |
2082 | ||
2083 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2084 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2085 | } _resultobj = Py_BuildValue("i",_result); |
2086 | return _resultobj; | |
2087 | } | |
2088 | ||
2089 | #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
2090 | static PyObject *_wrap_wxClipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2091 | PyObject * _resultobj; | |
2092 | bool _result; | |
2093 | wxClipboard * _arg0; | |
2094 | wxDataObject * _arg1; | |
2095 | PyObject * _argo0 = 0; | |
2096 | PyObject * _argo1 = 0; | |
2097 | char *_kwnames[] = { "self","data", NULL }; | |
2098 | ||
2099 | self = self; | |
077def0b | 2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_SetData",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2101 | return NULL; |
2102 | if (_argo0) { | |
2103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p."); | |
2106 | return NULL; | |
2107 | } | |
2108 | } | |
2109 | if (_argo1) { | |
2110 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2111 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) { | |
2112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p."); | |
2113 | return NULL; | |
2114 | } | |
2115 | } | |
2116 | { | |
2117 | wxPy_BEGIN_ALLOW_THREADS; | |
2118 | _result = (bool )wxClipboard_SetData(_arg0,_arg1); | |
2119 | ||
2120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2121 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2122 | } _resultobj = Py_BuildValue("i",_result); |
2123 | return _resultobj; | |
2124 | } | |
2125 | ||
2126 | #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0)) | |
2127 | static PyObject *_wrap_wxClipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2128 | PyObject * _resultobj; | |
2129 | bool _result; | |
2130 | wxClipboard * _arg0; | |
2131 | wxDataFormat * _arg1; | |
2132 | PyObject * _argo0 = 0; | |
2133 | PyObject * _argo1 = 0; | |
2134 | char *_kwnames[] = { "self","format", NULL }; | |
2135 | ||
2136 | self = self; | |
077def0b | 2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_IsSupported",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2138 | return NULL; |
2139 | if (_argo0) { | |
2140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p."); | |
2143 | return NULL; | |
2144 | } | |
2145 | } | |
2146 | if (_argo1) { | |
2147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) { | |
2149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p."); | |
2150 | return NULL; | |
2151 | } | |
2152 | } | |
2153 | { | |
2154 | wxPy_BEGIN_ALLOW_THREADS; | |
2155 | _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1); | |
2156 | ||
2157 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2158 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2159 | } _resultobj = Py_BuildValue("i",_result); |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
2163 | #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0)) | |
2164 | static PyObject *_wrap_wxClipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2165 | PyObject * _resultobj; | |
2166 | bool _result; | |
2167 | wxClipboard * _arg0; | |
2168 | wxDataObject * _arg1; | |
2169 | PyObject * _argo0 = 0; | |
2170 | PyObject * _argo1 = 0; | |
2171 | char *_kwnames[] = { "self","data", NULL }; | |
2172 | ||
2173 | self = self; | |
077def0b | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_GetData",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2175 | return NULL; |
2176 | if (_argo0) { | |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p."); | |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
2183 | if (_argo1) { | |
2184 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2185 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) { | |
2186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p."); | |
2187 | return NULL; | |
2188 | } | |
2189 | } | |
2190 | { | |
2191 | wxPy_BEGIN_ALLOW_THREADS; | |
2192 | _result = (bool )wxClipboard_GetData(_arg0,*_arg1); | |
2193 | ||
2194 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2195 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2196 | } _resultobj = Py_BuildValue("i",_result); |
2197 | return _resultobj; | |
2198 | } | |
2199 | ||
2200 | #define wxClipboard_Clear(_swigobj) (_swigobj->Clear()) | |
2201 | static PyObject *_wrap_wxClipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2202 | PyObject * _resultobj; | |
2203 | wxClipboard * _arg0; | |
2204 | PyObject * _argo0 = 0; | |
2205 | char *_kwnames[] = { "self", NULL }; | |
2206 | ||
2207 | self = self; | |
077def0b | 2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Clear",_kwnames,&_argo0)) |
4120ef2b RD |
2209 | return NULL; |
2210 | if (_argo0) { | |
2211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p."); | |
2214 | return NULL; | |
2215 | } | |
2216 | } | |
2217 | { | |
2218 | wxPy_BEGIN_ALLOW_THREADS; | |
2219 | wxClipboard_Clear(_arg0); | |
2220 | ||
2221 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2222 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2223 | } Py_INCREF(Py_None); |
2224 | _resultobj = Py_None; | |
2225 | return _resultobj; | |
2226 | } | |
2227 | ||
2228 | #define wxClipboard_Flush(_swigobj) (_swigobj->Flush()) | |
2229 | static PyObject *_wrap_wxClipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject * _resultobj; | |
2231 | bool _result; | |
2232 | wxClipboard * _arg0; | |
2233 | PyObject * _argo0 = 0; | |
2234 | char *_kwnames[] = { "self", NULL }; | |
2235 | ||
2236 | self = self; | |
077def0b | 2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Flush",_kwnames,&_argo0)) |
4120ef2b RD |
2238 | return NULL; |
2239 | if (_argo0) { | |
2240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p."); | |
2243 | return NULL; | |
2244 | } | |
2245 | } | |
2246 | { | |
2247 | wxPy_BEGIN_ALLOW_THREADS; | |
2248 | _result = (bool )wxClipboard_Flush(_arg0); | |
2249 | ||
2250 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2251 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2252 | } _resultobj = Py_BuildValue("i",_result); |
2253 | return _resultobj; | |
2254 | } | |
2255 | ||
2256 | #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0)) | |
2257 | static PyObject *_wrap_wxClipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject * _resultobj; | |
2259 | wxClipboard * _arg0; | |
2260 | int _arg1 = (int ) FALSE; | |
2261 | PyObject * _argo0 = 0; | |
2262 | char *_kwnames[] = { "self","primary", NULL }; | |
2263 | ||
2264 | self = self; | |
077def0b | 2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxClipboard_UsePrimarySelection",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
2266 | return NULL; |
2267 | if (_argo0) { | |
2268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) { | |
2270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p."); | |
2271 | return NULL; | |
2272 | } | |
2273 | } | |
2274 | { | |
2275 | wxPy_BEGIN_ALLOW_THREADS; | |
2276 | wxClipboard_UsePrimarySelection(_arg0,_arg1); | |
2277 | ||
2278 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2279 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2280 | } Py_INCREF(Py_None); |
2281 | _resultobj = Py_None; | |
2282 | return _resultobj; | |
2283 | } | |
2284 | ||
2285 | #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1)) | |
2286 | static PyObject *_wrap_new_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject * _resultobj; | |
2288 | wxPyDropSource * _result; | |
2289 | wxWindow * _arg0 = (wxWindow *) NULL; | |
2290 | wxIcon * _arg1 = (wxIcon *) &wxNullIcon; | |
2291 | PyObject * _argo0 = 0; | |
2292 | PyObject * _argo1 = 0; | |
2293 | char *_kwnames[] = { "win","go", NULL }; | |
2294 | char _ptemp[128]; | |
2295 | ||
2296 | self = self; | |
077def0b | 2297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OO:new_wxDropSource",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2298 | return NULL; |
2299 | if (_argo0) { | |
2300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p."); | |
2303 | return NULL; | |
2304 | } | |
2305 | } | |
2306 | if (_argo1) { | |
2307 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2308 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p."); | |
2310 | return NULL; | |
2311 | } | |
2312 | } | |
2313 | { | |
2314 | wxPy_BEGIN_ALLOW_THREADS; | |
2315 | _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1); | |
2316 | ||
2317 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2318 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2319 | } if (_result) { |
2320 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropSource_p"); | |
2321 | _resultobj = Py_BuildValue("s",_ptemp); | |
2322 | } else { | |
2323 | Py_INCREF(Py_None); | |
2324 | _resultobj = Py_None; | |
2325 | } | |
2326 | return _resultobj; | |
2327 | } | |
2328 | ||
f6bcfd97 | 2329 | #define wxDropSource__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2)) |
4120ef2b RD |
2330 | static PyObject *_wrap_wxDropSource__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
2331 | PyObject * _resultobj; | |
2332 | wxPyDropSource * _arg0; | |
2333 | PyObject * _arg1; | |
f6bcfd97 BP |
2334 | PyObject * _arg2; |
2335 | int _arg3; | |
4120ef2b RD |
2336 | PyObject * _argo0 = 0; |
2337 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
2338 | PyObject * _obj2 = 0; |
2339 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
4120ef2b RD |
2340 | |
2341 | self = self; | |
f6bcfd97 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxDropSource__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
4120ef2b RD |
2343 | return NULL; |
2344 | if (_argo0) { | |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource__setSelf. Expected _wxPyDropSource_p."); | |
2348 | return NULL; | |
2349 | } | |
2350 | } | |
2351 | { | |
2352 | _arg1 = _obj1; | |
2353 | } | |
f6bcfd97 BP |
2354 | { |
2355 | _arg2 = _obj2; | |
2356 | } | |
4120ef2b RD |
2357 | { |
2358 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2359 | wxDropSource__setSelf(_arg0,_arg1,_arg2,_arg3); |
4120ef2b RD |
2360 | |
2361 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2362 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2363 | } Py_INCREF(Py_None); |
2364 | _resultobj = Py_None; | |
2365 | return _resultobj; | |
2366 | } | |
2367 | ||
2368 | #define delete_wxPyDropSource(_swigobj) (delete _swigobj) | |
2369 | static PyObject *_wrap_delete_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject * _resultobj; | |
2371 | wxPyDropSource * _arg0; | |
2372 | PyObject * _argo0 = 0; | |
2373 | char *_kwnames[] = { "self", NULL }; | |
2374 | ||
2375 | self = self; | |
077def0b | 2376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDropSource",_kwnames,&_argo0)) |
4120ef2b RD |
2377 | return NULL; |
2378 | if (_argo0) { | |
2379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p."); | |
2382 | return NULL; | |
2383 | } | |
2384 | } | |
2385 | { | |
2386 | wxPy_BEGIN_ALLOW_THREADS; | |
2387 | delete_wxPyDropSource(_arg0); | |
2388 | ||
2389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2390 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2391 | } Py_INCREF(Py_None); |
2392 | _resultobj = Py_None; | |
2393 | return _resultobj; | |
2394 | } | |
2395 | ||
2396 | #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
2397 | static PyObject *_wrap_wxDropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2398 | PyObject * _resultobj; | |
2399 | wxPyDropSource * _arg0; | |
2400 | wxDataObject * _arg1; | |
2401 | PyObject * _argo0 = 0; | |
2402 | PyObject * _argo1 = 0; | |
2403 | char *_kwnames[] = { "self","data", NULL }; | |
2404 | ||
2405 | self = self; | |
077def0b | 2406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDropSource_SetData",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2407 | return NULL; |
2408 | if (_argo0) { | |
2409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p."); | |
2412 | return NULL; | |
2413 | } | |
2414 | } | |
2415 | if (_argo1) { | |
2416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) { | |
2418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p."); | |
2419 | return NULL; | |
2420 | } | |
2421 | } | |
2422 | { | |
2423 | wxPy_BEGIN_ALLOW_THREADS; | |
2424 | wxDropSource_SetData(_arg0,*_arg1); | |
2425 | ||
2426 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2427 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2428 | } Py_INCREF(Py_None); |
2429 | _resultobj = Py_None; | |
2430 | return _resultobj; | |
2431 | } | |
2432 | ||
2433 | #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject()) | |
2434 | static PyObject *_wrap_wxDropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject * _resultobj; | |
2436 | wxDataObject * _result; | |
2437 | wxPyDropSource * _arg0; | |
2438 | PyObject * _argo0 = 0; | |
2439 | char *_kwnames[] = { "self", NULL }; | |
2440 | char _ptemp[128]; | |
2441 | ||
2442 | self = self; | |
077def0b | 2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDropSource_GetDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
2444 | return NULL; |
2445 | if (_argo0) { | |
2446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p."); | |
2449 | return NULL; | |
2450 | } | |
2451 | } | |
2452 | { | |
2453 | wxPy_BEGIN_ALLOW_THREADS; | |
2454 | _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0); | |
2455 | ||
2456 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2457 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2458 | } if (_result) { |
2459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p"); | |
2460 | _resultobj = Py_BuildValue("s",_ptemp); | |
2461 | } else { | |
2462 | Py_INCREF(Py_None); | |
2463 | _resultobj = Py_None; | |
2464 | } | |
2465 | return _resultobj; | |
2466 | } | |
2467 | ||
2468 | #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1)) | |
2469 | static PyObject *_wrap_wxDropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject * _resultobj; | |
2471 | wxPyDropSource * _arg0; | |
2472 | wxDragResult _arg1; | |
2473 | wxCursor * _arg2; | |
2474 | PyObject * _argo0 = 0; | |
2475 | PyObject * _argo2 = 0; | |
2476 | char *_kwnames[] = { "self","res","cursor", NULL }; | |
2477 | ||
2478 | self = self; | |
077def0b | 2479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxDropSource_SetCursor",_kwnames,&_argo0,&_arg1,&_argo2)) |
4120ef2b RD |
2480 | return NULL; |
2481 | if (_argo0) { | |
2482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p."); | |
2485 | return NULL; | |
2486 | } | |
2487 | } | |
2488 | if (_argo2) { | |
2489 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
2496 | wxPy_BEGIN_ALLOW_THREADS; | |
2497 | wxDropSource_SetCursor(_arg0,_arg1,*_arg2); | |
2498 | ||
2499 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2500 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2501 | } Py_INCREF(Py_None); |
2502 | _resultobj = Py_None; | |
2503 | return _resultobj; | |
2504 | } | |
2505 | ||
2506 | #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0)) | |
2507 | static PyObject *_wrap_wxDropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2508 | PyObject * _resultobj; | |
2509 | wxDragResult _result; | |
2510 | wxPyDropSource * _arg0; | |
2511 | int _arg1 = (int ) FALSE; | |
2512 | PyObject * _argo0 = 0; | |
2513 | char *_kwnames[] = { "self","bAllowMove", NULL }; | |
2514 | ||
2515 | self = self; | |
077def0b | 2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDropSource_DoDragDrop",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
2517 | return NULL; |
2518 | if (_argo0) { | |
2519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p."); | |
2522 | return NULL; | |
2523 | } | |
2524 | } | |
2525 | { | |
2526 | wxPy_BEGIN_ALLOW_THREADS; | |
2527 | _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1); | |
2528 | ||
2529 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2530 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2531 | } _resultobj = Py_BuildValue("i",_result); |
2532 | return _resultobj; | |
2533 | } | |
2534 | ||
2535 | #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0)) | |
2536 | static PyObject *_wrap_wxDropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2537 | PyObject * _resultobj; | |
2538 | bool _result; | |
2539 | wxPyDropSource * _arg0; | |
2540 | wxDragResult _arg1; | |
2541 | PyObject * _argo0 = 0; | |
2542 | char *_kwnames[] = { "self","effect", NULL }; | |
2543 | ||
2544 | self = self; | |
077def0b | 2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDropSource_base_GiveFeedback",_kwnames,&_argo0,&_arg1)) |
4120ef2b RD |
2546 | return NULL; |
2547 | if (_argo0) { | |
2548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) { | |
2550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p."); | |
2551 | return NULL; | |
2552 | } | |
2553 | } | |
2554 | { | |
2555 | wxPy_BEGIN_ALLOW_THREADS; | |
2556 | _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1); | |
2557 | ||
2558 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2559 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2560 | } _resultobj = Py_BuildValue("i",_result); |
2561 | return _resultobj; | |
2562 | } | |
2563 | ||
2564 | static void *SwigwxPyDropTargetTowxDropTarget(void *ptr) { | |
2565 | wxPyDropTarget *src; | |
2566 | wxDropTarget *dest; | |
2567 | src = (wxPyDropTarget *) ptr; | |
2568 | dest = (wxDropTarget *) src; | |
2569 | return (void *) dest; | |
2570 | } | |
2571 | ||
2572 | #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0)) | |
2573 | static PyObject *_wrap_new_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject * _resultobj; | |
2575 | wxPyDropTarget * _result; | |
2576 | wxDataObject * _arg0 = (wxDataObject *) NULL; | |
2577 | PyObject * _argo0 = 0; | |
2578 | char *_kwnames[] = { "dataObject", NULL }; | |
2579 | char _ptemp[128]; | |
2580 | ||
2581 | self = self; | |
077def0b | 2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDropTarget",_kwnames,&_argo0)) |
4120ef2b RD |
2583 | return NULL; |
2584 | if (_argo0) { | |
2585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) { | |
2587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p."); | |
2588 | return NULL; | |
2589 | } | |
2590 | } | |
2591 | { | |
2592 | wxPy_BEGIN_ALLOW_THREADS; | |
2593 | _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0); | |
2594 | ||
2595 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2596 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2597 | } if (_result) { |
2598 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropTarget_p"); | |
2599 | _resultobj = Py_BuildValue("s",_ptemp); | |
2600 | } else { | |
2601 | Py_INCREF(Py_None); | |
2602 | _resultobj = Py_None; | |
2603 | } | |
2604 | return _resultobj; | |
2605 | } | |
2606 | ||
f6bcfd97 | 2607 | #define wxPyDropTarget__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
2608 | static PyObject *_wrap_wxPyDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
2609 | PyObject * _resultobj; | |
2610 | wxPyDropTarget * _arg0; | |
2611 | PyObject * _arg1; | |
f6bcfd97 | 2612 | PyObject * _arg2; |
4120ef2b RD |
2613 | PyObject * _argo0 = 0; |
2614 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
2615 | PyObject * _obj2 = 0; |
2616 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
2617 | |
2618 | self = self; | |
f6bcfd97 | 2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDropTarget__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
2620 | return NULL; |
2621 | if (_argo0) { | |
2622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget__setSelf. Expected _wxPyDropTarget_p."); | |
2625 | return NULL; | |
2626 | } | |
2627 | } | |
2628 | { | |
2629 | _arg1 = _obj1; | |
2630 | } | |
f6bcfd97 BP |
2631 | { |
2632 | _arg2 = _obj2; | |
2633 | } | |
4120ef2b RD |
2634 | { |
2635 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2636 | wxPyDropTarget__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
2637 | |
2638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2639 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2640 | } Py_INCREF(Py_None); |
2641 | _resultobj = Py_None; | |
2642 | return _resultobj; | |
2643 | } | |
2644 | ||
2645 | #define delete_wxPyDropTarget(_swigobj) (delete _swigobj) | |
2646 | static PyObject *_wrap_delete_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2647 | PyObject * _resultobj; | |
2648 | wxPyDropTarget * _arg0; | |
2649 | PyObject * _argo0 = 0; | |
2650 | char *_kwnames[] = { "self", NULL }; | |
2651 | ||
2652 | self = self; | |
077def0b | 2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyDropTarget",_kwnames,&_argo0)) |
4120ef2b RD |
2654 | return NULL; |
2655 | if (_argo0) { | |
2656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p."); | |
2659 | return NULL; | |
2660 | } | |
2661 | } | |
2662 | { | |
2663 | wxPy_BEGIN_ALLOW_THREADS; | |
2664 | delete_wxPyDropTarget(_arg0); | |
2665 | ||
2666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2667 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2668 | } Py_INCREF(Py_None); |
2669 | _resultobj = Py_None; | |
2670 | return _resultobj; | |
2671 | } | |
2672 | ||
2673 | #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject()) | |
2674 | static PyObject *_wrap_wxPyDropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2675 | PyObject * _resultobj; | |
2676 | wxDataObject * _result; | |
2677 | wxPyDropTarget * _arg0; | |
2678 | PyObject * _argo0 = 0; | |
2679 | char *_kwnames[] = { "self", NULL }; | |
2680 | char _ptemp[128]; | |
2681 | ||
2682 | self = self; | |
077def0b | 2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetDataObject",_kwnames,&_argo0)) |
4120ef2b RD |
2684 | return NULL; |
2685 | if (_argo0) { | |
2686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p."); | |
2689 | return NULL; | |
2690 | } | |
2691 | } | |
2692 | { | |
2693 | wxPy_BEGIN_ALLOW_THREADS; | |
2694 | _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0); | |
2695 | ||
2696 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2697 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2698 | } if (_result) { |
2699 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p"); | |
2700 | _resultobj = Py_BuildValue("s",_ptemp); | |
2701 | } else { | |
2702 | Py_INCREF(Py_None); | |
2703 | _resultobj = Py_None; | |
2704 | } | |
2705 | return _resultobj; | |
2706 | } | |
2707 | ||
2708 | #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0)) | |
2709 | static PyObject *_wrap_wxPyDropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | wxPyDropTarget * _arg0; | |
2712 | wxDataObject * _arg1; | |
2713 | PyObject * _argo0 = 0; | |
2714 | PyObject * _argo1 = 0; | |
2715 | char *_kwnames[] = { "self","dataObject", NULL }; | |
2716 | ||
2717 | self = self; | |
077def0b | 2718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDropTarget_SetDataObject",_kwnames,&_argo0,&_argo1)) |
4120ef2b RD |
2719 | return NULL; |
2720 | if (_argo0) { | |
2721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p."); | |
2724 | return NULL; | |
2725 | } | |
2726 | } | |
2727 | if (_argo1) { | |
2728 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2729 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) { | |
2730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p."); | |
2731 | return NULL; | |
2732 | } | |
2733 | } | |
2734 | { | |
2735 | wxPy_BEGIN_ALLOW_THREADS; | |
2736 | wxPyDropTarget_SetDataObject(_arg0,_arg1); | |
2737 | ||
2738 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2739 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2740 | } Py_INCREF(Py_None); |
2741 | _resultobj = Py_None; | |
2742 | return _resultobj; | |
2743 | } | |
2744 | ||
2745 | #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2)) | |
2746 | static PyObject *_wrap_wxPyDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject * _resultobj; | |
2748 | wxDragResult _result; | |
2749 | wxPyDropTarget * _arg0; | |
2750 | wxCoord _arg1; | |
2751 | wxCoord _arg2; | |
2752 | wxDragResult _arg3; | |
2753 | PyObject * _argo0 = 0; | |
2754 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
2755 | ||
2756 | self = self; | |
077def0b | 2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
2758 | return NULL; |
2759 | if (_argo0) { | |
2760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p."); | |
2763 | return NULL; | |
2764 | } | |
2765 | } | |
2766 | { | |
2767 | wxPy_BEGIN_ALLOW_THREADS; | |
2768 | _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3); | |
2769 | ||
2770 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2771 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2772 | } _resultobj = Py_BuildValue("i",_result); |
2773 | return _resultobj; | |
2774 | } | |
2775 | ||
2776 | #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2)) | |
2777 | static PyObject *_wrap_wxPyDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2778 | PyObject * _resultobj; | |
2779 | wxDragResult _result; | |
2780 | wxPyDropTarget * _arg0; | |
2781 | wxCoord _arg1; | |
2782 | wxCoord _arg2; | |
2783 | wxDragResult _arg3; | |
2784 | PyObject * _argo0 = 0; | |
2785 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
2786 | ||
2787 | self = self; | |
077def0b | 2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
2789 | return NULL; |
2790 | if (_argo0) { | |
2791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p."); | |
2794 | return NULL; | |
2795 | } | |
2796 | } | |
2797 | { | |
2798 | wxPy_BEGIN_ALLOW_THREADS; | |
2799 | _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3); | |
2800 | ||
2801 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2802 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2803 | } _resultobj = Py_BuildValue("i",_result); |
2804 | return _resultobj; | |
2805 | } | |
2806 | ||
2807 | #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave()) | |
2808 | static PyObject *_wrap_wxPyDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject * _resultobj; | |
2810 | wxPyDropTarget * _arg0; | |
2811 | PyObject * _argo0 = 0; | |
2812 | char *_kwnames[] = { "self", NULL }; | |
2813 | ||
2814 | self = self; | |
077def0b | 2815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_base_OnLeave",_kwnames,&_argo0)) |
4120ef2b RD |
2816 | return NULL; |
2817 | if (_argo0) { | |
2818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p."); | |
2821 | return NULL; | |
2822 | } | |
2823 | } | |
2824 | { | |
2825 | wxPy_BEGIN_ALLOW_THREADS; | |
2826 | wxPyDropTarget_base_OnLeave(_arg0); | |
2827 | ||
2828 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2829 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2830 | } Py_INCREF(Py_None); |
2831 | _resultobj = Py_None; | |
2832 | return _resultobj; | |
2833 | } | |
2834 | ||
2835 | #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1)) | |
2836 | static PyObject *_wrap_wxPyDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2837 | PyObject * _resultobj; | |
2838 | bool _result; | |
2839 | wxPyDropTarget * _arg0; | |
2840 | wxCoord _arg1; | |
2841 | wxCoord _arg2; | |
2842 | PyObject * _argo0 = 0; | |
2843 | char *_kwnames[] = { "self","x","y", NULL }; | |
2844 | ||
2845 | self = self; | |
077def0b | 2846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2)) |
4120ef2b RD |
2847 | return NULL; |
2848 | if (_argo0) { | |
2849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p."); | |
2852 | return NULL; | |
2853 | } | |
2854 | } | |
2855 | { | |
2856 | wxPy_BEGIN_ALLOW_THREADS; | |
2857 | _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2); | |
2858 | ||
2859 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2860 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2861 | } _resultobj = Py_BuildValue("i",_result); |
2862 | return _resultobj; | |
2863 | } | |
2864 | ||
2865 | #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData()) | |
2866 | static PyObject *_wrap_wxPyDropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2867 | PyObject * _resultobj; | |
2868 | bool _result; | |
2869 | wxPyDropTarget * _arg0; | |
2870 | PyObject * _argo0 = 0; | |
2871 | char *_kwnames[] = { "self", NULL }; | |
2872 | ||
2873 | self = self; | |
077def0b | 2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetData",_kwnames,&_argo0)) |
4120ef2b RD |
2875 | return NULL; |
2876 | if (_argo0) { | |
2877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) { | |
2879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p."); | |
2880 | return NULL; | |
2881 | } | |
2882 | } | |
2883 | { | |
2884 | wxPy_BEGIN_ALLOW_THREADS; | |
2885 | _result = (bool )wxPyDropTarget_GetData(_arg0); | |
2886 | ||
2887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2888 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2889 | } _resultobj = Py_BuildValue("i",_result); |
2890 | return _resultobj; | |
2891 | } | |
2892 | ||
2893 | static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr) { | |
2894 | wxPyTextDropTarget *src; | |
2895 | wxPyDropTarget *dest; | |
2896 | src = (wxPyTextDropTarget *) ptr; | |
2897 | dest = (wxPyDropTarget *) src; | |
2898 | return (void *) dest; | |
2899 | } | |
2900 | ||
2901 | static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr) { | |
2902 | wxPyTextDropTarget *src; | |
2903 | wxDropTarget *dest; | |
2904 | src = (wxPyTextDropTarget *) ptr; | |
2905 | dest = (wxDropTarget *) src; | |
2906 | return (void *) dest; | |
2907 | } | |
2908 | ||
2909 | #define new_wxTextDropTarget() (new wxPyTextDropTarget()) | |
2910 | static PyObject *_wrap_new_wxTextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | wxPyTextDropTarget * _result; | |
2913 | char *_kwnames[] = { NULL }; | |
2914 | char _ptemp[128]; | |
2915 | ||
2916 | self = self; | |
077def0b | 2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTextDropTarget",_kwnames)) |
4120ef2b RD |
2918 | return NULL; |
2919 | { | |
2920 | wxPy_BEGIN_ALLOW_THREADS; | |
2921 | _result = (wxPyTextDropTarget *)new_wxTextDropTarget(); | |
2922 | ||
2923 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2924 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2925 | } if (_result) { |
2926 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDropTarget_p"); | |
2927 | _resultobj = Py_BuildValue("s",_ptemp); | |
2928 | } else { | |
2929 | Py_INCREF(Py_None); | |
2930 | _resultobj = Py_None; | |
2931 | } | |
2932 | return _resultobj; | |
2933 | } | |
2934 | ||
f6bcfd97 | 2935 | #define wxTextDropTarget__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
2936 | static PyObject *_wrap_wxTextDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
2937 | PyObject * _resultobj; | |
2938 | wxPyTextDropTarget * _arg0; | |
2939 | PyObject * _arg1; | |
f6bcfd97 | 2940 | PyObject * _arg2; |
4120ef2b RD |
2941 | PyObject * _argo0 = 0; |
2942 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
2943 | PyObject * _obj2 = 0; |
2944 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
2945 | |
2946 | self = self; | |
f6bcfd97 | 2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextDropTarget__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
2948 | return NULL; |
2949 | if (_argo0) { | |
2950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
2952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget__setSelf. Expected _wxPyTextDropTarget_p."); | |
2953 | return NULL; | |
2954 | } | |
2955 | } | |
2956 | { | |
2957 | _arg1 = _obj1; | |
2958 | } | |
f6bcfd97 BP |
2959 | { |
2960 | _arg2 = _obj2; | |
2961 | } | |
4120ef2b RD |
2962 | { |
2963 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2964 | wxTextDropTarget__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
2965 | |
2966 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2967 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
2968 | } Py_INCREF(Py_None); |
2969 | _resultobj = Py_None; | |
2970 | return _resultobj; | |
2971 | } | |
2972 | ||
2973 | #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2)) | |
2974 | static PyObject *_wrap_wxTextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2975 | PyObject * _resultobj; | |
2976 | wxDragResult _result; | |
2977 | wxPyTextDropTarget * _arg0; | |
2978 | wxCoord _arg1; | |
2979 | wxCoord _arg2; | |
2980 | wxDragResult _arg3; | |
2981 | PyObject * _argo0 = 0; | |
2982 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
2983 | ||
2984 | self = self; | |
077def0b | 2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
2986 | return NULL; |
2987 | if (_argo0) { | |
2988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
2990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p."); | |
2991 | return NULL; | |
2992 | } | |
2993 | } | |
2994 | { | |
2995 | wxPy_BEGIN_ALLOW_THREADS; | |
2996 | _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3); | |
2997 | ||
2998 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2999 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3000 | } _resultobj = Py_BuildValue("i",_result); |
3001 | return _resultobj; | |
3002 | } | |
3003 | ||
3004 | #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2)) | |
3005 | static PyObject *_wrap_wxTextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3006 | PyObject * _resultobj; | |
3007 | wxDragResult _result; | |
3008 | wxPyTextDropTarget * _arg0; | |
3009 | wxCoord _arg1; | |
3010 | wxCoord _arg2; | |
3011 | wxDragResult _arg3; | |
3012 | PyObject * _argo0 = 0; | |
3013 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
3014 | ||
3015 | self = self; | |
077def0b | 3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
3017 | return NULL; |
3018 | if (_argo0) { | |
3019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
3021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p."); | |
3022 | return NULL; | |
3023 | } | |
3024 | } | |
3025 | { | |
3026 | wxPy_BEGIN_ALLOW_THREADS; | |
3027 | _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3); | |
3028 | ||
3029 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3030 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3031 | } _resultobj = Py_BuildValue("i",_result); |
3032 | return _resultobj; | |
3033 | } | |
3034 | ||
3035 | #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave()) | |
3036 | static PyObject *_wrap_wxTextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject * _resultobj; | |
3038 | wxPyTextDropTarget * _arg0; | |
3039 | PyObject * _argo0 = 0; | |
3040 | char *_kwnames[] = { "self", NULL }; | |
3041 | ||
3042 | self = self; | |
077def0b | 3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDropTarget_base_OnLeave",_kwnames,&_argo0)) |
4120ef2b RD |
3044 | return NULL; |
3045 | if (_argo0) { | |
3046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
3048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p."); | |
3049 | return NULL; | |
3050 | } | |
3051 | } | |
3052 | { | |
3053 | wxPy_BEGIN_ALLOW_THREADS; | |
3054 | wxTextDropTarget_base_OnLeave(_arg0); | |
3055 | ||
3056 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3057 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3058 | } Py_INCREF(Py_None); |
3059 | _resultobj = Py_None; | |
3060 | return _resultobj; | |
3061 | } | |
3062 | ||
3063 | #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1)) | |
3064 | static PyObject *_wrap_wxTextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject * _resultobj; | |
3066 | bool _result; | |
3067 | wxPyTextDropTarget * _arg0; | |
3068 | wxCoord _arg1; | |
3069 | wxCoord _arg2; | |
3070 | PyObject * _argo0 = 0; | |
3071 | char *_kwnames[] = { "self","x","y", NULL }; | |
3072 | ||
3073 | self = self; | |
077def0b | 3074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTextDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2)) |
4120ef2b RD |
3075 | return NULL; |
3076 | if (_argo0) { | |
3077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
3079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p."); | |
3080 | return NULL; | |
3081 | } | |
3082 | } | |
3083 | { | |
3084 | wxPy_BEGIN_ALLOW_THREADS; | |
3085 | _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2); | |
3086 | ||
3087 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3088 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3089 | } _resultobj = Py_BuildValue("i",_result); |
3090 | return _resultobj; | |
3091 | } | |
3092 | ||
3093 | #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2)) | |
3094 | static PyObject *_wrap_wxTextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3095 | PyObject * _resultobj; | |
3096 | wxDragResult _result; | |
3097 | wxPyTextDropTarget * _arg0; | |
3098 | wxCoord _arg1; | |
3099 | wxCoord _arg2; | |
3100 | wxDragResult _arg3; | |
3101 | PyObject * _argo0 = 0; | |
3102 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
3103 | ||
3104 | self = self; | |
077def0b | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
3106 | return NULL; |
3107 | if (_argo0) { | |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) { | |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p."); | |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
3114 | { | |
3115 | wxPy_BEGIN_ALLOW_THREADS; | |
3116 | _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3); | |
3117 | ||
3118 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3119 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3120 | } _resultobj = Py_BuildValue("i",_result); |
3121 | return _resultobj; | |
3122 | } | |
3123 | ||
3124 | static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr) { | |
3125 | wxPyFileDropTarget *src; | |
3126 | wxPyDropTarget *dest; | |
3127 | src = (wxPyFileDropTarget *) ptr; | |
3128 | dest = (wxPyDropTarget *) src; | |
3129 | return (void *) dest; | |
3130 | } | |
3131 | ||
3132 | static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr) { | |
3133 | wxPyFileDropTarget *src; | |
3134 | wxDropTarget *dest; | |
3135 | src = (wxPyFileDropTarget *) ptr; | |
3136 | dest = (wxDropTarget *) src; | |
3137 | return (void *) dest; | |
3138 | } | |
3139 | ||
3140 | #define new_wxFileDropTarget() (new wxPyFileDropTarget()) | |
3141 | static PyObject *_wrap_new_wxFileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject * _resultobj; | |
3143 | wxPyFileDropTarget * _result; | |
3144 | char *_kwnames[] = { NULL }; | |
3145 | char _ptemp[128]; | |
3146 | ||
3147 | self = self; | |
077def0b | 3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDropTarget",_kwnames)) |
4120ef2b RD |
3149 | return NULL; |
3150 | { | |
3151 | wxPy_BEGIN_ALLOW_THREADS; | |
3152 | _result = (wxPyFileDropTarget *)new_wxFileDropTarget(); | |
3153 | ||
3154 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3155 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3156 | } if (_result) { |
3157 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileDropTarget_p"); | |
3158 | _resultobj = Py_BuildValue("s",_ptemp); | |
3159 | } else { | |
3160 | Py_INCREF(Py_None); | |
3161 | _resultobj = Py_None; | |
3162 | } | |
3163 | return _resultobj; | |
3164 | } | |
3165 | ||
f6bcfd97 | 3166 | #define wxFileDropTarget__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
4120ef2b RD |
3167 | static PyObject *_wrap_wxFileDropTarget__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { |
3168 | PyObject * _resultobj; | |
3169 | wxPyFileDropTarget * _arg0; | |
3170 | PyObject * _arg1; | |
f6bcfd97 | 3171 | PyObject * _arg2; |
4120ef2b RD |
3172 | PyObject * _argo0 = 0; |
3173 | PyObject * _obj1 = 0; | |
f6bcfd97 BP |
3174 | PyObject * _obj2 = 0; |
3175 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4120ef2b RD |
3176 | |
3177 | self = self; | |
f6bcfd97 | 3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileDropTarget__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
4120ef2b RD |
3179 | return NULL; |
3180 | if (_argo0) { | |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget__setSelf. Expected _wxPyFileDropTarget_p."); | |
3184 | return NULL; | |
3185 | } | |
3186 | } | |
3187 | { | |
3188 | _arg1 = _obj1; | |
3189 | } | |
f6bcfd97 BP |
3190 | { |
3191 | _arg2 = _obj2; | |
3192 | } | |
4120ef2b RD |
3193 | { |
3194 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 3195 | wxFileDropTarget__setSelf(_arg0,_arg1,_arg2); |
4120ef2b RD |
3196 | |
3197 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3198 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3199 | } Py_INCREF(Py_None); |
3200 | _resultobj = Py_None; | |
3201 | return _resultobj; | |
3202 | } | |
3203 | ||
3204 | #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2)) | |
3205 | static PyObject *_wrap_wxFileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject * _resultobj; | |
3207 | wxDragResult _result; | |
3208 | wxPyFileDropTarget * _arg0; | |
3209 | wxCoord _arg1; | |
3210 | wxCoord _arg2; | |
3211 | wxDragResult _arg3; | |
3212 | PyObject * _argo0 = 0; | |
3213 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
3214 | ||
3215 | self = self; | |
077def0b | 3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
3217 | return NULL; |
3218 | if (_argo0) { | |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | { | |
3226 | wxPy_BEGIN_ALLOW_THREADS; | |
3227 | _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3); | |
3228 | ||
3229 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3230 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3231 | } _resultobj = Py_BuildValue("i",_result); |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
3235 | #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2)) | |
3236 | static PyObject *_wrap_wxFileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject * _resultobj; | |
3238 | wxDragResult _result; | |
3239 | wxPyFileDropTarget * _arg0; | |
3240 | wxCoord _arg1; | |
3241 | wxCoord _arg2; | |
3242 | wxDragResult _arg3; | |
3243 | PyObject * _argo0 = 0; | |
3244 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
3245 | ||
3246 | self = self; | |
077def0b | 3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
3248 | return NULL; |
3249 | if (_argo0) { | |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p."); | |
3253 | return NULL; | |
3254 | } | |
3255 | } | |
3256 | { | |
3257 | wxPy_BEGIN_ALLOW_THREADS; | |
3258 | _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3); | |
3259 | ||
3260 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3261 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3262 | } _resultobj = Py_BuildValue("i",_result); |
3263 | return _resultobj; | |
3264 | } | |
3265 | ||
3266 | #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave()) | |
3267 | static PyObject *_wrap_wxFileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3268 | PyObject * _resultobj; | |
3269 | wxPyFileDropTarget * _arg0; | |
3270 | PyObject * _argo0 = 0; | |
3271 | char *_kwnames[] = { "self", NULL }; | |
3272 | ||
3273 | self = self; | |
077def0b | 3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDropTarget_base_OnLeave",_kwnames,&_argo0)) |
4120ef2b RD |
3275 | return NULL; |
3276 | if (_argo0) { | |
3277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p."); | |
3280 | return NULL; | |
3281 | } | |
3282 | } | |
3283 | { | |
3284 | wxPy_BEGIN_ALLOW_THREADS; | |
3285 | wxFileDropTarget_base_OnLeave(_arg0); | |
3286 | ||
3287 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3288 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3289 | } Py_INCREF(Py_None); |
3290 | _resultobj = Py_None; | |
3291 | return _resultobj; | |
3292 | } | |
3293 | ||
3294 | #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1)) | |
3295 | static PyObject *_wrap_wxFileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject * _resultobj; | |
3297 | bool _result; | |
3298 | wxPyFileDropTarget * _arg0; | |
3299 | wxCoord _arg1; | |
3300 | wxCoord _arg2; | |
3301 | PyObject * _argo0 = 0; | |
3302 | char *_kwnames[] = { "self","x","y", NULL }; | |
3303 | ||
3304 | self = self; | |
077def0b | 3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFileDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2)) |
4120ef2b RD |
3306 | return NULL; |
3307 | if (_argo0) { | |
3308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p."); | |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
3314 | { | |
3315 | wxPy_BEGIN_ALLOW_THREADS; | |
3316 | _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2); | |
3317 | ||
3318 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3319 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3320 | } _resultobj = Py_BuildValue("i",_result); |
3321 | return _resultobj; | |
3322 | } | |
3323 | ||
3324 | #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2)) | |
3325 | static PyObject *_wrap_wxFileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3326 | PyObject * _resultobj; | |
3327 | wxDragResult _result; | |
3328 | wxPyFileDropTarget * _arg0; | |
3329 | wxCoord _arg1; | |
3330 | wxCoord _arg2; | |
3331 | wxDragResult _arg3; | |
3332 | PyObject * _argo0 = 0; | |
3333 | char *_kwnames[] = { "self","x","y","def", NULL }; | |
3334 | ||
3335 | self = self; | |
077def0b | 3336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
4120ef2b RD |
3337 | return NULL; |
3338 | if (_argo0) { | |
3339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) { | |
3341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p."); | |
3342 | return NULL; | |
3343 | } | |
3344 | } | |
3345 | { | |
3346 | wxPy_BEGIN_ALLOW_THREADS; | |
3347 | _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3); | |
3348 | ||
3349 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3350 | if (PyErr_Occurred()) return NULL; |
4120ef2b RD |
3351 | } _resultobj = Py_BuildValue("i",_result); |
3352 | return _resultobj; | |
3353 | } | |
3354 | ||
3355 | static PyMethodDef clip_dndcMethods[] = { | |
3356 | { "wxFileDropTarget_base_OnData", (PyCFunction) _wrap_wxFileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
3357 | { "wxFileDropTarget_base_OnDrop", (PyCFunction) _wrap_wxFileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
3358 | { "wxFileDropTarget_base_OnLeave", (PyCFunction) _wrap_wxFileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
3359 | { "wxFileDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxFileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
3360 | { "wxFileDropTarget_base_OnEnter", (PyCFunction) _wrap_wxFileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
3361 | { "wxFileDropTarget__setSelf", (PyCFunction) _wrap_wxFileDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3362 | { "new_wxFileDropTarget", (PyCFunction) _wrap_new_wxFileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
3363 | { "wxTextDropTarget_base_OnData", (PyCFunction) _wrap_wxTextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
3364 | { "wxTextDropTarget_base_OnDrop", (PyCFunction) _wrap_wxTextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
3365 | { "wxTextDropTarget_base_OnLeave", (PyCFunction) _wrap_wxTextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
3366 | { "wxTextDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxTextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
3367 | { "wxTextDropTarget_base_OnEnter", (PyCFunction) _wrap_wxTextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
3368 | { "wxTextDropTarget__setSelf", (PyCFunction) _wrap_wxTextDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3369 | { "new_wxTextDropTarget", (PyCFunction) _wrap_new_wxTextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
3370 | { "wxPyDropTarget_GetData", (PyCFunction) _wrap_wxPyDropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
3371 | { "wxPyDropTarget_base_OnDrop", (PyCFunction) _wrap_wxPyDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
3372 | { "wxPyDropTarget_base_OnLeave", (PyCFunction) _wrap_wxPyDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
3373 | { "wxPyDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxPyDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
3374 | { "wxPyDropTarget_base_OnEnter", (PyCFunction) _wrap_wxPyDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
3375 | { "wxPyDropTarget_SetDataObject", (PyCFunction) _wrap_wxPyDropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3376 | { "wxPyDropTarget_GetDataObject", (PyCFunction) _wrap_wxPyDropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3377 | { "delete_wxPyDropTarget", (PyCFunction) _wrap_delete_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
3378 | { "wxPyDropTarget__setSelf", (PyCFunction) _wrap_wxPyDropTarget__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3379 | { "new_wxPyDropTarget", (PyCFunction) _wrap_new_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
3380 | { "wxDropSource_base_GiveFeedback", (PyCFunction) _wrap_wxDropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
3381 | { "wxDropSource_DoDragDrop", (PyCFunction) _wrap_wxDropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
3382 | { "wxDropSource_SetCursor", (PyCFunction) _wrap_wxDropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
3383 | { "wxDropSource_GetDataObject", (PyCFunction) _wrap_wxDropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3384 | { "wxDropSource_SetData", (PyCFunction) _wrap_wxDropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
3385 | { "delete_wxDropSource", (PyCFunction) _wrap_delete_wxDropSource, METH_VARARGS | METH_KEYWORDS }, | |
3386 | { "wxDropSource__setSelf", (PyCFunction) _wrap_wxDropSource__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3387 | { "new_wxDropSource", (PyCFunction) _wrap_new_wxDropSource, METH_VARARGS | METH_KEYWORDS }, | |
3388 | { "wxClipboard_UsePrimarySelection", (PyCFunction) _wrap_wxClipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
3389 | { "wxClipboard_Flush", (PyCFunction) _wrap_wxClipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
3390 | { "wxClipboard_Clear", (PyCFunction) _wrap_wxClipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
3391 | { "wxClipboard_GetData", (PyCFunction) _wrap_wxClipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
3392 | { "wxClipboard_IsSupported", (PyCFunction) _wrap_wxClipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
3393 | { "wxClipboard_SetData", (PyCFunction) _wrap_wxClipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
3394 | { "wxClipboard_AddData", (PyCFunction) _wrap_wxClipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
3395 | { "wxClipboard_IsOpened", (PyCFunction) _wrap_wxClipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
3396 | { "wxClipboard_Close", (PyCFunction) _wrap_wxClipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
3397 | { "wxClipboard_Open", (PyCFunction) _wrap_wxClipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
3398 | { "new_wxClipboard", (PyCFunction) _wrap_new_wxClipboard, METH_VARARGS | METH_KEYWORDS }, | |
3399 | { "wxCustomDataObject_GetData", (PyCFunction) _wrap_wxCustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
3400 | { "wxCustomDataObject_GetSize", (PyCFunction) _wrap_wxCustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
3401 | { "wxCustomDataObject_SetData", (PyCFunction) _wrap_wxCustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
3402 | { "wxCustomDataObject_TakeData", (PyCFunction) _wrap_wxCustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
3403 | { "new_wxCustomDataObject", (PyCFunction) _wrap_new_wxCustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3404 | { "wxFileDataObject_GetFilenames", (PyCFunction) _wrap_wxFileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
3405 | { "new_wxFileDataObject", (PyCFunction) _wrap_new_wxFileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3406 | { "wxPyBitmapDataObject__setSelf", (PyCFunction) _wrap_wxPyBitmapDataObject__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3407 | { "new_wxPyBitmapDataObject", (PyCFunction) _wrap_new_wxPyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3408 | { "wxBitmapDataObject_SetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
3409 | { "wxBitmapDataObject_GetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
3410 | { "new_wxBitmapDataObject", (PyCFunction) _wrap_new_wxBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3411 | { "wxPyTextDataObject__setSelf", (PyCFunction) _wrap_wxPyTextDataObject__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3412 | { "new_wxPyTextDataObject", (PyCFunction) _wrap_new_wxPyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3413 | { "wxTextDataObject_SetText", (PyCFunction) _wrap_wxTextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
3414 | { "wxTextDataObject_GetText", (PyCFunction) _wrap_wxTextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
3415 | { "wxTextDataObject_GetTextLength", (PyCFunction) _wrap_wxTextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
3416 | { "new_wxTextDataObject", (PyCFunction) _wrap_new_wxTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3417 | { "wxDataObjectComposite_Add", (PyCFunction) _wrap_wxDataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
3418 | { "new_wxDataObjectComposite", (PyCFunction) _wrap_new_wxDataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
3419 | { "wxPyDataObjectSimple__setSelf", (PyCFunction) _wrap_wxPyDataObjectSimple__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
3420 | { "new_wxPyDataObjectSimple", (PyCFunction) _wrap_new_wxPyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
3421 | { "wxDataObjectSimple_SetFormat", (PyCFunction) _wrap_wxDataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
3422 | { "wxDataObjectSimple_GetFormat", (PyCFunction) _wrap_wxDataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
3423 | { "new_wxDataObjectSimple", (PyCFunction) _wrap_new_wxDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
3424 | { "wxDataObject_IsSupportedFormat", (PyCFunction) _wrap_wxDataObject_IsSupportedFormat, METH_VARARGS | METH_KEYWORDS }, | |
3425 | { "wxDataObject_SetData", (PyCFunction) _wrap_wxDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
3426 | { "wxDataObject_GetDataHere", (PyCFunction) _wrap_wxDataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
3427 | { "wxDataObject_GetDataSize", (PyCFunction) _wrap_wxDataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
3428 | { "wxDataObject_GetAllFormats", (PyCFunction) _wrap_wxDataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
3429 | { "wxDataObject_GetFormatCount", (PyCFunction) _wrap_wxDataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
3430 | { "wxDataObject_GetPreferredFormat", (PyCFunction) _wrap_wxDataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
3431 | { "delete_wxDataObject", (PyCFunction) _wrap_delete_wxDataObject, METH_VARARGS | METH_KEYWORDS }, | |
3432 | { "wxDataFormat_SetId", (PyCFunction) _wrap_wxDataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
3433 | { "wxDataFormat_GetId", (PyCFunction) _wrap_wxDataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
3434 | { "wxDataFormat_GetType", (PyCFunction) _wrap_wxDataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
3435 | { "wxDataFormat_SetType", (PyCFunction) _wrap_wxDataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
3436 | { "delete_wxDataFormat", (PyCFunction) _wrap_delete_wxDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
3437 | { "new_wxDataFormat", (PyCFunction) _wrap_new_wxDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
3438 | { "wxIsDragResultOk", (PyCFunction) _wrap_wxIsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
3439 | { "wxCustomDataFormat", (PyCFunction) _wrap_wxCustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
3440 | { NULL, NULL } | |
3441 | }; | |
3442 | #ifdef __cplusplus | |
3443 | } | |
3444 | #endif | |
3445 | /* | |
3446 | * This table is used by the pointer type-checker | |
3447 | */ | |
3448 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
4120ef2b | 3449 | { "_signed_long","_long",0}, |
4120ef2b RD |
3450 | { "_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject}, |
3451 | { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject}, | |
4120ef2b RD |
3452 | { "_wxPrintQuality","_wxCoord",0}, |
3453 | { "_wxPrintQuality","_int",0}, | |
3454 | { "_wxPrintQuality","_signed_int",0}, | |
3455 | { "_wxPrintQuality","_unsigned_int",0}, | |
3456 | { "_wxPrintQuality","_wxWindowID",0}, | |
3457 | { "_wxPrintQuality","_uint",0}, | |
3458 | { "_wxPrintQuality","_EBool",0}, | |
3459 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 3460 | { "_wxPrintQuality","_time_t",0}, |
4120ef2b RD |
3461 | { "_byte","_unsigned_char",0}, |
3462 | { "_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject}, | |
3463 | { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject}, | |
3464 | { "_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject}, | |
3465 | { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject}, | |
3466 | { "_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject}, | |
3467 | { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject}, | |
3468 | { "_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject}, | |
3469 | { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject}, | |
3470 | { "_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject}, | |
3471 | { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject}, | |
3472 | { "_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject}, | |
3473 | { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject}, | |
3474 | { "_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject}, | |
3475 | { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject}, | |
3476 | { "_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject}, | |
3477 | { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject}, | |
3478 | { "_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject}, | |
3479 | { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject}, | |
4120ef2b RD |
3480 | { "_long","_unsigned_long",0}, |
3481 | { "_long","_signed_long",0}, | |
4120ef2b RD |
3482 | { "_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple}, |
3483 | { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple}, | |
3484 | { "_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple}, | |
3485 | { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple}, | |
3486 | { "_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple}, | |
3487 | { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple}, | |
3488 | { "_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple}, | |
3489 | { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple}, | |
3490 | { "_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple}, | |
3491 | { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple}, | |
3492 | { "_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple}, | |
3493 | { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple}, | |
3494 | { "_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple}, | |
3495 | { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple}, | |
4120ef2b RD |
3496 | { "_class_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject}, |
3497 | { "_class_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject}, | |
9df61a29 RD |
3498 | { "_class_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject}, |
3499 | { "_class_wxObject","_wxClipboard",SwigwxClipboardTowxObject}, | |
4120ef2b RD |
3500 | { "_size_t","_wxCoord",0}, |
3501 | { "_size_t","_wxPrintQuality",0}, | |
c368d904 | 3502 | { "_size_t","_time_t",0}, |
4120ef2b RD |
3503 | { "_size_t","_unsigned_int",0}, |
3504 | { "_size_t","_int",0}, | |
3505 | { "_size_t","_wxWindowID",0}, | |
3506 | { "_size_t","_uint",0}, | |
4120ef2b RD |
3507 | { "_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject}, |
3508 | { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject}, | |
4120ef2b RD |
3509 | { "_class_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject}, |
3510 | { "_class_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject}, | |
3511 | { "_class_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject}, | |
3512 | { "_class_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject}, | |
3513 | { "_class_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject}, | |
3514 | { "_class_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject}, | |
3515 | { "_class_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject}, | |
3516 | { "_class_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject}, | |
3517 | { "_class_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject}, | |
3518 | { "_class_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject}, | |
3519 | { "_class_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject}, | |
3520 | { "_class_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject}, | |
3521 | { "_class_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject}, | |
3522 | { "_class_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject}, | |
3523 | { "_class_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject}, | |
3524 | { "_class_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject}, | |
3525 | { "_class_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject}, | |
3526 | { "_class_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject}, | |
4120ef2b RD |
3527 | { "_class_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple}, |
3528 | { "_class_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple}, | |
3529 | { "_class_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple}, | |
3530 | { "_class_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple}, | |
3531 | { "_class_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple}, | |
3532 | { "_class_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple}, | |
3533 | { "_class_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple}, | |
3534 | { "_class_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple}, | |
3535 | { "_class_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple}, | |
3536 | { "_class_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple}, | |
3537 | { "_class_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple}, | |
3538 | { "_class_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple}, | |
3539 | { "_class_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple}, | |
3540 | { "_class_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple}, | |
4120ef2b RD |
3541 | { "_uint","_wxCoord",0}, |
3542 | { "_uint","_wxPrintQuality",0}, | |
c368d904 | 3543 | { "_uint","_time_t",0}, |
4120ef2b RD |
3544 | { "_uint","_size_t",0}, |
3545 | { "_uint","_unsigned_int",0}, | |
3546 | { "_uint","_int",0}, | |
3547 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 3548 | { "_wxChar","_char",0}, |
f6bcfd97 | 3549 | { "_char","_wxChar",0}, |
059a841c | 3550 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b RD |
3551 | { "_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget}, |
3552 | { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget}, | |
3553 | { "_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget}, | |
3554 | { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget}, | |
3555 | { "_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget}, | |
3556 | { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget}, | |
4120ef2b RD |
3557 | { "_EBool","_wxCoord",0}, |
3558 | { "_EBool","_wxPrintQuality",0}, | |
3559 | { "_EBool","_signed_int",0}, | |
3560 | { "_EBool","_int",0}, | |
3561 | { "_EBool","_wxWindowID",0}, | |
4120ef2b RD |
3562 | { "_class_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget}, |
3563 | { "_class_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget}, | |
3564 | { "_class_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget}, | |
3565 | { "_class_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget}, | |
4120ef2b | 3566 | { "_unsigned_long","_long",0}, |
059a841c | 3567 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b RD |
3568 | { "_signed_int","_wxCoord",0}, |
3569 | { "_signed_int","_wxPrintQuality",0}, | |
3570 | { "_signed_int","_EBool",0}, | |
3571 | { "_signed_int","_wxWindowID",0}, | |
3572 | { "_signed_int","_int",0}, | |
4120ef2b RD |
3573 | { "_class_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject}, |
3574 | { "_class_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject}, | |
4120ef2b RD |
3575 | { "_WXTYPE","_short",0}, |
3576 | { "_WXTYPE","_signed_short",0}, | |
3577 | { "_WXTYPE","_unsigned_short",0}, | |
3578 | { "_class_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget}, | |
3579 | { "_class_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget}, | |
3580 | { "_class_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget}, | |
3581 | { "_class_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget}, | |
3582 | { "_class_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget}, | |
3583 | { "_class_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget}, | |
4120ef2b RD |
3584 | { "_unsigned_short","_WXTYPE",0}, |
3585 | { "_unsigned_short","_short",0}, | |
9df61a29 RD |
3586 | { "_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject}, |
3587 | { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject}, | |
4120ef2b RD |
3588 | { "_signed_short","_WXTYPE",0}, |
3589 | { "_signed_short","_short",0}, | |
4120ef2b RD |
3590 | { "_unsigned_char","_byte",0}, |
3591 | { "_unsigned_int","_wxCoord",0}, | |
3592 | { "_unsigned_int","_wxPrintQuality",0}, | |
c368d904 | 3593 | { "_unsigned_int","_time_t",0}, |
4120ef2b RD |
3594 | { "_unsigned_int","_size_t",0}, |
3595 | { "_unsigned_int","_uint",0}, | |
3596 | { "_unsigned_int","_wxWindowID",0}, | |
3597 | { "_unsigned_int","_int",0}, | |
4120ef2b RD |
3598 | { "_short","_WXTYPE",0}, |
3599 | { "_short","_unsigned_short",0}, | |
3600 | { "_short","_signed_short",0}, | |
4120ef2b RD |
3601 | { "_wxWindowID","_wxCoord",0}, |
3602 | { "_wxWindowID","_wxPrintQuality",0}, | |
c368d904 | 3603 | { "_wxWindowID","_time_t",0}, |
4120ef2b RD |
3604 | { "_wxWindowID","_size_t",0}, |
3605 | { "_wxWindowID","_EBool",0}, | |
3606 | { "_wxWindowID","_uint",0}, | |
3607 | { "_wxWindowID","_int",0}, | |
3608 | { "_wxWindowID","_signed_int",0}, | |
3609 | { "_wxWindowID","_unsigned_int",0}, | |
3610 | { "_int","_wxCoord",0}, | |
3611 | { "_int","_wxPrintQuality",0}, | |
c368d904 | 3612 | { "_int","_time_t",0}, |
4120ef2b RD |
3613 | { "_int","_size_t",0}, |
3614 | { "_int","_EBool",0}, | |
3615 | { "_int","_uint",0}, | |
3616 | { "_int","_wxWindowID",0}, | |
3617 | { "_int","_unsigned_int",0}, | |
3618 | { "_int","_signed_int",0}, | |
c368d904 RD |
3619 | { "_time_t","_wxCoord",0}, |
3620 | { "_time_t","_wxPrintQuality",0}, | |
3621 | { "_time_t","_unsigned_int",0}, | |
3622 | { "_time_t","_int",0}, | |
3623 | { "_time_t","_wxWindowID",0}, | |
3624 | { "_time_t","_uint",0}, | |
3625 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
3626 | { "_wxCoord","_int",0}, |
3627 | { "_wxCoord","_signed_int",0}, | |
3628 | { "_wxCoord","_unsigned_int",0}, | |
3629 | { "_wxCoord","_wxWindowID",0}, | |
3630 | { "_wxCoord","_uint",0}, | |
3631 | { "_wxCoord","_EBool",0}, | |
3632 | { "_wxCoord","_size_t",0}, | |
c368d904 | 3633 | { "_wxCoord","_time_t",0}, |
4120ef2b | 3634 | { "_wxCoord","_wxPrintQuality",0}, |
4120ef2b RD |
3635 | { "_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget}, |
3636 | { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget}, | |
3637 | { "_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget}, | |
3638 | { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget}, | |
4120ef2b RD |
3639 | {0,0,0}}; |
3640 | ||
3641 | static PyObject *SWIG_globals; | |
3642 | #ifdef __cplusplus | |
077def0b | 3643 | extern "C" |
4120ef2b RD |
3644 | #endif |
3645 | SWIGEXPORT(void) initclip_dndc() { | |
3646 | PyObject *m, *d; | |
3647 | SWIG_globals = SWIG_newvarlink(); | |
3648 | m = Py_InitModule("clip_dndc", clip_dndcMethods); | |
3649 | d = PyModule_GetDict(m); | |
3650 | PyDict_SetItemString(d,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID)); | |
3651 | PyDict_SetItemString(d,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT)); | |
3652 | PyDict_SetItemString(d,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP)); | |
3653 | PyDict_SetItemString(d,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE)); | |
3654 | PyDict_SetItemString(d,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK)); | |
3655 | PyDict_SetItemString(d,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF)); | |
3656 | PyDict_SetItemString(d,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF)); | |
3657 | PyDict_SetItemString(d,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT)); | |
3658 | PyDict_SetItemString(d,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB)); | |
3659 | PyDict_SetItemString(d,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE)); | |
3660 | PyDict_SetItemString(d,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA)); | |
3661 | PyDict_SetItemString(d,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF)); | |
3662 | PyDict_SetItemString(d,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE)); | |
3663 | PyDict_SetItemString(d,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT)); | |
3664 | PyDict_SetItemString(d,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE)); | |
3665 | PyDict_SetItemString(d,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME)); | |
3666 | PyDict_SetItemString(d,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE)); | |
3667 | PyDict_SetItemString(d,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE)); | |
3668 | PyDict_SetItemString(d,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX)); | |
3669 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
3670 | SWIG_addvarlink(SWIG_globals,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get, _wrap_wxPyFormatInvalid_set); | |
3671 | SWIG_addvarlink(SWIG_globals,"wxTheClipboard",_wrap_wxPyTheClipboard_get, _wrap_wxPyTheClipboard_set); | |
3672 | PyDict_SetItemString(d,"wxDragError", PyInt_FromLong((long) wxDragError)); | |
3673 | PyDict_SetItemString(d,"wxDragNone", PyInt_FromLong((long) wxDragNone)); | |
3674 | PyDict_SetItemString(d,"wxDragCopy", PyInt_FromLong((long) wxDragCopy)); | |
3675 | PyDict_SetItemString(d,"wxDragMove", PyInt_FromLong((long) wxDragMove)); | |
3676 | PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel)); | |
3677 | ||
3678 | ||
3679 | wxPyTheClipboard = wxTheClipboard; | |
9df61a29 RD |
3680 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); |
3681 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
3682 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
4120ef2b RD |
3683 | PyDict_SetItemString(d,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get)); |
3684 | PyDict_SetItemString(d,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set)); | |
3685 | PyDict_SetItemString(d,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both)); | |
3686 | { | |
3687 | int i; | |
3688 | for (i = 0; _swig_mapping[i].n1; i++) | |
3689 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
3690 | } | |
3691 | } |