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