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