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