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