2 * FILE : src/gtk/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initclip_dndc
55 #define SWIG_name "clip_dndc"
58 #include <wx/dataobj.h>
59 #include <wx/clipbrd.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 // Put some wx default wxChar* values into wxStrings.
90 static const wxString
wxPyEmptyString(wxT(""));
91 // An alternate constructor...
92 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
93 return new wxDataFormat(id
);
96 wxDataFormat wxPyFormatInvalid
;
97 // Create a new class for wxPython to use
98 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
100 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
101 : wxDataObjectSimple(format
) {}
103 DEC_PYCALLBACK_SIZET_(GetDataSize
);
104 bool GetDataHere(void *buf
);
105 bool SetData(size_t len
, const void *buf
);
109 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
111 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
112 // We need to get the data for this object and write it to buf. I think
113 // the best way to do this for wxPython is to have the Python method
114 // return either a string or None and then act appropriately with the
118 wxPyBeginBlockThreads();
119 if (m_myInst
.findCallback("GetDataHere")) {
121 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
123 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
125 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
129 wxPyEndBlockThreads();
133 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
134 // For this one we simply need to make a string from buf and len
135 // and send it to the Python method.
137 wxPyBeginBlockThreads();
138 if (m_myInst
.findCallback("SetData")) {
139 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
140 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
143 wxPyEndBlockThreads();
146 // Create a new class for wxPython to use
147 class wxPyTextDataObject
: public wxTextDataObject
{
149 wxPyTextDataObject(const wxString
& text
= wxPyEmptyString
)
150 : wxTextDataObject(text
) {}
152 DEC_PYCALLBACK_SIZET_(GetTextLength
);
153 DEC_PYCALLBACK_STRING_(GetText
);
154 DEC_PYCALLBACK__STRING(SetText
);
158 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
159 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
160 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
162 // Create a new class for wxPython to use
163 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
165 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
166 : wxBitmapDataObject(bitmap
) {}
168 wxBitmap
GetBitmap();
169 void SetBitmap(const wxBitmap
& bitmap
);
173 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
174 wxBitmap
* rval
= &wxNullBitmap
;
175 wxPyBeginBlockThreads();
176 if (m_myInst
.findCallback("GetBitmap")) {
179 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
181 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
186 wxPyEndBlockThreads();
190 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
191 wxPyBeginBlockThreads();
192 if (m_myInst
.findCallback("SetBitmap")) {
193 PyObject
* bo
= wxPyConstructObject((void*)&bitmap
, wxT("wxBitmap"));
194 m_myInst
.callCallback(Py_BuildValue("(O)", bo
));
197 wxPyEndBlockThreads();
199 extern wxClipboard
* wxTheClipboard
;
201 class wxPyDropSource
: public wxDropSource
{
204 wxPyDropSource(wxWindow
*win
= NULL
,
205 const wxCursor
©
= wxNullCursor
,
206 const wxCursor
&move
= wxNullCursor
,
207 const wxCursor
&none
= wxNullCursor
)
208 : wxDropSource(win
, copy
, move
, none
) {}
210 wxPyDropSource(wxWindow
*win
= NULL
,
211 const wxIcon
& copy
= wxNullIcon
,
212 const wxIcon
& move
= wxNullIcon
,
213 const wxIcon
& none
= wxNullIcon
)
214 : wxDropSource(win
, copy
, move
, none
) {}
216 ~wxPyDropSource() { }
218 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
222 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
225 class wxPyDropTarget
: public wxDropTarget
{
227 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
228 : wxDropTarget(dataObject
) {}
230 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
231 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
233 DEC_PYCALLBACK__(OnLeave
);
234 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
235 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
236 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
237 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
242 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
243 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
245 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
246 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
247 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
248 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
249 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
252 class wxPyTextDropTarget
: public wxTextDropTarget
{
254 wxPyTextDropTarget() {}
256 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
258 DEC_PYCALLBACK__(OnLeave
);
259 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
260 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
261 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
262 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
267 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
268 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
269 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
270 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
271 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
272 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
275 class wxPyFileDropTarget
: public wxFileDropTarget
{
277 wxPyFileDropTarget() {}
279 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
281 DEC_PYCALLBACK__(OnLeave
);
282 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
283 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
284 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
285 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
290 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
291 const wxArrayString
& filenames
) {
293 wxPyBeginBlockThreads();
294 if (m_myInst
.findCallback("OnDropFiles")) {
295 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
296 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
299 wxPyEndBlockThreads();
305 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
306 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
307 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
308 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
309 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
314 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
316 wxDataFormat
* _result
;
318 PyObject
* _obj0
= 0;
319 char *_kwnames
[] = { "id", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
326 _arg0
= wxString_in_helper(_obj0
);
331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
332 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
334 wxPyEndAllowThreads(__tstate
);
335 if (PyErr_Occurred()) return NULL
;
337 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
338 _resultobj
= Py_BuildValue("s",_ptemp
);
341 _resultobj
= Py_None
;
350 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
352 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
356 static PyObject
*_wrap_wxPyFormatInvalid_get() {
360 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
361 pyobj
= PyString_FromString(ptemp
);
365 static int _wrap_wxTheClipboard_set(PyObject
*val
) {
367 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
371 static PyObject
*_wrap_wxTheClipboard_get() {
375 SWIG_MakePtr(ptemp
, (char *) wxTheClipboard
,"_wxClipboard_p");
376 pyobj
= PyString_FromString(ptemp
);
380 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
381 PyObject
* _resultobj
;
384 char *_kwnames
[] = { "res", NULL
};
387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
391 _result
= (bool )wxIsDragResultOk(_arg0
);
393 wxPyEndAllowThreads(__tstate
);
394 if (PyErr_Occurred()) return NULL
;
395 } _resultobj
= Py_BuildValue("i",_result
);
399 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
400 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
401 PyObject
* _resultobj
;
402 wxDataFormat
* _result
;
403 wxDataFormatId _arg0
;
404 char *_kwnames
[] = { "type", NULL
};
408 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
412 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
414 wxPyEndAllowThreads(__tstate
);
415 if (PyErr_Occurred()) return NULL
;
417 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
418 _resultobj
= Py_BuildValue("s",_ptemp
);
421 _resultobj
= Py_None
;
426 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
427 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
428 PyObject
* _resultobj
;
429 wxDataFormat
* _arg0
;
430 PyObject
* _argo0
= 0;
431 char *_kwnames
[] = { "self", NULL
};
434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
445 delete_wxDataFormat(_arg0
);
447 wxPyEndAllowThreads(__tstate
);
448 if (PyErr_Occurred()) return NULL
;
449 } Py_INCREF(Py_None
);
450 _resultobj
= Py_None
;
454 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
455 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
457 wxDataFormat
* _arg0
;
458 wxDataFormatId _arg1
;
459 PyObject
* _argo0
= 0;
460 char *_kwnames
[] = { "self","format", NULL
};
463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
474 wxDataFormat_SetType(_arg0
,_arg1
);
476 wxPyEndAllowThreads(__tstate
);
477 if (PyErr_Occurred()) return NULL
;
478 } Py_INCREF(Py_None
);
479 _resultobj
= Py_None
;
483 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
484 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxDataFormatId _result
;
487 wxDataFormat
* _arg0
;
488 PyObject
* _argo0
= 0;
489 char *_kwnames
[] = { "self", NULL
};
492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
503 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
505 wxPyEndAllowThreads(__tstate
);
506 if (PyErr_Occurred()) return NULL
;
507 } _resultobj
= Py_BuildValue("i",_result
);
511 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
512 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
515 wxDataFormat
* _arg0
;
516 PyObject
* _argo0
= 0;
517 char *_kwnames
[] = { "self", NULL
};
520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
531 _result
= new wxString (wxDataFormat_GetId(_arg0
));
533 wxPyEndAllowThreads(__tstate
);
534 if (PyErr_Occurred()) return NULL
;
537 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
539 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
548 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
549 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
550 PyObject
* _resultobj
;
551 wxDataFormat
* _arg0
;
553 PyObject
* _argo0
= 0;
554 PyObject
* _obj1
= 0;
555 char *_kwnames
[] = { "self","format", NULL
};
558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
561 if (_argo0
== Py_None
) { _arg0
= NULL
; }
562 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
563 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
568 _arg1
= wxString_in_helper(_obj1
);
573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
574 wxDataFormat_SetId(_arg0
,*_arg1
);
576 wxPyEndAllowThreads(__tstate
);
577 if (PyErr_Occurred()) return NULL
;
578 } Py_INCREF(Py_None
);
579 _resultobj
= Py_None
;
587 #define delete_wxDataObject(_swigobj) (delete _swigobj)
588 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
589 PyObject
* _resultobj
;
590 wxDataObject
* _arg0
;
591 PyObject
* _argo0
= 0;
592 char *_kwnames
[] = { "self", NULL
};
595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
606 delete_wxDataObject(_arg0
);
608 wxPyEndAllowThreads(__tstate
);
609 if (PyErr_Occurred()) return NULL
;
610 } Py_INCREF(Py_None
);
611 _resultobj
= Py_None
;
615 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
616 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
617 PyObject
* _resultobj
;
618 wxDataFormat
* _result
;
619 wxDataObject
* _arg0
;
620 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
621 PyObject
* _argo0
= 0;
622 char *_kwnames
[] = { "self","dir", NULL
};
626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
636 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
637 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
639 wxPyEndAllowThreads(__tstate
);
640 if (PyErr_Occurred()) return NULL
;
641 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
642 _resultobj
= Py_BuildValue("s",_ptemp
);
646 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
647 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
648 PyObject
* _resultobj
;
650 wxDataObject
* _arg0
;
651 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
652 PyObject
* _argo0
= 0;
653 char *_kwnames
[] = { "self","dir", NULL
};
656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
667 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
669 wxPyEndAllowThreads(__tstate
);
670 if (PyErr_Occurred()) return NULL
;
671 } _resultobj
= Py_BuildValue("i",_result
);
675 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
676 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
677 PyObject
* _resultobj
;
678 wxDataObject
* _arg0
;
679 wxDataFormat
* _arg1
;
680 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
681 PyObject
* _argo0
= 0;
682 PyObject
* _argo1
= 0;
683 char *_kwnames
[] = { "self","formats","dir", NULL
};
686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
696 if (_argo1
== Py_None
) { _arg1
= NULL
; }
697 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
704 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
706 wxPyEndAllowThreads(__tstate
);
707 if (PyErr_Occurred()) return NULL
;
708 } Py_INCREF(Py_None
);
709 _resultobj
= Py_None
;
713 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
714 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
717 wxDataObject
* _arg0
;
718 wxDataFormat
* _arg1
;
720 PyObject
* _argo0
= 0;
721 PyObject
* _argo1
= 0;
722 PyObject
* _argo2
= 0;
723 char *_kwnames
[] = { "self","format","buf", NULL
};
726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
736 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
742 if (_argo2
== Py_None
) { _arg2
= NULL
; }
743 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
749 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
750 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
752 wxPyEndAllowThreads(__tstate
);
753 if (PyErr_Occurred()) return NULL
;
754 } _resultobj
= Py_BuildValue("i",_result
);
758 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
759 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
760 PyObject
* _resultobj
;
762 wxDataObject
* _arg0
;
763 wxDataFormat
* _arg1
;
764 PyObject
* _argo0
= 0;
765 PyObject
* _argo1
= 0;
766 char *_kwnames
[] = { "self","format", NULL
};
769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
779 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
786 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
788 wxPyEndAllowThreads(__tstate
);
789 if (PyErr_Occurred()) return NULL
;
790 } _resultobj
= Py_BuildValue("i",_result
);
794 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
795 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
796 PyObject
* _resultobj
;
798 wxDataObject
* _arg0
;
799 wxDataFormat
* _arg1
;
802 PyObject
* _argo0
= 0;
803 PyObject
* _argo1
= 0;
804 PyObject
* _argo3
= 0;
805 char *_kwnames
[] = { "self","format","len","buf", NULL
};
808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
818 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
824 if (_argo3
== Py_None
) { _arg3
= NULL
; }
825 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
832 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
834 wxPyEndAllowThreads(__tstate
);
835 if (PyErr_Occurred()) return NULL
;
836 } _resultobj
= Py_BuildValue("i",_result
);
840 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
841 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
842 PyObject
* _resultobj
;
844 wxDataObject
* _arg0
;
845 wxDataFormat
* _arg1
;
846 PyObject
* _argo0
= 0;
847 PyObject
* _argo1
= 0;
848 char *_kwnames
[] = { "self","format", NULL
};
851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
861 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
868 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
870 wxPyEndAllowThreads(__tstate
);
871 if (PyErr_Occurred()) return NULL
;
872 } _resultobj
= Py_BuildValue("i",_result
);
876 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
877 wxDataObjectSimple
*src
;
879 src
= (wxDataObjectSimple
*) ptr
;
880 dest
= (wxDataObject
*) src
;
881 return (void *) dest
;
884 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
885 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
886 PyObject
* _resultobj
;
887 wxDataObjectSimple
* _result
;
888 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
889 PyObject
* _argo0
= 0;
890 char *_kwnames
[] = { "format", NULL
};
894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
897 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
904 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
906 wxPyEndAllowThreads(__tstate
);
907 if (PyErr_Occurred()) return NULL
;
909 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
910 _resultobj
= Py_BuildValue("s",_ptemp
);
913 _resultobj
= Py_None
;
918 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
919 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
920 PyObject
* _resultobj
;
921 wxDataFormat
* _result
;
922 wxDataObjectSimple
* _arg0
;
923 PyObject
* _argo0
= 0;
924 char *_kwnames
[] = { "self", NULL
};
928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
938 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
939 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
940 _result
= (wxDataFormat
*) &_result_ref
;
942 wxPyEndAllowThreads(__tstate
);
943 if (PyErr_Occurred()) return NULL
;
945 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
946 _resultobj
= Py_BuildValue("s",_ptemp
);
949 _resultobj
= Py_None
;
954 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
955 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
956 PyObject
* _resultobj
;
957 wxDataObjectSimple
* _arg0
;
958 wxDataFormat
* _arg1
;
959 PyObject
* _argo0
= 0;
960 PyObject
* _argo1
= 0;
961 char *_kwnames
[] = { "self","format", NULL
};
964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
974 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
980 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
981 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
983 wxPyEndAllowThreads(__tstate
);
984 if (PyErr_Occurred()) return NULL
;
985 } Py_INCREF(Py_None
);
986 _resultobj
= Py_None
;
990 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
991 wxPyDataObjectSimple
*src
;
992 wxDataObjectSimple
*dest
;
993 src
= (wxPyDataObjectSimple
*) ptr
;
994 dest
= (wxDataObjectSimple
*) src
;
995 return (void *) dest
;
998 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
999 wxPyDataObjectSimple
*src
;
1001 src
= (wxPyDataObjectSimple
*) ptr
;
1002 dest
= (wxDataObject
*) src
;
1003 return (void *) dest
;
1006 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1007 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
* _resultobj
;
1009 wxPyDataObjectSimple
* _result
;
1010 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1011 PyObject
* _argo0
= 0;
1012 char *_kwnames
[] = { "format", NULL
};
1016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1019 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1026 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1028 wxPyEndAllowThreads(__tstate
);
1029 if (PyErr_Occurred()) return NULL
;
1031 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1032 _resultobj
= Py_BuildValue("s",_ptemp
);
1035 _resultobj
= Py_None
;
1040 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1041 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1042 PyObject
* _resultobj
;
1043 wxPyDataObjectSimple
* _arg0
;
1046 PyObject
* _argo0
= 0;
1047 PyObject
* _obj1
= 0;
1048 PyObject
* _obj2
= 0;
1049 char *_kwnames
[] = { "self","self","_class", NULL
};
1052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1069 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1071 wxPyEndAllowThreads(__tstate
);
1072 if (PyErr_Occurred()) return NULL
;
1073 } Py_INCREF(Py_None
);
1074 _resultobj
= Py_None
;
1078 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1079 wxDataObjectComposite
*src
;
1081 src
= (wxDataObjectComposite
*) ptr
;
1082 dest
= (wxDataObject
*) src
;
1083 return (void *) dest
;
1086 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1087 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1088 PyObject
* _resultobj
;
1089 wxDataObjectComposite
* _result
;
1090 char *_kwnames
[] = { NULL
};
1094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1098 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1100 wxPyEndAllowThreads(__tstate
);
1101 if (PyErr_Occurred()) return NULL
;
1103 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1104 _resultobj
= Py_BuildValue("s",_ptemp
);
1107 _resultobj
= Py_None
;
1112 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1113 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1114 PyObject
* _resultobj
;
1115 wxDataObjectComposite
* _arg0
;
1116 wxDataObjectSimple
* _arg1
;
1117 int _arg2
= (int ) FALSE
;
1118 PyObject
* _argo0
= 0;
1119 PyObject
* _argo1
= 0;
1120 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1133 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1134 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1141 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1143 wxPyEndAllowThreads(__tstate
);
1144 if (PyErr_Occurred()) return NULL
;
1145 } Py_INCREF(Py_None
);
1146 _resultobj
= Py_None
;
1150 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1151 wxTextDataObject
*src
;
1152 wxDataObjectSimple
*dest
;
1153 src
= (wxTextDataObject
*) ptr
;
1154 dest
= (wxDataObjectSimple
*) src
;
1155 return (void *) dest
;
1158 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1159 wxTextDataObject
*src
;
1161 src
= (wxTextDataObject
*) ptr
;
1162 dest
= (wxDataObject
*) src
;
1163 return (void *) dest
;
1166 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1167 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1168 PyObject
* _resultobj
;
1169 wxTextDataObject
* _result
;
1170 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1171 PyObject
* _obj0
= 0;
1172 char *_kwnames
[] = { "text", NULL
};
1176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1180 _arg0
= wxString_in_helper(_obj0
);
1185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1186 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1188 wxPyEndAllowThreads(__tstate
);
1189 if (PyErr_Occurred()) return NULL
;
1191 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1192 _resultobj
= Py_BuildValue("s",_ptemp
);
1195 _resultobj
= Py_None
;
1204 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1205 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1206 PyObject
* _resultobj
;
1208 wxTextDataObject
* _arg0
;
1209 PyObject
* _argo0
= 0;
1210 char *_kwnames
[] = { "self", NULL
};
1213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1224 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1226 wxPyEndAllowThreads(__tstate
);
1227 if (PyErr_Occurred()) return NULL
;
1228 } _resultobj
= Py_BuildValue("i",_result
);
1232 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1233 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1234 PyObject
* _resultobj
;
1236 wxTextDataObject
* _arg0
;
1237 PyObject
* _argo0
= 0;
1238 char *_kwnames
[] = { "self", NULL
};
1241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1252 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1254 wxPyEndAllowThreads(__tstate
);
1255 if (PyErr_Occurred()) return NULL
;
1258 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1260 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1269 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1270 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1271 PyObject
* _resultobj
;
1272 wxTextDataObject
* _arg0
;
1274 PyObject
* _argo0
= 0;
1275 PyObject
* _obj1
= 0;
1276 char *_kwnames
[] = { "self","text", NULL
};
1279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1289 _arg1
= wxString_in_helper(_obj1
);
1294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1295 wxTextDataObject_SetText(_arg0
,*_arg1
);
1297 wxPyEndAllowThreads(__tstate
);
1298 if (PyErr_Occurred()) return NULL
;
1299 } Py_INCREF(Py_None
);
1300 _resultobj
= Py_None
;
1308 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1309 wxPyTextDataObject
*src
;
1310 wxTextDataObject
*dest
;
1311 src
= (wxPyTextDataObject
*) ptr
;
1312 dest
= (wxTextDataObject
*) src
;
1313 return (void *) dest
;
1316 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1317 wxPyTextDataObject
*src
;
1318 wxDataObjectSimple
*dest
;
1319 src
= (wxPyTextDataObject
*) ptr
;
1320 dest
= (wxDataObjectSimple
*) src
;
1321 return (void *) dest
;
1324 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1325 wxPyTextDataObject
*src
;
1327 src
= (wxPyTextDataObject
*) ptr
;
1328 dest
= (wxDataObject
*) src
;
1329 return (void *) dest
;
1332 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1333 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1334 PyObject
* _resultobj
;
1335 wxPyTextDataObject
* _result
;
1336 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1337 PyObject
* _obj0
= 0;
1338 char *_kwnames
[] = { "text", NULL
};
1342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1346 _arg0
= wxString_in_helper(_obj0
);
1351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1352 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1354 wxPyEndAllowThreads(__tstate
);
1355 if (PyErr_Occurred()) return NULL
;
1357 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1358 _resultobj
= Py_BuildValue("s",_ptemp
);
1361 _resultobj
= Py_None
;
1370 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1371 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1372 PyObject
* _resultobj
;
1373 wxPyTextDataObject
* _arg0
;
1376 PyObject
* _argo0
= 0;
1377 PyObject
* _obj1
= 0;
1378 PyObject
* _obj2
= 0;
1379 char *_kwnames
[] = { "self","self","_class", NULL
};
1382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1398 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1399 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1401 wxPyEndAllowThreads(__tstate
);
1402 if (PyErr_Occurred()) return NULL
;
1403 } Py_INCREF(Py_None
);
1404 _resultobj
= Py_None
;
1408 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1409 wxBitmapDataObject
*src
;
1410 wxDataObjectSimple
*dest
;
1411 src
= (wxBitmapDataObject
*) ptr
;
1412 dest
= (wxDataObjectSimple
*) src
;
1413 return (void *) dest
;
1416 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1417 wxBitmapDataObject
*src
;
1419 src
= (wxBitmapDataObject
*) ptr
;
1420 dest
= (wxDataObject
*) src
;
1421 return (void *) dest
;
1424 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1425 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1426 PyObject
* _resultobj
;
1427 wxBitmapDataObject
* _result
;
1428 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1429 PyObject
* _argo0
= 0;
1430 char *_kwnames
[] = { "bitmap", NULL
};
1434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1437 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1444 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1446 wxPyEndAllowThreads(__tstate
);
1447 if (PyErr_Occurred()) return NULL
;
1449 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1450 _resultobj
= Py_BuildValue("s",_ptemp
);
1453 _resultobj
= Py_None
;
1458 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1459 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1460 PyObject
* _resultobj
;
1462 wxBitmapDataObject
* _arg0
;
1463 PyObject
* _argo0
= 0;
1464 char *_kwnames
[] = { "self", NULL
};
1468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1478 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1479 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1481 wxPyEndAllowThreads(__tstate
);
1482 if (PyErr_Occurred()) return NULL
;
1483 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1484 _resultobj
= Py_BuildValue("s",_ptemp
);
1488 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1489 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1490 PyObject
* _resultobj
;
1491 wxBitmapDataObject
* _arg0
;
1493 PyObject
* _argo0
= 0;
1494 PyObject
* _argo1
= 0;
1495 char *_kwnames
[] = { "self","bitmap", NULL
};
1498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1508 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1515 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1517 wxPyEndAllowThreads(__tstate
);
1518 if (PyErr_Occurred()) return NULL
;
1519 } Py_INCREF(Py_None
);
1520 _resultobj
= Py_None
;
1524 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1525 wxPyBitmapDataObject
*src
;
1526 wxBitmapDataObject
*dest
;
1527 src
= (wxPyBitmapDataObject
*) ptr
;
1528 dest
= (wxBitmapDataObject
*) src
;
1529 return (void *) dest
;
1532 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1533 wxPyBitmapDataObject
*src
;
1534 wxDataObjectSimple
*dest
;
1535 src
= (wxPyBitmapDataObject
*) ptr
;
1536 dest
= (wxDataObjectSimple
*) src
;
1537 return (void *) dest
;
1540 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1541 wxPyBitmapDataObject
*src
;
1543 src
= (wxPyBitmapDataObject
*) ptr
;
1544 dest
= (wxDataObject
*) src
;
1545 return (void *) dest
;
1548 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1549 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1551 wxPyBitmapDataObject
* _result
;
1552 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1553 PyObject
* _argo0
= 0;
1554 char *_kwnames
[] = { "bitmap", NULL
};
1558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1561 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1568 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1570 wxPyEndAllowThreads(__tstate
);
1571 if (PyErr_Occurred()) return NULL
;
1573 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1574 _resultobj
= Py_BuildValue("s",_ptemp
);
1577 _resultobj
= Py_None
;
1582 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1583 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
* _resultobj
;
1585 wxPyBitmapDataObject
* _arg0
;
1588 PyObject
* _argo0
= 0;
1589 PyObject
* _obj1
= 0;
1590 PyObject
* _obj2
= 0;
1591 char *_kwnames
[] = { "self","self","_class", NULL
};
1594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1611 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1613 wxPyEndAllowThreads(__tstate
);
1614 if (PyErr_Occurred()) return NULL
;
1615 } Py_INCREF(Py_None
);
1616 _resultobj
= Py_None
;
1620 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1621 wxFileDataObject
*src
;
1622 wxDataObjectSimple
*dest
;
1623 src
= (wxFileDataObject
*) ptr
;
1624 dest
= (wxDataObjectSimple
*) src
;
1625 return (void *) dest
;
1628 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1629 wxFileDataObject
*src
;
1631 src
= (wxFileDataObject
*) ptr
;
1632 dest
= (wxDataObject
*) src
;
1633 return (void *) dest
;
1636 #define new_wxFileDataObject() (new wxFileDataObject())
1637 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1638 PyObject
* _resultobj
;
1639 wxFileDataObject
* _result
;
1640 char *_kwnames
[] = { NULL
};
1644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1648 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1650 wxPyEndAllowThreads(__tstate
);
1651 if (PyErr_Occurred()) return NULL
;
1653 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1654 _resultobj
= Py_BuildValue("s",_ptemp
);
1657 _resultobj
= Py_None
;
1662 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1663 const wxArrayString
& strings
= self
->GetFilenames();
1664 return wxArrayString2PyList_helper(strings
);
1666 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1667 PyObject
* _resultobj
;
1669 wxFileDataObject
* _arg0
;
1670 PyObject
* _argo0
= 0;
1671 char *_kwnames
[] = { "self", NULL
};
1674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1685 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1687 wxPyEndAllowThreads(__tstate
);
1688 if (PyErr_Occurred()) return NULL
;
1690 _resultobj
= _result
;
1695 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1696 wxCustomDataObject
*src
;
1697 wxDataObjectSimple
*dest
;
1698 src
= (wxCustomDataObject
*) ptr
;
1699 dest
= (wxDataObjectSimple
*) src
;
1700 return (void *) dest
;
1703 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1704 wxCustomDataObject
*src
;
1706 src
= (wxCustomDataObject
*) ptr
;
1707 dest
= (wxDataObject
*) src
;
1708 return (void *) dest
;
1711 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1712 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1713 PyObject
* _resultobj
;
1714 wxCustomDataObject
* _result
;
1715 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1716 PyObject
* _argo0
= 0;
1717 char *_kwnames
[] = { "format", NULL
};
1721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1724 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1731 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1733 wxPyEndAllowThreads(__tstate
);
1734 if (PyErr_Occurred()) return NULL
;
1736 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1737 _resultobj
= Py_BuildValue("s",_ptemp
);
1740 _resultobj
= Py_None
;
1745 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1746 if (PyString_Check(data
)) {
1747 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1750 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1751 PyObject
* _resultobj
;
1752 wxCustomDataObject
* _arg0
;
1754 PyObject
* _argo0
= 0;
1755 PyObject
* _obj1
= 0;
1756 char *_kwnames
[] = { "self","data", NULL
};
1759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1772 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1773 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1775 wxPyEndAllowThreads(__tstate
);
1776 if (PyErr_Occurred()) return NULL
;
1777 } Py_INCREF(Py_None
);
1778 _resultobj
= Py_None
;
1782 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1783 if (PyString_Check(data
)) {
1784 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1788 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1789 PyObject
* _resultobj
;
1791 wxCustomDataObject
* _arg0
;
1793 PyObject
* _argo0
= 0;
1794 PyObject
* _obj1
= 0;
1795 char *_kwnames
[] = { "self","data", NULL
};
1798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1812 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1814 wxPyEndAllowThreads(__tstate
);
1815 if (PyErr_Occurred()) return NULL
;
1816 } _resultobj
= Py_BuildValue("i",_result
);
1820 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1821 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
* _resultobj
;
1824 wxCustomDataObject
* _arg0
;
1825 PyObject
* _argo0
= 0;
1826 char *_kwnames
[] = { "self", NULL
};
1829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1840 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1842 wxPyEndAllowThreads(__tstate
);
1843 if (PyErr_Occurred()) return NULL
;
1844 } _resultobj
= Py_BuildValue("i",_result
);
1848 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1849 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1851 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1852 PyObject
* _resultobj
;
1854 wxCustomDataObject
* _arg0
;
1855 PyObject
* _argo0
= 0;
1856 char *_kwnames
[] = { "self", NULL
};
1859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1870 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1872 wxPyEndAllowThreads(__tstate
);
1873 if (PyErr_Occurred()) return NULL
;
1875 _resultobj
= _result
;
1880 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1881 wxURLDataObject
*src
;
1882 wxDataObjectComposite
*dest
;
1883 src
= (wxURLDataObject
*) ptr
;
1884 dest
= (wxDataObjectComposite
*) src
;
1885 return (void *) dest
;
1888 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1889 wxURLDataObject
*src
;
1891 src
= (wxURLDataObject
*) ptr
;
1892 dest
= (wxDataObject
*) src
;
1893 return (void *) dest
;
1896 #define new_wxURLDataObject() (new wxURLDataObject())
1897 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1898 PyObject
* _resultobj
;
1899 wxURLDataObject
* _result
;
1900 char *_kwnames
[] = { NULL
};
1904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1908 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1910 wxPyEndAllowThreads(__tstate
);
1911 if (PyErr_Occurred()) return NULL
;
1913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1914 _resultobj
= Py_BuildValue("s",_ptemp
);
1917 _resultobj
= Py_None
;
1922 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1923 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1924 PyObject
* _resultobj
;
1926 wxURLDataObject
* _arg0
;
1927 PyObject
* _argo0
= 0;
1928 char *_kwnames
[] = { "self", NULL
};
1931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1942 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1944 wxPyEndAllowThreads(__tstate
);
1945 if (PyErr_Occurred()) return NULL
;
1948 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1950 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1959 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1960 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
* _resultobj
;
1962 wxURLDataObject
* _arg0
;
1964 PyObject
* _argo0
= 0;
1965 PyObject
* _obj1
= 0;
1966 char *_kwnames
[] = { "self","url", NULL
};
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1979 _arg1
= wxString_in_helper(_obj1
);
1984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1985 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1987 wxPyEndAllowThreads(__tstate
);
1988 if (PyErr_Occurred()) return NULL
;
1989 } Py_INCREF(Py_None
);
1990 _resultobj
= Py_None
;
1998 static void *SwigwxClipboardTowxObject(void *ptr
) {
2001 src
= (wxClipboard
*) ptr
;
2002 dest
= (wxObject
*) src
;
2003 return (void *) dest
;
2006 #define new_wxClipboard() (new wxClipboard())
2007 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2008 PyObject
* _resultobj
;
2009 wxClipboard
* _result
;
2010 char *_kwnames
[] = { NULL
};
2014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2018 _result
= (wxClipboard
*)new_wxClipboard();
2020 wxPyEndAllowThreads(__tstate
);
2021 if (PyErr_Occurred()) return NULL
;
2023 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2024 _resultobj
= Py_BuildValue("s",_ptemp
);
2027 _resultobj
= Py_None
;
2032 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2033 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2034 PyObject
* _resultobj
;
2036 wxClipboard
* _arg0
;
2037 PyObject
* _argo0
= 0;
2038 char *_kwnames
[] = { "self", NULL
};
2041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2052 _result
= (bool )wxClipboard_Open(_arg0
);
2054 wxPyEndAllowThreads(__tstate
);
2055 if (PyErr_Occurred()) return NULL
;
2056 } _resultobj
= Py_BuildValue("i",_result
);
2060 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2061 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2062 PyObject
* _resultobj
;
2063 wxClipboard
* _arg0
;
2064 PyObject
* _argo0
= 0;
2065 char *_kwnames
[] = { "self", NULL
};
2068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2079 wxClipboard_Close(_arg0
);
2081 wxPyEndAllowThreads(__tstate
);
2082 if (PyErr_Occurred()) return NULL
;
2083 } Py_INCREF(Py_None
);
2084 _resultobj
= Py_None
;
2088 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2089 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2090 PyObject
* _resultobj
;
2092 wxClipboard
* _arg0
;
2093 PyObject
* _argo0
= 0;
2094 char *_kwnames
[] = { "self", NULL
};
2097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2108 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2110 wxPyEndAllowThreads(__tstate
);
2111 if (PyErr_Occurred()) return NULL
;
2112 } _resultobj
= Py_BuildValue("i",_result
);
2116 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2117 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2118 PyObject
* _resultobj
;
2120 wxClipboard
* _arg0
;
2121 wxDataObject
* _arg1
;
2122 PyObject
* _argo0
= 0;
2123 PyObject
* _argo1
= 0;
2124 char *_kwnames
[] = { "self","data", NULL
};
2127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2137 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2138 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2145 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2147 wxPyEndAllowThreads(__tstate
);
2148 if (PyErr_Occurred()) return NULL
;
2149 } _resultobj
= Py_BuildValue("i",_result
);
2153 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2154 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2157 wxClipboard
* _arg0
;
2158 wxDataObject
* _arg1
;
2159 PyObject
* _argo0
= 0;
2160 PyObject
* _argo1
= 0;
2161 char *_kwnames
[] = { "self","data", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
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_SetData. Expected _wxClipboard_p.");
2174 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2175 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2181 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2182 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2184 wxPyEndAllowThreads(__tstate
);
2185 if (PyErr_Occurred()) return NULL
;
2186 } _resultobj
= Py_BuildValue("i",_result
);
2190 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2191 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2192 PyObject
* _resultobj
;
2194 wxClipboard
* _arg0
;
2195 wxDataFormat
* _arg1
;
2196 PyObject
* _argo0
= 0;
2197 PyObject
* _argo1
= 0;
2198 char *_kwnames
[] = { "self","format", NULL
};
2201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2211 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2218 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2220 wxPyEndAllowThreads(__tstate
);
2221 if (PyErr_Occurred()) return NULL
;
2222 } _resultobj
= Py_BuildValue("i",_result
);
2226 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2227 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
* _resultobj
;
2230 wxClipboard
* _arg0
;
2231 wxDataObject
* _arg1
;
2232 PyObject
* _argo0
= 0;
2233 PyObject
* _argo1
= 0;
2234 char *_kwnames
[] = { "self","data", NULL
};
2237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2247 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2254 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2256 wxPyEndAllowThreads(__tstate
);
2257 if (PyErr_Occurred()) return NULL
;
2258 } _resultobj
= Py_BuildValue("i",_result
);
2262 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2263 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2264 PyObject
* _resultobj
;
2265 wxClipboard
* _arg0
;
2266 PyObject
* _argo0
= 0;
2267 char *_kwnames
[] = { "self", NULL
};
2270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2281 wxClipboard_Clear(_arg0
);
2283 wxPyEndAllowThreads(__tstate
);
2284 if (PyErr_Occurred()) return NULL
;
2285 } Py_INCREF(Py_None
);
2286 _resultobj
= Py_None
;
2290 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2291 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2292 PyObject
* _resultobj
;
2294 wxClipboard
* _arg0
;
2295 PyObject
* _argo0
= 0;
2296 char *_kwnames
[] = { "self", NULL
};
2299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2309 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2310 _result
= (bool )wxClipboard_Flush(_arg0
);
2312 wxPyEndAllowThreads(__tstate
);
2313 if (PyErr_Occurred()) return NULL
;
2314 } _resultobj
= Py_BuildValue("i",_result
);
2318 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2319 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2320 PyObject
* _resultobj
;
2321 wxClipboard
* _arg0
;
2322 int _arg1
= (int ) FALSE
;
2323 PyObject
* _argo0
= 0;
2324 char *_kwnames
[] = { "self","primary", NULL
};
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2338 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2340 wxPyEndAllowThreads(__tstate
);
2341 if (PyErr_Occurred()) return NULL
;
2342 } Py_INCREF(Py_None
);
2343 _resultobj
= Py_None
;
2347 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2348 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2349 PyObject
* _resultobj
;
2350 wxPyDropSource
* _result
;
2351 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2352 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2353 wxIcon
* _arg2
= (wxIcon
*) &wxNullIcon
;
2354 wxIcon
* _arg3
= (wxIcon
*) &wxNullIcon
;
2355 PyObject
* _argo0
= 0;
2356 PyObject
* _argo1
= 0;
2357 PyObject
* _argo2
= 0;
2358 PyObject
* _argo3
= 0;
2359 char *_kwnames
[] = { "win","copy","move","none", NULL
};
2363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2373 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2379 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxIcon_p")) {
2380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxIcon_p.");
2385 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxIcon_p")) {
2386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxIcon_p.");
2391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2392 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2394 wxPyEndAllowThreads(__tstate
);
2395 if (PyErr_Occurred()) return NULL
;
2397 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2398 _resultobj
= Py_BuildValue("s",_ptemp
);
2401 _resultobj
= Py_None
;
2406 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2407 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2408 PyObject
* _resultobj
;
2409 wxPyDropSource
* _arg0
;
2413 PyObject
* _argo0
= 0;
2414 PyObject
* _obj1
= 0;
2415 PyObject
* _obj2
= 0;
2416 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2436 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2438 wxPyEndAllowThreads(__tstate
);
2439 if (PyErr_Occurred()) return NULL
;
2440 } Py_INCREF(Py_None
);
2441 _resultobj
= Py_None
;
2445 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2446 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2447 PyObject
* _resultobj
;
2448 wxPyDropSource
* _arg0
;
2449 PyObject
* _argo0
= 0;
2450 char *_kwnames
[] = { "self", NULL
};
2453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2464 delete_wxPyDropSource(_arg0
);
2466 wxPyEndAllowThreads(__tstate
);
2467 if (PyErr_Occurred()) return NULL
;
2468 } Py_INCREF(Py_None
);
2469 _resultobj
= Py_None
;
2473 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2474 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2475 PyObject
* _resultobj
;
2476 wxPyDropSource
* _arg0
;
2477 wxDataObject
* _arg1
;
2478 PyObject
* _argo0
= 0;
2479 PyObject
* _argo1
= 0;
2480 char *_kwnames
[] = { "self","data", NULL
};
2483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2493 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2500 wxDropSource_SetData(_arg0
,*_arg1
);
2502 wxPyEndAllowThreads(__tstate
);
2503 if (PyErr_Occurred()) return NULL
;
2504 } Py_INCREF(Py_None
);
2505 _resultobj
= Py_None
;
2509 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2510 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2511 PyObject
* _resultobj
;
2512 wxDataObject
* _result
;
2513 wxPyDropSource
* _arg0
;
2514 PyObject
* _argo0
= 0;
2515 char *_kwnames
[] = { "self", NULL
};
2519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2530 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2532 wxPyEndAllowThreads(__tstate
);
2533 if (PyErr_Occurred()) return NULL
;
2535 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2536 _resultobj
= Py_BuildValue("s",_ptemp
);
2539 _resultobj
= Py_None
;
2544 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2545 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2546 PyObject
* _resultobj
;
2547 wxPyDropSource
* _arg0
;
2550 PyObject
* _argo0
= 0;
2551 PyObject
* _argo2
= 0;
2552 char *_kwnames
[] = { "self","res","cursor", NULL
};
2555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2565 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2572 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2574 wxPyEndAllowThreads(__tstate
);
2575 if (PyErr_Occurred()) return NULL
;
2576 } Py_INCREF(Py_None
);
2577 _resultobj
= Py_None
;
2581 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2582 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2583 PyObject
* _resultobj
;
2584 wxDragResult _result
;
2585 wxPyDropSource
* _arg0
;
2586 int _arg1
= (int ) (wxDrag_CopyOnly
);
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self","flags", NULL
};
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2602 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2604 wxPyEndAllowThreads(__tstate
);
2605 if (PyErr_Occurred()) return NULL
;
2606 } _resultobj
= Py_BuildValue("i",_result
);
2610 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2611 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2614 wxPyDropSource
* _arg0
;
2616 PyObject
* _argo0
= 0;
2617 char *_kwnames
[] = { "self","effect", NULL
};
2620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) return NULL
;
2635 } _resultobj
= Py_BuildValue("i",_result
);
2639 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2640 wxPyDropTarget
*src
;
2642 src
= (wxPyDropTarget
*) ptr
;
2643 dest
= (wxDropTarget
*) src
;
2644 return (void *) dest
;
2647 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2648 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2649 PyObject
* _resultobj
;
2650 wxPyDropTarget
* _result
;
2651 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2652 PyObject
* _argo0
= 0;
2653 char *_kwnames
[] = { "dataObject", NULL
};
2657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2668 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2670 wxPyEndAllowThreads(__tstate
);
2671 if (PyErr_Occurred()) return NULL
;
2673 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2674 _resultobj
= Py_BuildValue("s",_ptemp
);
2677 _resultobj
= Py_None
;
2682 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2683 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2684 PyObject
* _resultobj
;
2685 wxPyDropTarget
* _arg0
;
2688 PyObject
* _argo0
= 0;
2689 PyObject
* _obj1
= 0;
2690 PyObject
* _obj2
= 0;
2691 char *_kwnames
[] = { "self","self","_class", NULL
};
2694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2711 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2713 wxPyEndAllowThreads(__tstate
);
2714 if (PyErr_Occurred()) return NULL
;
2715 } Py_INCREF(Py_None
);
2716 _resultobj
= Py_None
;
2720 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2721 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2722 PyObject
* _resultobj
;
2723 wxPyDropTarget
* _arg0
;
2724 PyObject
* _argo0
= 0;
2725 char *_kwnames
[] = { "self", NULL
};
2728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2739 delete_wxPyDropTarget(_arg0
);
2741 wxPyEndAllowThreads(__tstate
);
2742 if (PyErr_Occurred()) return NULL
;
2743 } Py_INCREF(Py_None
);
2744 _resultobj
= Py_None
;
2748 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2749 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2750 PyObject
* _resultobj
;
2751 wxDataObject
* _result
;
2752 wxPyDropTarget
* _arg0
;
2753 PyObject
* _argo0
= 0;
2754 char *_kwnames
[] = { "self", NULL
};
2758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2769 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2771 wxPyEndAllowThreads(__tstate
);
2772 if (PyErr_Occurred()) return NULL
;
2774 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2775 _resultobj
= Py_BuildValue("s",_ptemp
);
2778 _resultobj
= Py_None
;
2783 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2784 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2785 PyObject
* _resultobj
;
2786 wxPyDropTarget
* _arg0
;
2787 wxDataObject
* _arg1
;
2788 PyObject
* _argo0
= 0;
2789 PyObject
* _argo1
= 0;
2790 char *_kwnames
[] = { "self","dataObject", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2811 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2813 wxPyEndAllowThreads(__tstate
);
2814 if (PyErr_Occurred()) return NULL
;
2815 } Py_INCREF(Py_None
);
2816 _resultobj
= Py_None
;
2820 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2821 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2823 wxDragResult _result
;
2824 wxPyDropTarget
* _arg0
;
2828 PyObject
* _argo0
= 0;
2829 char *_kwnames
[] = { "self","x","y","def", NULL
};
2832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2842 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2843 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2845 wxPyEndAllowThreads(__tstate
);
2846 if (PyErr_Occurred()) return NULL
;
2847 } _resultobj
= Py_BuildValue("i",_result
);
2851 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2852 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
* _resultobj
;
2854 wxDragResult _result
;
2855 wxPyDropTarget
* _arg0
;
2859 PyObject
* _argo0
= 0;
2860 char *_kwnames
[] = { "self","x","y","def", NULL
};
2863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2874 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2876 wxPyEndAllowThreads(__tstate
);
2877 if (PyErr_Occurred()) return NULL
;
2878 } _resultobj
= Py_BuildValue("i",_result
);
2882 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2883 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2884 PyObject
* _resultobj
;
2885 wxPyDropTarget
* _arg0
;
2886 PyObject
* _argo0
= 0;
2887 char *_kwnames
[] = { "self", NULL
};
2890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2901 wxPyDropTarget_base_OnLeave(_arg0
);
2903 wxPyEndAllowThreads(__tstate
);
2904 if (PyErr_Occurred()) return NULL
;
2905 } Py_INCREF(Py_None
);
2906 _resultobj
= Py_None
;
2910 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2911 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2912 PyObject
* _resultobj
;
2914 wxPyDropTarget
* _arg0
;
2917 PyObject
* _argo0
= 0;
2918 char *_kwnames
[] = { "self","x","y", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2932 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2934 wxPyEndAllowThreads(__tstate
);
2935 if (PyErr_Occurred()) return NULL
;
2936 } _resultobj
= Py_BuildValue("i",_result
);
2940 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2941 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2942 PyObject
* _resultobj
;
2944 wxPyDropTarget
* _arg0
;
2945 PyObject
* _argo0
= 0;
2946 char *_kwnames
[] = { "self", NULL
};
2949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2960 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
2962 wxPyEndAllowThreads(__tstate
);
2963 if (PyErr_Occurred()) return NULL
;
2964 } _resultobj
= Py_BuildValue("i",_result
);
2968 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
2969 wxPyTextDropTarget
*src
;
2970 wxPyDropTarget
*dest
;
2971 src
= (wxPyTextDropTarget
*) ptr
;
2972 dest
= (wxPyDropTarget
*) src
;
2973 return (void *) dest
;
2976 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
2977 wxPyTextDropTarget
*src
;
2979 src
= (wxPyTextDropTarget
*) ptr
;
2980 dest
= (wxDropTarget
*) src
;
2981 return (void *) dest
;
2984 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2985 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2986 PyObject
* _resultobj
;
2987 wxPyTextDropTarget
* _result
;
2988 char *_kwnames
[] = { NULL
};
2992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
2995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2996 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
2998 wxPyEndAllowThreads(__tstate
);
2999 if (PyErr_Occurred()) return NULL
;
3001 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3002 _resultobj
= Py_BuildValue("s",_ptemp
);
3005 _resultobj
= Py_None
;
3010 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3011 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3012 PyObject
* _resultobj
;
3013 wxPyTextDropTarget
* _arg0
;
3016 PyObject
* _argo0
= 0;
3017 PyObject
* _obj1
= 0;
3018 PyObject
* _obj2
= 0;
3019 char *_kwnames
[] = { "self","self","_class", NULL
};
3022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3039 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3041 wxPyEndAllowThreads(__tstate
);
3042 if (PyErr_Occurred()) return NULL
;
3043 } Py_INCREF(Py_None
);
3044 _resultobj
= Py_None
;
3048 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3049 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3050 PyObject
* _resultobj
;
3051 wxDragResult _result
;
3052 wxPyTextDropTarget
* _arg0
;
3056 PyObject
* _argo0
= 0;
3057 char *_kwnames
[] = { "self","x","y","def", NULL
};
3060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3071 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3073 wxPyEndAllowThreads(__tstate
);
3074 if (PyErr_Occurred()) return NULL
;
3075 } _resultobj
= Py_BuildValue("i",_result
);
3079 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3080 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3081 PyObject
* _resultobj
;
3082 wxDragResult _result
;
3083 wxPyTextDropTarget
* _arg0
;
3087 PyObject
* _argo0
= 0;
3088 char *_kwnames
[] = { "self","x","y","def", NULL
};
3091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3102 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3104 wxPyEndAllowThreads(__tstate
);
3105 if (PyErr_Occurred()) return NULL
;
3106 } _resultobj
= Py_BuildValue("i",_result
);
3110 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3111 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3112 PyObject
* _resultobj
;
3113 wxPyTextDropTarget
* _arg0
;
3114 PyObject
* _argo0
= 0;
3115 char *_kwnames
[] = { "self", NULL
};
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3129 wxTextDropTarget_base_OnLeave(_arg0
);
3131 wxPyEndAllowThreads(__tstate
);
3132 if (PyErr_Occurred()) return NULL
;
3133 } Py_INCREF(Py_None
);
3134 _resultobj
= Py_None
;
3138 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3139 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3140 PyObject
* _resultobj
;
3142 wxPyTextDropTarget
* _arg0
;
3145 PyObject
* _argo0
= 0;
3146 char *_kwnames
[] = { "self","x","y", NULL
};
3149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3159 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3160 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3162 wxPyEndAllowThreads(__tstate
);
3163 if (PyErr_Occurred()) return NULL
;
3164 } _resultobj
= Py_BuildValue("i",_result
);
3168 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3169 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3170 PyObject
* _resultobj
;
3171 wxDragResult _result
;
3172 wxPyTextDropTarget
* _arg0
;
3176 PyObject
* _argo0
= 0;
3177 char *_kwnames
[] = { "self","x","y","def", NULL
};
3180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3191 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3193 wxPyEndAllowThreads(__tstate
);
3194 if (PyErr_Occurred()) return NULL
;
3195 } _resultobj
= Py_BuildValue("i",_result
);
3199 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3200 wxPyFileDropTarget
*src
;
3201 wxPyDropTarget
*dest
;
3202 src
= (wxPyFileDropTarget
*) ptr
;
3203 dest
= (wxPyDropTarget
*) src
;
3204 return (void *) dest
;
3207 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3208 wxPyFileDropTarget
*src
;
3210 src
= (wxPyFileDropTarget
*) ptr
;
3211 dest
= (wxDropTarget
*) src
;
3212 return (void *) dest
;
3215 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3216 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3217 PyObject
* _resultobj
;
3218 wxPyFileDropTarget
* _result
;
3219 char *_kwnames
[] = { NULL
};
3223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3227 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3229 wxPyEndAllowThreads(__tstate
);
3230 if (PyErr_Occurred()) return NULL
;
3232 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3233 _resultobj
= Py_BuildValue("s",_ptemp
);
3236 _resultobj
= Py_None
;
3241 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3242 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3243 PyObject
* _resultobj
;
3244 wxPyFileDropTarget
* _arg0
;
3247 PyObject
* _argo0
= 0;
3248 PyObject
* _obj1
= 0;
3249 PyObject
* _obj2
= 0;
3250 char *_kwnames
[] = { "self","self","_class", NULL
};
3253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3270 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3272 wxPyEndAllowThreads(__tstate
);
3273 if (PyErr_Occurred()) return NULL
;
3274 } Py_INCREF(Py_None
);
3275 _resultobj
= Py_None
;
3279 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3280 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3281 PyObject
* _resultobj
;
3282 wxDragResult _result
;
3283 wxPyFileDropTarget
* _arg0
;
3287 PyObject
* _argo0
= 0;
3288 char *_kwnames
[] = { "self","x","y","def", NULL
};
3291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3302 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3304 wxPyEndAllowThreads(__tstate
);
3305 if (PyErr_Occurred()) return NULL
;
3306 } _resultobj
= Py_BuildValue("i",_result
);
3310 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3311 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3312 PyObject
* _resultobj
;
3313 wxDragResult _result
;
3314 wxPyFileDropTarget
* _arg0
;
3318 PyObject
* _argo0
= 0;
3319 char *_kwnames
[] = { "self","x","y","def", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3333 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3335 wxPyEndAllowThreads(__tstate
);
3336 if (PyErr_Occurred()) return NULL
;
3337 } _resultobj
= Py_BuildValue("i",_result
);
3341 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3342 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3343 PyObject
* _resultobj
;
3344 wxPyFileDropTarget
* _arg0
;
3345 PyObject
* _argo0
= 0;
3346 char *_kwnames
[] = { "self", NULL
};
3349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3360 wxFileDropTarget_base_OnLeave(_arg0
);
3362 wxPyEndAllowThreads(__tstate
);
3363 if (PyErr_Occurred()) return NULL
;
3364 } Py_INCREF(Py_None
);
3365 _resultobj
= Py_None
;
3369 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3370 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3373 wxPyFileDropTarget
* _arg0
;
3376 PyObject
* _argo0
= 0;
3377 char *_kwnames
[] = { "self","x","y", NULL
};
3380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3391 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3393 wxPyEndAllowThreads(__tstate
);
3394 if (PyErr_Occurred()) return NULL
;
3395 } _resultobj
= Py_BuildValue("i",_result
);
3399 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3400 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3401 PyObject
* _resultobj
;
3402 wxDragResult _result
;
3403 wxPyFileDropTarget
* _arg0
;
3407 PyObject
* _argo0
= 0;
3408 char *_kwnames
[] = { "self","x","y","def", NULL
};
3411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3414 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3415 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3421 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3422 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3424 wxPyEndAllowThreads(__tstate
);
3425 if (PyErr_Occurred()) return NULL
;
3426 } _resultobj
= Py_BuildValue("i",_result
);
3430 static PyMethodDef clip_dndcMethods
[] = {
3431 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3524 * This table is used by the pointer type-checker
3526 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3527 { "_signed_long","_long",0},
3528 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3529 { "_wxPrintQuality","_wxCoord",0},
3530 { "_wxPrintQuality","_int",0},
3531 { "_wxPrintQuality","_signed_int",0},
3532 { "_wxPrintQuality","_unsigned_int",0},
3533 { "_wxPrintQuality","_wxWindowID",0},
3534 { "_wxPrintQuality","_uint",0},
3535 { "_wxPrintQuality","_EBool",0},
3536 { "_wxPrintQuality","_size_t",0},
3537 { "_wxPrintQuality","_time_t",0},
3538 { "_byte","_unsigned_char",0},
3539 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3540 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3541 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3542 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3543 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3544 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3545 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3546 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3547 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3548 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3549 { "_long","_unsigned_long",0},
3550 { "_long","_signed_long",0},
3551 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3552 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3553 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3554 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3555 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3556 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3557 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3558 { "_size_t","_wxCoord",0},
3559 { "_size_t","_wxPrintQuality",0},
3560 { "_size_t","_time_t",0},
3561 { "_size_t","_unsigned_int",0},
3562 { "_size_t","_int",0},
3563 { "_size_t","_wxWindowID",0},
3564 { "_size_t","_uint",0},
3565 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3566 { "_uint","_wxCoord",0},
3567 { "_uint","_wxPrintQuality",0},
3568 { "_uint","_time_t",0},
3569 { "_uint","_size_t",0},
3570 { "_uint","_unsigned_int",0},
3571 { "_uint","_int",0},
3572 { "_uint","_wxWindowID",0},
3573 { "_wxChar","_char",0},
3574 { "_char","_wxChar",0},
3575 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3576 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3577 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3578 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3579 { "_EBool","_wxCoord",0},
3580 { "_EBool","_wxPrintQuality",0},
3581 { "_EBool","_signed_int",0},
3582 { "_EBool","_int",0},
3583 { "_EBool","_wxWindowID",0},
3584 { "_unsigned_long","_long",0},
3585 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3586 { "_signed_int","_wxCoord",0},
3587 { "_signed_int","_wxPrintQuality",0},
3588 { "_signed_int","_EBool",0},
3589 { "_signed_int","_wxWindowID",0},
3590 { "_signed_int","_int",0},
3591 { "_WXTYPE","_short",0},
3592 { "_WXTYPE","_signed_short",0},
3593 { "_WXTYPE","_unsigned_short",0},
3594 { "_unsigned_short","_WXTYPE",0},
3595 { "_unsigned_short","_short",0},
3596 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3597 { "_signed_short","_WXTYPE",0},
3598 { "_signed_short","_short",0},
3599 { "_unsigned_char","_byte",0},
3600 { "_unsigned_int","_wxCoord",0},
3601 { "_unsigned_int","_wxPrintQuality",0},
3602 { "_unsigned_int","_time_t",0},
3603 { "_unsigned_int","_size_t",0},
3604 { "_unsigned_int","_uint",0},
3605 { "_unsigned_int","_wxWindowID",0},
3606 { "_unsigned_int","_int",0},
3607 { "_short","_WXTYPE",0},
3608 { "_short","_unsigned_short",0},
3609 { "_short","_signed_short",0},
3610 { "_wxWindowID","_wxCoord",0},
3611 { "_wxWindowID","_wxPrintQuality",0},
3612 { "_wxWindowID","_time_t",0},
3613 { "_wxWindowID","_size_t",0},
3614 { "_wxWindowID","_EBool",0},
3615 { "_wxWindowID","_uint",0},
3616 { "_wxWindowID","_int",0},
3617 { "_wxWindowID","_signed_int",0},
3618 { "_wxWindowID","_unsigned_int",0},
3619 { "_int","_wxCoord",0},
3620 { "_int","_wxPrintQuality",0},
3621 { "_int","_time_t",0},
3622 { "_int","_size_t",0},
3623 { "_int","_EBool",0},
3624 { "_int","_uint",0},
3625 { "_int","_wxWindowID",0},
3626 { "_int","_unsigned_int",0},
3627 { "_int","_signed_int",0},
3628 { "_time_t","_wxCoord",0},
3629 { "_time_t","_wxPrintQuality",0},
3630 { "_time_t","_unsigned_int",0},
3631 { "_time_t","_int",0},
3632 { "_time_t","_wxWindowID",0},
3633 { "_time_t","_uint",0},
3634 { "_time_t","_size_t",0},
3635 { "_wxCoord","_int",0},
3636 { "_wxCoord","_signed_int",0},
3637 { "_wxCoord","_unsigned_int",0},
3638 { "_wxCoord","_wxWindowID",0},
3639 { "_wxCoord","_uint",0},
3640 { "_wxCoord","_EBool",0},
3641 { "_wxCoord","_size_t",0},
3642 { "_wxCoord","_time_t",0},
3643 { "_wxCoord","_wxPrintQuality",0},
3644 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3645 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3646 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3649 static PyObject
*SWIG_globals
;
3653 SWIGEXPORT(void) initclip_dndc() {
3655 SWIG_globals
= SWIG_newvarlink();
3656 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3657 d
= PyModule_GetDict(m
);
3658 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3659 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3660 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3661 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3662 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3663 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3664 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3665 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3666 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3667 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3668 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3669 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3670 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3671 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3672 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3673 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3674 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3675 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3676 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3677 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3678 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3679 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3680 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxTheClipboard_get
, _wrap_wxTheClipboard_set
);
3681 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3682 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3683 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3684 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3685 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3686 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3687 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3688 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3689 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3692 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3693 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3694 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3695 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3696 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3697 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3700 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3701 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);