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