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