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