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