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