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