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