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 */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
89 // An alternate constructor...
90 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
91 return new wxDataFormat(id
);
94 wxDataFormat wxPyFormatInvalid
;
95 // Create a new class for wxPython to use
96 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
98 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
99 : wxDataObjectSimple(format
) {}
101 DEC_PYCALLBACK_SIZET_(GetDataSize
);
102 bool GetDataHere(void *buf
);
103 bool SetData(size_t len
, const void *buf
);
107 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
109 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
110 // We need to get the data for this object and write it to buf. I think
111 // the best way to do this for wxPython is to have the Python method
112 // return either a string or None and then act appropriately with the
116 wxPyBeginBlockThreads();
117 if (m_myInst
.findCallback("GetDataHere")) {
119 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
121 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
123 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
127 wxPyEndBlockThreads();
131 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
132 // For this one we simply need to make a string from buf and len
133 // and send it to the Python method.
135 wxPyBeginBlockThreads();
136 if (m_myInst
.findCallback("SetData")) {
137 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
138 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
141 wxPyEndBlockThreads();
144 // Create a new class for wxPython to use
145 class wxPyTextDataObject
: public wxTextDataObject
{
147 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
148 : wxTextDataObject(text
) {}
150 DEC_PYCALLBACK_SIZET_(GetTextLength
);
151 DEC_PYCALLBACK_STRING_(GetText
);
152 DEC_PYCALLBACK__STRING(SetText
);
156 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
157 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
158 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
160 // Create a new class for wxPython to use
161 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
163 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
164 : wxBitmapDataObject(bitmap
) {}
166 wxBitmap
GetBitmap();
167 void SetBitmap(const wxBitmap
& bitmap
);
171 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
172 wxBitmap
* rval
= &wxNullBitmap
;
173 wxPyBeginBlockThreads();
174 if (m_myInst
.findCallback("GetBitmap")) {
177 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
179 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
184 wxPyEndBlockThreads();
188 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
189 wxPyBeginBlockThreads();
190 if (m_myInst
.findCallback("SetBitmap")) {
191 m_myInst
.callCallback(Py_BuildValue("(O)",
192 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
194 wxPyEndBlockThreads();
197 // See below in the init function...
198 wxClipboard
* wxPyTheClipboard
;
200 class wxPyDropSource
: public wxDropSource
{
203 wxPyDropSource(wxWindow
*win
= NULL
,
204 const wxCursor
&cursorCopy
= wxNullCursor
,
205 const wxCursor
&cursorMove
= wxNullCursor
,
206 const wxCursor
&cursorStop
= wxNullCursor
)
207 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
209 wxPyDropSource(wxWindow
*win
= NULL
,
210 const wxIcon
&go
= wxNullIcon
)
211 : wxDropSource(win
, go
) {}
213 ~wxPyDropSource() { }
215 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
219 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
222 class wxPyDropTarget
: public wxDropTarget
{
224 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
225 : wxDropTarget(dataObject
) {}
227 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
228 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
230 DEC_PYCALLBACK__(OnLeave
);
231 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
232 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
233 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
234 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
239 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
240 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
242 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
243 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
244 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
245 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
246 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
249 class wxPyTextDropTarget
: public wxTextDropTarget
{
251 wxPyTextDropTarget() {}
253 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
255 DEC_PYCALLBACK__(OnLeave
);
256 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
257 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
258 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
259 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
264 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
265 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
266 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
267 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
268 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
269 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
272 class wxPyFileDropTarget
: public wxFileDropTarget
{
274 wxPyFileDropTarget() {}
276 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
278 DEC_PYCALLBACK__(OnLeave
);
279 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
280 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
281 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
282 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
287 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
288 const wxArrayString
& filenames
) {
290 wxPyBeginBlockThreads();
291 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
292 if (m_myInst
.findCallback("OnDropFiles"))
293 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
295 wxPyEndBlockThreads();
301 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
302 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
303 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
304 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
305 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
310 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
311 PyObject
* _resultobj
;
312 wxDataFormat
* _result
;
314 PyObject
* _obj0
= 0;
315 char *_kwnames
[] = { "id", NULL
};
319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
322 _arg0
= wxString_in_helper(_obj0
);
327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
328 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
330 wxPyEndAllowThreads(__tstate
);
331 if (PyErr_Occurred()) return NULL
;
333 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
334 _resultobj
= Py_BuildValue("s",_ptemp
);
337 _resultobj
= Py_None
;
346 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
348 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
352 static PyObject
*_wrap_wxPyFormatInvalid_get() {
356 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
357 pyobj
= PyString_FromString(ptemp
);
361 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
363 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
367 static PyObject
*_wrap_wxPyTheClipboard_get() {
371 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
372 pyobj
= PyString_FromString(ptemp
);
376 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
377 PyObject
* _resultobj
;
380 char *_kwnames
[] = { "res", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
387 _result
= (bool )wxIsDragResultOk(_arg0
);
389 wxPyEndAllowThreads(__tstate
);
390 if (PyErr_Occurred()) return NULL
;
391 } _resultobj
= Py_BuildValue("i",_result
);
395 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
396 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
397 PyObject
* _resultobj
;
398 wxDataFormat
* _result
;
399 wxDataFormatId _arg0
;
400 char *_kwnames
[] = { "type", NULL
};
404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
408 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
410 wxPyEndAllowThreads(__tstate
);
411 if (PyErr_Occurred()) return NULL
;
413 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
414 _resultobj
= Py_BuildValue("s",_ptemp
);
417 _resultobj
= Py_None
;
422 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
423 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
424 PyObject
* _resultobj
;
425 wxDataFormat
* _arg0
;
426 PyObject
* _argo0
= 0;
427 char *_kwnames
[] = { "self", NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
440 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
441 delete_wxDataFormat(_arg0
);
443 wxPyEndAllowThreads(__tstate
);
444 if (PyErr_Occurred()) return NULL
;
445 } Py_INCREF(Py_None
);
446 _resultobj
= Py_None
;
450 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
451 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
452 PyObject
* _resultobj
;
453 wxDataFormat
* _arg0
;
454 wxDataFormatId _arg1
;
455 PyObject
* _argo0
= 0;
456 char *_kwnames
[] = { "self","format", NULL
};
459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
470 wxDataFormat_SetType(_arg0
,_arg1
);
472 wxPyEndAllowThreads(__tstate
);
473 if (PyErr_Occurred()) return NULL
;
474 } Py_INCREF(Py_None
);
475 _resultobj
= Py_None
;
479 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
480 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
481 PyObject
* _resultobj
;
482 wxDataFormatId _result
;
483 wxDataFormat
* _arg0
;
484 PyObject
* _argo0
= 0;
485 char *_kwnames
[] = { "self", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
499 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
501 wxPyEndAllowThreads(__tstate
);
502 if (PyErr_Occurred()) return NULL
;
503 } _resultobj
= Py_BuildValue("i",_result
);
507 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
508 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
509 PyObject
* _resultobj
;
511 wxDataFormat
* _arg0
;
512 PyObject
* _argo0
= 0;
513 char *_kwnames
[] = { "self", NULL
};
516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
527 _result
= new wxString (wxDataFormat_GetId(_arg0
));
529 wxPyEndAllowThreads(__tstate
);
530 if (PyErr_Occurred()) return NULL
;
533 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
535 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
544 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
545 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
546 PyObject
* _resultobj
;
547 wxDataFormat
* _arg0
;
549 PyObject
* _argo0
= 0;
550 char *_kwnames
[] = { "self","format", NULL
};
553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
564 wxDataFormat_SetId(_arg0
,_arg1
);
566 wxPyEndAllowThreads(__tstate
);
567 if (PyErr_Occurred()) return NULL
;
568 } Py_INCREF(Py_None
);
569 _resultobj
= Py_None
;
573 #define delete_wxDataObject(_swigobj) (delete _swigobj)
574 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
575 PyObject
* _resultobj
;
576 wxDataObject
* _arg0
;
577 PyObject
* _argo0
= 0;
578 char *_kwnames
[] = { "self", NULL
};
581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
591 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
592 delete_wxDataObject(_arg0
);
594 wxPyEndAllowThreads(__tstate
);
595 if (PyErr_Occurred()) return NULL
;
596 } Py_INCREF(Py_None
);
597 _resultobj
= Py_None
;
601 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
602 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
603 PyObject
* _resultobj
;
604 wxDataFormat
* _result
;
605 wxDataObject
* _arg0
;
606 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
607 PyObject
* _argo0
= 0;
608 char *_kwnames
[] = { "self","dir", NULL
};
612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
623 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
625 wxPyEndAllowThreads(__tstate
);
626 if (PyErr_Occurred()) return NULL
;
627 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
628 _resultobj
= Py_BuildValue("s",_ptemp
);
632 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
633 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
634 PyObject
* _resultobj
;
636 wxDataObject
* _arg0
;
637 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
638 PyObject
* _argo0
= 0;
639 char *_kwnames
[] = { "self","dir", NULL
};
642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
653 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
655 wxPyEndAllowThreads(__tstate
);
656 if (PyErr_Occurred()) return NULL
;
657 } _resultobj
= Py_BuildValue("i",_result
);
661 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
662 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
663 PyObject
* _resultobj
;
664 wxDataObject
* _arg0
;
665 wxDataFormat
* _arg1
;
666 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
667 PyObject
* _argo0
= 0;
668 PyObject
* _argo1
= 0;
669 char *_kwnames
[] = { "self","formats","dir", NULL
};
672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
682 if (_argo1
== Py_None
) { _arg1
= NULL
; }
683 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
690 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
692 wxPyEndAllowThreads(__tstate
);
693 if (PyErr_Occurred()) return NULL
;
694 } Py_INCREF(Py_None
);
695 _resultobj
= Py_None
;
699 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
700 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
701 PyObject
* _resultobj
;
703 wxDataObject
* _arg0
;
704 wxDataFormat
* _arg1
;
705 PyObject
* _argo0
= 0;
706 PyObject
* _argo1
= 0;
707 char *_kwnames
[] = { "self","format", NULL
};
710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
720 if (_argo1
== Py_None
) { _arg1
= NULL
; }
721 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
728 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
730 wxPyEndAllowThreads(__tstate
);
731 if (PyErr_Occurred()) return NULL
;
732 } _resultobj
= Py_BuildValue("i",_result
);
736 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
737 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
738 PyObject
* _resultobj
;
740 wxDataObject
* _arg0
;
741 wxDataFormat
* _arg1
;
743 PyObject
* _argo0
= 0;
744 PyObject
* _argo1
= 0;
745 PyObject
* _argo2
= 0;
746 char *_kwnames
[] = { "self","format","buf", NULL
};
749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
759 if (_argo1
== Py_None
) { _arg1
= NULL
; }
760 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
766 if (_argo2
== Py_None
) { _arg2
= NULL
; }
767 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
774 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
776 wxPyEndAllowThreads(__tstate
);
777 if (PyErr_Occurred()) return NULL
;
778 } _resultobj
= Py_BuildValue("i",_result
);
782 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
783 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
784 PyObject
* _resultobj
;
786 wxDataObject
* _arg0
;
787 wxDataFormat
* _arg1
;
790 PyObject
* _argo0
= 0;
791 PyObject
* _argo1
= 0;
792 PyObject
* _argo3
= 0;
793 char *_kwnames
[] = { "self","format","len","buf", NULL
};
796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
806 if (_argo1
== Py_None
) { _arg1
= NULL
; }
807 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
813 if (_argo3
== Py_None
) { _arg3
= NULL
; }
814 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
821 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
823 wxPyEndAllowThreads(__tstate
);
824 if (PyErr_Occurred()) return NULL
;
825 } _resultobj
= Py_BuildValue("i",_result
);
829 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
830 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
831 PyObject
* _resultobj
;
833 wxDataObject
* _arg0
;
834 wxDataFormat
* _arg1
;
835 PyObject
* _argo0
= 0;
836 PyObject
* _argo1
= 0;
837 char *_kwnames
[] = { "self","format", NULL
};
840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
850 if (_argo1
== Py_None
) { _arg1
= NULL
; }
851 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
857 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
858 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
860 wxPyEndAllowThreads(__tstate
);
861 if (PyErr_Occurred()) return NULL
;
862 } _resultobj
= Py_BuildValue("i",_result
);
866 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
867 wxDataObjectSimple
*src
;
869 src
= (wxDataObjectSimple
*) ptr
;
870 dest
= (wxDataObject
*) src
;
871 return (void *) dest
;
874 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
875 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
876 PyObject
* _resultobj
;
877 wxDataObjectSimple
* _result
;
878 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
879 PyObject
* _argo0
= 0;
880 char *_kwnames
[] = { "format", NULL
};
884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
894 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
895 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
897 wxPyEndAllowThreads(__tstate
);
898 if (PyErr_Occurred()) return NULL
;
900 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
901 _resultobj
= Py_BuildValue("s",_ptemp
);
904 _resultobj
= Py_None
;
909 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
910 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
911 PyObject
* _resultobj
;
912 wxDataFormat
* _result
;
913 wxDataObjectSimple
* _arg0
;
914 PyObject
* _argo0
= 0;
915 char *_kwnames
[] = { "self", NULL
};
919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
929 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
930 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
931 _result
= (wxDataFormat
*) &_result_ref
;
933 wxPyEndAllowThreads(__tstate
);
934 if (PyErr_Occurred()) return NULL
;
936 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
937 _resultobj
= Py_BuildValue("s",_ptemp
);
940 _resultobj
= Py_None
;
945 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
946 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
947 PyObject
* _resultobj
;
948 wxDataObjectSimple
* _arg0
;
949 wxDataFormat
* _arg1
;
950 PyObject
* _argo0
= 0;
951 PyObject
* _argo1
= 0;
952 char *_kwnames
[] = { "self","format", NULL
};
955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
965 if (_argo1
== Py_None
) { _arg1
= NULL
; }
966 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
972 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
973 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
975 wxPyEndAllowThreads(__tstate
);
976 if (PyErr_Occurred()) return NULL
;
977 } Py_INCREF(Py_None
);
978 _resultobj
= Py_None
;
982 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
983 wxPyDataObjectSimple
*src
;
984 wxDataObjectSimple
*dest
;
985 src
= (wxPyDataObjectSimple
*) ptr
;
986 dest
= (wxDataObjectSimple
*) src
;
987 return (void *) dest
;
990 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
991 wxPyDataObjectSimple
*src
;
993 src
= (wxPyDataObjectSimple
*) ptr
;
994 dest
= (wxDataObject
*) src
;
995 return (void *) dest
;
998 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
999 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1001 wxPyDataObjectSimple
* _result
;
1002 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1003 PyObject
* _argo0
= 0;
1004 char *_kwnames
[] = { "format", NULL
};
1008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1018 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1019 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1021 wxPyEndAllowThreads(__tstate
);
1022 if (PyErr_Occurred()) return NULL
;
1024 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1025 _resultobj
= Py_BuildValue("s",_ptemp
);
1028 _resultobj
= Py_None
;
1033 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1034 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1035 PyObject
* _resultobj
;
1036 wxPyDataObjectSimple
* _arg0
;
1039 PyObject
* _argo0
= 0;
1040 PyObject
* _obj1
= 0;
1041 PyObject
* _obj2
= 0;
1042 char *_kwnames
[] = { "self","self","_class", NULL
};
1045 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1048 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1049 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1062 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1064 wxPyEndAllowThreads(__tstate
);
1065 if (PyErr_Occurred()) return NULL
;
1066 } Py_INCREF(Py_None
);
1067 _resultobj
= Py_None
;
1071 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1072 wxDataObjectComposite
*src
;
1074 src
= (wxDataObjectComposite
*) ptr
;
1075 dest
= (wxDataObject
*) src
;
1076 return (void *) dest
;
1079 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1080 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1081 PyObject
* _resultobj
;
1082 wxDataObjectComposite
* _result
;
1083 char *_kwnames
[] = { NULL
};
1087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1091 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1093 wxPyEndAllowThreads(__tstate
);
1094 if (PyErr_Occurred()) return NULL
;
1096 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1097 _resultobj
= Py_BuildValue("s",_ptemp
);
1100 _resultobj
= Py_None
;
1105 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1106 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1107 PyObject
* _resultobj
;
1108 wxDataObjectComposite
* _arg0
;
1109 wxDataObjectSimple
* _arg1
;
1110 int _arg2
= (int ) FALSE
;
1111 PyObject
* _argo0
= 0;
1112 PyObject
* _argo1
= 0;
1113 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1126 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1127 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1134 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1136 wxPyEndAllowThreads(__tstate
);
1137 if (PyErr_Occurred()) return NULL
;
1138 } Py_INCREF(Py_None
);
1139 _resultobj
= Py_None
;
1143 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1144 wxTextDataObject
*src
;
1145 wxDataObjectSimple
*dest
;
1146 src
= (wxTextDataObject
*) ptr
;
1147 dest
= (wxDataObjectSimple
*) src
;
1148 return (void *) dest
;
1151 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1152 wxTextDataObject
*src
;
1154 src
= (wxTextDataObject
*) ptr
;
1155 dest
= (wxDataObject
*) src
;
1156 return (void *) dest
;
1159 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1160 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1161 PyObject
* _resultobj
;
1162 wxTextDataObject
* _result
;
1163 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1164 PyObject
* _obj0
= 0;
1165 char *_kwnames
[] = { "text", NULL
};
1169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1173 _arg0
= wxString_in_helper(_obj0
);
1178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1179 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1181 wxPyEndAllowThreads(__tstate
);
1182 if (PyErr_Occurred()) return NULL
;
1184 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1185 _resultobj
= Py_BuildValue("s",_ptemp
);
1188 _resultobj
= Py_None
;
1197 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1198 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1199 PyObject
* _resultobj
;
1201 wxTextDataObject
* _arg0
;
1202 PyObject
* _argo0
= 0;
1203 char *_kwnames
[] = { "self", NULL
};
1206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1217 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1219 wxPyEndAllowThreads(__tstate
);
1220 if (PyErr_Occurred()) return NULL
;
1221 } _resultobj
= Py_BuildValue("i",_result
);
1225 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1226 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1227 PyObject
* _resultobj
;
1229 wxTextDataObject
* _arg0
;
1230 PyObject
* _argo0
= 0;
1231 char *_kwnames
[] = { "self", NULL
};
1234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1244 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1245 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1247 wxPyEndAllowThreads(__tstate
);
1248 if (PyErr_Occurred()) return NULL
;
1251 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1253 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1262 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1263 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1264 PyObject
* _resultobj
;
1265 wxTextDataObject
* _arg0
;
1267 PyObject
* _argo0
= 0;
1268 PyObject
* _obj1
= 0;
1269 char *_kwnames
[] = { "self","text", NULL
};
1272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1282 _arg1
= wxString_in_helper(_obj1
);
1287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1288 wxTextDataObject_SetText(_arg0
,*_arg1
);
1290 wxPyEndAllowThreads(__tstate
);
1291 if (PyErr_Occurred()) return NULL
;
1292 } Py_INCREF(Py_None
);
1293 _resultobj
= Py_None
;
1301 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1302 wxPyTextDataObject
*src
;
1303 wxTextDataObject
*dest
;
1304 src
= (wxPyTextDataObject
*) ptr
;
1305 dest
= (wxTextDataObject
*) src
;
1306 return (void *) dest
;
1309 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1310 wxPyTextDataObject
*src
;
1311 wxDataObjectSimple
*dest
;
1312 src
= (wxPyTextDataObject
*) ptr
;
1313 dest
= (wxDataObjectSimple
*) src
;
1314 return (void *) dest
;
1317 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1318 wxPyTextDataObject
*src
;
1320 src
= (wxPyTextDataObject
*) ptr
;
1321 dest
= (wxDataObject
*) src
;
1322 return (void *) dest
;
1325 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1326 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1327 PyObject
* _resultobj
;
1328 wxPyTextDataObject
* _result
;
1329 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1330 PyObject
* _obj0
= 0;
1331 char *_kwnames
[] = { "text", NULL
};
1335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1339 _arg0
= wxString_in_helper(_obj0
);
1344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1345 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1347 wxPyEndAllowThreads(__tstate
);
1348 if (PyErr_Occurred()) return NULL
;
1350 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1351 _resultobj
= Py_BuildValue("s",_ptemp
);
1354 _resultobj
= Py_None
;
1363 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1364 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1365 PyObject
* _resultobj
;
1366 wxPyTextDataObject
* _arg0
;
1369 PyObject
* _argo0
= 0;
1370 PyObject
* _obj1
= 0;
1371 PyObject
* _obj2
= 0;
1372 char *_kwnames
[] = { "self","self","_class", NULL
};
1375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1392 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1394 wxPyEndAllowThreads(__tstate
);
1395 if (PyErr_Occurred()) return NULL
;
1396 } Py_INCREF(Py_None
);
1397 _resultobj
= Py_None
;
1401 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1402 wxBitmapDataObject
*src
;
1403 wxDataObjectSimple
*dest
;
1404 src
= (wxBitmapDataObject
*) ptr
;
1405 dest
= (wxDataObjectSimple
*) src
;
1406 return (void *) dest
;
1409 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1410 wxBitmapDataObject
*src
;
1412 src
= (wxBitmapDataObject
*) ptr
;
1413 dest
= (wxDataObject
*) src
;
1414 return (void *) dest
;
1417 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1418 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1419 PyObject
* _resultobj
;
1420 wxBitmapDataObject
* _result
;
1421 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1422 PyObject
* _argo0
= 0;
1423 char *_kwnames
[] = { "bitmap", NULL
};
1427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1438 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1440 wxPyEndAllowThreads(__tstate
);
1441 if (PyErr_Occurred()) return NULL
;
1443 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1444 _resultobj
= Py_BuildValue("s",_ptemp
);
1447 _resultobj
= Py_None
;
1452 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1453 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1454 PyObject
* _resultobj
;
1456 wxBitmapDataObject
* _arg0
;
1457 PyObject
* _argo0
= 0;
1458 char *_kwnames
[] = { "self", NULL
};
1462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1473 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1475 wxPyEndAllowThreads(__tstate
);
1476 if (PyErr_Occurred()) return NULL
;
1477 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1478 _resultobj
= Py_BuildValue("s",_ptemp
);
1482 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1483 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1484 PyObject
* _resultobj
;
1485 wxBitmapDataObject
* _arg0
;
1487 PyObject
* _argo0
= 0;
1488 PyObject
* _argo1
= 0;
1489 char *_kwnames
[] = { "self","bitmap", NULL
};
1492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1502 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1503 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1510 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1512 wxPyEndAllowThreads(__tstate
);
1513 if (PyErr_Occurred()) return NULL
;
1514 } Py_INCREF(Py_None
);
1515 _resultobj
= Py_None
;
1519 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1520 wxPyBitmapDataObject
*src
;
1521 wxBitmapDataObject
*dest
;
1522 src
= (wxPyBitmapDataObject
*) ptr
;
1523 dest
= (wxBitmapDataObject
*) src
;
1524 return (void *) dest
;
1527 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1528 wxPyBitmapDataObject
*src
;
1529 wxDataObjectSimple
*dest
;
1530 src
= (wxPyBitmapDataObject
*) ptr
;
1531 dest
= (wxDataObjectSimple
*) src
;
1532 return (void *) dest
;
1535 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1536 wxPyBitmapDataObject
*src
;
1538 src
= (wxPyBitmapDataObject
*) ptr
;
1539 dest
= (wxDataObject
*) src
;
1540 return (void *) dest
;
1543 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1544 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1545 PyObject
* _resultobj
;
1546 wxPyBitmapDataObject
* _result
;
1547 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1548 PyObject
* _argo0
= 0;
1549 char *_kwnames
[] = { "bitmap", NULL
};
1553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1564 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1566 wxPyEndAllowThreads(__tstate
);
1567 if (PyErr_Occurred()) return NULL
;
1569 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1570 _resultobj
= Py_BuildValue("s",_ptemp
);
1573 _resultobj
= Py_None
;
1578 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1579 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1580 PyObject
* _resultobj
;
1581 wxPyBitmapDataObject
* _arg0
;
1584 PyObject
* _argo0
= 0;
1585 PyObject
* _obj1
= 0;
1586 PyObject
* _obj2
= 0;
1587 char *_kwnames
[] = { "self","self","_class", NULL
};
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1607 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1609 wxPyEndAllowThreads(__tstate
);
1610 if (PyErr_Occurred()) return NULL
;
1611 } Py_INCREF(Py_None
);
1612 _resultobj
= Py_None
;
1616 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1617 wxFileDataObject
*src
;
1618 wxDataObjectSimple
*dest
;
1619 src
= (wxFileDataObject
*) ptr
;
1620 dest
= (wxDataObjectSimple
*) src
;
1621 return (void *) dest
;
1624 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1625 wxFileDataObject
*src
;
1627 src
= (wxFileDataObject
*) ptr
;
1628 dest
= (wxDataObject
*) src
;
1629 return (void *) dest
;
1632 #define new_wxFileDataObject() (new wxFileDataObject())
1633 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1634 PyObject
* _resultobj
;
1635 wxFileDataObject
* _result
;
1636 char *_kwnames
[] = { NULL
};
1640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1644 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1646 wxPyEndAllowThreads(__tstate
);
1647 if (PyErr_Occurred()) return NULL
;
1649 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1650 _resultobj
= Py_BuildValue("s",_ptemp
);
1653 _resultobj
= Py_None
;
1658 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1659 const wxArrayString
& strings
= self
->GetFilenames();
1660 return wxArrayString2PyList_helper(strings
);
1662 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1663 PyObject
* _resultobj
;
1665 wxFileDataObject
* _arg0
;
1666 PyObject
* _argo0
= 0;
1667 char *_kwnames
[] = { "self", NULL
};
1670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1680 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1681 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1683 wxPyEndAllowThreads(__tstate
);
1684 if (PyErr_Occurred()) return NULL
;
1686 _resultobj
= _result
;
1691 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1692 wxCustomDataObject
*src
;
1693 wxDataObjectSimple
*dest
;
1694 src
= (wxCustomDataObject
*) ptr
;
1695 dest
= (wxDataObjectSimple
*) src
;
1696 return (void *) dest
;
1699 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1700 wxCustomDataObject
*src
;
1702 src
= (wxCustomDataObject
*) ptr
;
1703 dest
= (wxDataObject
*) src
;
1704 return (void *) dest
;
1707 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1708 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1709 PyObject
* _resultobj
;
1710 wxCustomDataObject
* _result
;
1711 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1712 PyObject
* _argo0
= 0;
1713 char *_kwnames
[] = { "format", NULL
};
1717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1727 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1728 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1730 wxPyEndAllowThreads(__tstate
);
1731 if (PyErr_Occurred()) return NULL
;
1733 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1734 _resultobj
= Py_BuildValue("s",_ptemp
);
1737 _resultobj
= Py_None
;
1742 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1743 if (PyString_Check(data
)) {
1744 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1747 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1749 wxCustomDataObject
* _arg0
;
1751 PyObject
* _argo0
= 0;
1752 PyObject
* _obj1
= 0;
1753 char *_kwnames
[] = { "self","data", NULL
};
1756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1770 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1772 wxPyEndAllowThreads(__tstate
);
1773 if (PyErr_Occurred()) return NULL
;
1774 } Py_INCREF(Py_None
);
1775 _resultobj
= Py_None
;
1779 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1780 if (PyString_Check(data
)) {
1781 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1785 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1786 PyObject
* _resultobj
;
1788 wxCustomDataObject
* _arg0
;
1790 PyObject
* _argo0
= 0;
1791 PyObject
* _obj1
= 0;
1792 char *_kwnames
[] = { "self","data", NULL
};
1795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1809 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1811 wxPyEndAllowThreads(__tstate
);
1812 if (PyErr_Occurred()) return NULL
;
1813 } _resultobj
= Py_BuildValue("i",_result
);
1817 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1818 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1819 PyObject
* _resultobj
;
1821 wxCustomDataObject
* _arg0
;
1822 PyObject
* _argo0
= 0;
1823 char *_kwnames
[] = { "self", NULL
};
1826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1837 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1839 wxPyEndAllowThreads(__tstate
);
1840 if (PyErr_Occurred()) return NULL
;
1841 } _resultobj
= Py_BuildValue("i",_result
);
1845 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1846 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1848 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1849 PyObject
* _resultobj
;
1851 wxCustomDataObject
* _arg0
;
1852 PyObject
* _argo0
= 0;
1853 char *_kwnames
[] = { "self", NULL
};
1856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1867 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1869 wxPyEndAllowThreads(__tstate
);
1870 if (PyErr_Occurred()) return NULL
;
1872 _resultobj
= _result
;
1877 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1878 wxURLDataObject
*src
;
1879 wxDataObjectComposite
*dest
;
1880 src
= (wxURLDataObject
*) ptr
;
1881 dest
= (wxDataObjectComposite
*) src
;
1882 return (void *) dest
;
1885 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1886 wxURLDataObject
*src
;
1888 src
= (wxURLDataObject
*) ptr
;
1889 dest
= (wxDataObject
*) src
;
1890 return (void *) dest
;
1893 #define new_wxURLDataObject() (new wxURLDataObject())
1894 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1895 PyObject
* _resultobj
;
1896 wxURLDataObject
* _result
;
1897 char *_kwnames
[] = { NULL
};
1901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1905 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1907 wxPyEndAllowThreads(__tstate
);
1908 if (PyErr_Occurred()) return NULL
;
1910 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1911 _resultobj
= Py_BuildValue("s",_ptemp
);
1914 _resultobj
= Py_None
;
1919 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1920 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1921 PyObject
* _resultobj
;
1923 wxURLDataObject
* _arg0
;
1924 PyObject
* _argo0
= 0;
1925 char *_kwnames
[] = { "self", NULL
};
1928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1938 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1939 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1941 wxPyEndAllowThreads(__tstate
);
1942 if (PyErr_Occurred()) return NULL
;
1945 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1947 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1956 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1957 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1958 PyObject
* _resultobj
;
1959 wxURLDataObject
* _arg0
;
1961 PyObject
* _argo0
= 0;
1962 PyObject
* _obj1
= 0;
1963 char *_kwnames
[] = { "self","url", NULL
};
1966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1976 _arg1
= wxString_in_helper(_obj1
);
1981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1982 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1984 wxPyEndAllowThreads(__tstate
);
1985 if (PyErr_Occurred()) return NULL
;
1986 } Py_INCREF(Py_None
);
1987 _resultobj
= Py_None
;
1995 static void *SwigwxClipboardTowxObject(void *ptr
) {
1998 src
= (wxClipboard
*) ptr
;
1999 dest
= (wxObject
*) src
;
2000 return (void *) dest
;
2003 #define new_wxClipboard() (new wxClipboard())
2004 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2005 PyObject
* _resultobj
;
2006 wxClipboard
* _result
;
2007 char *_kwnames
[] = { NULL
};
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2015 _result
= (wxClipboard
*)new_wxClipboard();
2017 wxPyEndAllowThreads(__tstate
);
2018 if (PyErr_Occurred()) return NULL
;
2020 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2021 _resultobj
= Py_BuildValue("s",_ptemp
);
2024 _resultobj
= Py_None
;
2029 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2030 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2031 PyObject
* _resultobj
;
2033 wxClipboard
* _arg0
;
2034 PyObject
* _argo0
= 0;
2035 char *_kwnames
[] = { "self", NULL
};
2038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2048 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2049 _result
= (bool )wxClipboard_Open(_arg0
);
2051 wxPyEndAllowThreads(__tstate
);
2052 if (PyErr_Occurred()) return NULL
;
2053 } _resultobj
= Py_BuildValue("i",_result
);
2057 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2058 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2059 PyObject
* _resultobj
;
2060 wxClipboard
* _arg0
;
2061 PyObject
* _argo0
= 0;
2062 char *_kwnames
[] = { "self", NULL
};
2065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2076 wxClipboard_Close(_arg0
);
2078 wxPyEndAllowThreads(__tstate
);
2079 if (PyErr_Occurred()) return NULL
;
2080 } Py_INCREF(Py_None
);
2081 _resultobj
= Py_None
;
2085 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2086 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2087 PyObject
* _resultobj
;
2089 wxClipboard
* _arg0
;
2090 PyObject
* _argo0
= 0;
2091 char *_kwnames
[] = { "self", NULL
};
2094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2105 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2107 wxPyEndAllowThreads(__tstate
);
2108 if (PyErr_Occurred()) return NULL
;
2109 } _resultobj
= Py_BuildValue("i",_result
);
2113 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2114 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2115 PyObject
* _resultobj
;
2117 wxClipboard
* _arg0
;
2118 wxDataObject
* _arg1
;
2119 PyObject
* _argo0
= 0;
2120 PyObject
* _argo1
= 0;
2121 char *_kwnames
[] = { "self","data", NULL
};
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2134 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2135 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2142 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2144 wxPyEndAllowThreads(__tstate
);
2145 if (PyErr_Occurred()) return NULL
;
2146 } _resultobj
= Py_BuildValue("i",_result
);
2150 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2151 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2152 PyObject
* _resultobj
;
2154 wxClipboard
* _arg0
;
2155 wxDataObject
* _arg1
;
2156 PyObject
* _argo0
= 0;
2157 PyObject
* _argo1
= 0;
2158 char *_kwnames
[] = { "self","data", NULL
};
2161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2171 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2172 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2178 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2179 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2181 wxPyEndAllowThreads(__tstate
);
2182 if (PyErr_Occurred()) return NULL
;
2183 } _resultobj
= Py_BuildValue("i",_result
);
2187 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2188 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2189 PyObject
* _resultobj
;
2191 wxClipboard
* _arg0
;
2192 wxDataFormat
* _arg1
;
2193 PyObject
* _argo0
= 0;
2194 PyObject
* _argo1
= 0;
2195 char *_kwnames
[] = { "self","format", NULL
};
2198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2208 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2209 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2216 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2218 wxPyEndAllowThreads(__tstate
);
2219 if (PyErr_Occurred()) return NULL
;
2220 } _resultobj
= Py_BuildValue("i",_result
);
2224 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2225 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2226 PyObject
* _resultobj
;
2228 wxClipboard
* _arg0
;
2229 wxDataObject
* _arg1
;
2230 PyObject
* _argo0
= 0;
2231 PyObject
* _argo1
= 0;
2232 char *_kwnames
[] = { "self","data", NULL
};
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2253 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2255 wxPyEndAllowThreads(__tstate
);
2256 if (PyErr_Occurred()) return NULL
;
2257 } _resultobj
= Py_BuildValue("i",_result
);
2261 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2262 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2263 PyObject
* _resultobj
;
2264 wxClipboard
* _arg0
;
2265 PyObject
* _argo0
= 0;
2266 char *_kwnames
[] = { "self", NULL
};
2269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2280 wxClipboard_Clear(_arg0
);
2282 wxPyEndAllowThreads(__tstate
);
2283 if (PyErr_Occurred()) return NULL
;
2284 } Py_INCREF(Py_None
);
2285 _resultobj
= Py_None
;
2289 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2290 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2291 PyObject
* _resultobj
;
2293 wxClipboard
* _arg0
;
2294 PyObject
* _argo0
= 0;
2295 char *_kwnames
[] = { "self", NULL
};
2298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2308 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2309 _result
= (bool )wxClipboard_Flush(_arg0
);
2311 wxPyEndAllowThreads(__tstate
);
2312 if (PyErr_Occurred()) return NULL
;
2313 } _resultobj
= Py_BuildValue("i",_result
);
2317 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2318 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2319 PyObject
* _resultobj
;
2320 wxClipboard
* _arg0
;
2321 int _arg1
= (int ) FALSE
;
2322 PyObject
* _argo0
= 0;
2323 char *_kwnames
[] = { "self","primary", NULL
};
2326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2337 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2339 wxPyEndAllowThreads(__tstate
);
2340 if (PyErr_Occurred()) return NULL
;
2341 } Py_INCREF(Py_None
);
2342 _resultobj
= Py_None
;
2346 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2347 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
* _resultobj
;
2349 wxPyDropSource
* _result
;
2350 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2351 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2352 PyObject
* _argo0
= 0;
2353 PyObject
* _argo1
= 0;
2354 char *_kwnames
[] = { "win","go", NULL
};
2358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2368 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2369 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2375 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2376 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2378 wxPyEndAllowThreads(__tstate
);
2379 if (PyErr_Occurred()) return NULL
;
2381 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2382 _resultobj
= Py_BuildValue("s",_ptemp
);
2385 _resultobj
= Py_None
;
2390 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2391 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2392 PyObject
* _resultobj
;
2393 wxPyDropSource
* _arg0
;
2397 PyObject
* _argo0
= 0;
2398 PyObject
* _obj1
= 0;
2399 PyObject
* _obj2
= 0;
2400 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2420 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2422 wxPyEndAllowThreads(__tstate
);
2423 if (PyErr_Occurred()) return NULL
;
2424 } Py_INCREF(Py_None
);
2425 _resultobj
= Py_None
;
2429 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2430 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2431 PyObject
* _resultobj
;
2432 wxPyDropSource
* _arg0
;
2433 PyObject
* _argo0
= 0;
2434 char *_kwnames
[] = { "self", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2448 delete_wxPyDropSource(_arg0
);
2450 wxPyEndAllowThreads(__tstate
);
2451 if (PyErr_Occurred()) return NULL
;
2452 } Py_INCREF(Py_None
);
2453 _resultobj
= Py_None
;
2457 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2458 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2460 wxPyDropSource
* _arg0
;
2461 wxDataObject
* _arg1
;
2462 PyObject
* _argo0
= 0;
2463 PyObject
* _argo1
= 0;
2464 char *_kwnames
[] = { "self","data", NULL
};
2467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2477 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2478 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2485 wxDropSource_SetData(_arg0
,*_arg1
);
2487 wxPyEndAllowThreads(__tstate
);
2488 if (PyErr_Occurred()) return NULL
;
2489 } Py_INCREF(Py_None
);
2490 _resultobj
= Py_None
;
2494 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2495 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2496 PyObject
* _resultobj
;
2497 wxDataObject
* _result
;
2498 wxPyDropSource
* _arg0
;
2499 PyObject
* _argo0
= 0;
2500 char *_kwnames
[] = { "self", NULL
};
2504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2514 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2515 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2517 wxPyEndAllowThreads(__tstate
);
2518 if (PyErr_Occurred()) return NULL
;
2520 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2521 _resultobj
= Py_BuildValue("s",_ptemp
);
2524 _resultobj
= Py_None
;
2529 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2530 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2531 PyObject
* _resultobj
;
2532 wxPyDropSource
* _arg0
;
2535 PyObject
* _argo0
= 0;
2536 PyObject
* _argo2
= 0;
2537 char *_kwnames
[] = { "self","res","cursor", NULL
};
2540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2550 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2551 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2558 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2560 wxPyEndAllowThreads(__tstate
);
2561 if (PyErr_Occurred()) return NULL
;
2562 } Py_INCREF(Py_None
);
2563 _resultobj
= Py_None
;
2567 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2568 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2569 PyObject
* _resultobj
;
2570 wxDragResult _result
;
2571 wxPyDropSource
* _arg0
;
2572 int _arg1
= (int ) FALSE
;
2573 PyObject
* _argo0
= 0;
2574 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2588 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2590 wxPyEndAllowThreads(__tstate
);
2591 if (PyErr_Occurred()) return NULL
;
2592 } _resultobj
= Py_BuildValue("i",_result
);
2596 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2597 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2598 PyObject
* _resultobj
;
2600 wxPyDropSource
* _arg0
;
2602 PyObject
* _argo0
= 0;
2603 char *_kwnames
[] = { "self","effect", NULL
};
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2617 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2619 wxPyEndAllowThreads(__tstate
);
2620 if (PyErr_Occurred()) return NULL
;
2621 } _resultobj
= Py_BuildValue("i",_result
);
2625 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2626 wxPyDropTarget
*src
;
2628 src
= (wxPyDropTarget
*) ptr
;
2629 dest
= (wxDropTarget
*) src
;
2630 return (void *) dest
;
2633 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2634 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2635 PyObject
* _resultobj
;
2636 wxPyDropTarget
* _result
;
2637 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2638 PyObject
* _argo0
= 0;
2639 char *_kwnames
[] = { "dataObject", NULL
};
2643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2654 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2656 wxPyEndAllowThreads(__tstate
);
2657 if (PyErr_Occurred()) return NULL
;
2659 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2660 _resultobj
= Py_BuildValue("s",_ptemp
);
2663 _resultobj
= Py_None
;
2668 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2669 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
* _resultobj
;
2671 wxPyDropTarget
* _arg0
;
2674 PyObject
* _argo0
= 0;
2675 PyObject
* _obj1
= 0;
2676 PyObject
* _obj2
= 0;
2677 char *_kwnames
[] = { "self","self","_class", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2697 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2699 wxPyEndAllowThreads(__tstate
);
2700 if (PyErr_Occurred()) return NULL
;
2701 } Py_INCREF(Py_None
);
2702 _resultobj
= Py_None
;
2706 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2707 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2708 PyObject
* _resultobj
;
2709 wxPyDropTarget
* _arg0
;
2710 PyObject
* _argo0
= 0;
2711 char *_kwnames
[] = { "self", NULL
};
2714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2725 delete_wxPyDropTarget(_arg0
);
2727 wxPyEndAllowThreads(__tstate
);
2728 if (PyErr_Occurred()) return NULL
;
2729 } Py_INCREF(Py_None
);
2730 _resultobj
= Py_None
;
2734 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2735 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2737 wxDataObject
* _result
;
2738 wxPyDropTarget
* _arg0
;
2739 PyObject
* _argo0
= 0;
2740 char *_kwnames
[] = { "self", NULL
};
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2755 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2757 wxPyEndAllowThreads(__tstate
);
2758 if (PyErr_Occurred()) return NULL
;
2760 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2761 _resultobj
= Py_BuildValue("s",_ptemp
);
2764 _resultobj
= Py_None
;
2769 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2770 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2771 PyObject
* _resultobj
;
2772 wxPyDropTarget
* _arg0
;
2773 wxDataObject
* _arg1
;
2774 PyObject
* _argo0
= 0;
2775 PyObject
* _argo1
= 0;
2776 char *_kwnames
[] = { "self","dataObject", NULL
};
2779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2789 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2790 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2797 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2799 wxPyEndAllowThreads(__tstate
);
2800 if (PyErr_Occurred()) return NULL
;
2801 } Py_INCREF(Py_None
);
2802 _resultobj
= Py_None
;
2806 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2807 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2808 PyObject
* _resultobj
;
2809 wxDragResult _result
;
2810 wxPyDropTarget
* _arg0
;
2814 PyObject
* _argo0
= 0;
2815 char *_kwnames
[] = { "self","x","y","def", NULL
};
2818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2828 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2829 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2831 wxPyEndAllowThreads(__tstate
);
2832 if (PyErr_Occurred()) return NULL
;
2833 } _resultobj
= Py_BuildValue("i",_result
);
2837 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2838 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
* _resultobj
;
2840 wxDragResult _result
;
2841 wxPyDropTarget
* _arg0
;
2845 PyObject
* _argo0
= 0;
2846 char *_kwnames
[] = { "self","x","y","def", NULL
};
2849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2860 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2862 wxPyEndAllowThreads(__tstate
);
2863 if (PyErr_Occurred()) return NULL
;
2864 } _resultobj
= Py_BuildValue("i",_result
);
2868 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2869 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2870 PyObject
* _resultobj
;
2871 wxPyDropTarget
* _arg0
;
2872 PyObject
* _argo0
= 0;
2873 char *_kwnames
[] = { "self", NULL
};
2876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2886 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2887 wxPyDropTarget_base_OnLeave(_arg0
);
2889 wxPyEndAllowThreads(__tstate
);
2890 if (PyErr_Occurred()) return NULL
;
2891 } Py_INCREF(Py_None
);
2892 _resultobj
= Py_None
;
2896 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2897 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2898 PyObject
* _resultobj
;
2900 wxPyDropTarget
* _arg0
;
2903 PyObject
* _argo0
= 0;
2904 char *_kwnames
[] = { "self","x","y", NULL
};
2907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2918 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2920 wxPyEndAllowThreads(__tstate
);
2921 if (PyErr_Occurred()) return NULL
;
2922 } _resultobj
= Py_BuildValue("i",_result
);
2926 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2927 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2928 PyObject
* _resultobj
;
2930 wxPyDropTarget
* _arg0
;
2931 PyObject
* _argo0
= 0;
2932 char *_kwnames
[] = { "self", NULL
};
2935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2946 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
2948 wxPyEndAllowThreads(__tstate
);
2949 if (PyErr_Occurred()) return NULL
;
2950 } _resultobj
= Py_BuildValue("i",_result
);
2954 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
2955 wxPyTextDropTarget
*src
;
2956 wxPyDropTarget
*dest
;
2957 src
= (wxPyTextDropTarget
*) ptr
;
2958 dest
= (wxPyDropTarget
*) src
;
2959 return (void *) dest
;
2962 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
2963 wxPyTextDropTarget
*src
;
2965 src
= (wxPyTextDropTarget
*) ptr
;
2966 dest
= (wxDropTarget
*) src
;
2967 return (void *) dest
;
2970 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2971 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2972 PyObject
* _resultobj
;
2973 wxPyTextDropTarget
* _result
;
2974 char *_kwnames
[] = { NULL
};
2978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
2981 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2982 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
2984 wxPyEndAllowThreads(__tstate
);
2985 if (PyErr_Occurred()) return NULL
;
2987 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
2988 _resultobj
= Py_BuildValue("s",_ptemp
);
2991 _resultobj
= Py_None
;
2996 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2997 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2998 PyObject
* _resultobj
;
2999 wxPyTextDropTarget
* _arg0
;
3002 PyObject
* _argo0
= 0;
3003 PyObject
* _obj1
= 0;
3004 PyObject
* _obj2
= 0;
3005 char *_kwnames
[] = { "self","self","_class", NULL
};
3008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3025 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3027 wxPyEndAllowThreads(__tstate
);
3028 if (PyErr_Occurred()) return NULL
;
3029 } Py_INCREF(Py_None
);
3030 _resultobj
= Py_None
;
3034 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3035 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3036 PyObject
* _resultobj
;
3037 wxDragResult _result
;
3038 wxPyTextDropTarget
* _arg0
;
3042 PyObject
* _argo0
= 0;
3043 char *_kwnames
[] = { "self","x","y","def", NULL
};
3046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3057 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3059 wxPyEndAllowThreads(__tstate
);
3060 if (PyErr_Occurred()) return NULL
;
3061 } _resultobj
= Py_BuildValue("i",_result
);
3065 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3066 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3067 PyObject
* _resultobj
;
3068 wxDragResult _result
;
3069 wxPyTextDropTarget
* _arg0
;
3073 PyObject
* _argo0
= 0;
3074 char *_kwnames
[] = { "self","x","y","def", NULL
};
3077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3088 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3090 wxPyEndAllowThreads(__tstate
);
3091 if (PyErr_Occurred()) return NULL
;
3092 } _resultobj
= Py_BuildValue("i",_result
);
3096 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3097 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
* _resultobj
;
3099 wxPyTextDropTarget
* _arg0
;
3100 PyObject
* _argo0
= 0;
3101 char *_kwnames
[] = { "self", NULL
};
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3115 wxTextDropTarget_base_OnLeave(_arg0
);
3117 wxPyEndAllowThreads(__tstate
);
3118 if (PyErr_Occurred()) return NULL
;
3119 } Py_INCREF(Py_None
);
3120 _resultobj
= Py_None
;
3124 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3125 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3126 PyObject
* _resultobj
;
3128 wxPyTextDropTarget
* _arg0
;
3131 PyObject
* _argo0
= 0;
3132 char *_kwnames
[] = { "self","x","y", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3146 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3148 wxPyEndAllowThreads(__tstate
);
3149 if (PyErr_Occurred()) return NULL
;
3150 } _resultobj
= Py_BuildValue("i",_result
);
3154 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3155 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3156 PyObject
* _resultobj
;
3157 wxDragResult _result
;
3158 wxPyTextDropTarget
* _arg0
;
3162 PyObject
* _argo0
= 0;
3163 char *_kwnames
[] = { "self","x","y","def", NULL
};
3166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3177 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3179 wxPyEndAllowThreads(__tstate
);
3180 if (PyErr_Occurred()) return NULL
;
3181 } _resultobj
= Py_BuildValue("i",_result
);
3185 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3186 wxPyFileDropTarget
*src
;
3187 wxPyDropTarget
*dest
;
3188 src
= (wxPyFileDropTarget
*) ptr
;
3189 dest
= (wxPyDropTarget
*) src
;
3190 return (void *) dest
;
3193 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3194 wxPyFileDropTarget
*src
;
3196 src
= (wxPyFileDropTarget
*) ptr
;
3197 dest
= (wxDropTarget
*) src
;
3198 return (void *) dest
;
3201 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3202 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3203 PyObject
* _resultobj
;
3204 wxPyFileDropTarget
* _result
;
3205 char *_kwnames
[] = { NULL
};
3209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3212 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3213 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3215 wxPyEndAllowThreads(__tstate
);
3216 if (PyErr_Occurred()) return NULL
;
3218 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3219 _resultobj
= Py_BuildValue("s",_ptemp
);
3222 _resultobj
= Py_None
;
3227 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3228 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3229 PyObject
* _resultobj
;
3230 wxPyFileDropTarget
* _arg0
;
3233 PyObject
* _argo0
= 0;
3234 PyObject
* _obj1
= 0;
3235 PyObject
* _obj2
= 0;
3236 char *_kwnames
[] = { "self","self","_class", NULL
};
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3256 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3258 wxPyEndAllowThreads(__tstate
);
3259 if (PyErr_Occurred()) return NULL
;
3260 } Py_INCREF(Py_None
);
3261 _resultobj
= Py_None
;
3265 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3266 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3267 PyObject
* _resultobj
;
3268 wxDragResult _result
;
3269 wxPyFileDropTarget
* _arg0
;
3273 PyObject
* _argo0
= 0;
3274 char *_kwnames
[] = { "self","x","y","def", NULL
};
3277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3287 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3288 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3290 wxPyEndAllowThreads(__tstate
);
3291 if (PyErr_Occurred()) return NULL
;
3292 } _resultobj
= Py_BuildValue("i",_result
);
3296 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3297 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3298 PyObject
* _resultobj
;
3299 wxDragResult _result
;
3300 wxPyFileDropTarget
* _arg0
;
3304 PyObject
* _argo0
= 0;
3305 char *_kwnames
[] = { "self","x","y","def", NULL
};
3308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3319 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3321 wxPyEndAllowThreads(__tstate
);
3322 if (PyErr_Occurred()) return NULL
;
3323 } _resultobj
= Py_BuildValue("i",_result
);
3327 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3328 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3329 PyObject
* _resultobj
;
3330 wxPyFileDropTarget
* _arg0
;
3331 PyObject
* _argo0
= 0;
3332 char *_kwnames
[] = { "self", NULL
};
3335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3345 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3346 wxFileDropTarget_base_OnLeave(_arg0
);
3348 wxPyEndAllowThreads(__tstate
);
3349 if (PyErr_Occurred()) return NULL
;
3350 } Py_INCREF(Py_None
);
3351 _resultobj
= Py_None
;
3355 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3356 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
* _resultobj
;
3359 wxPyFileDropTarget
* _arg0
;
3362 PyObject
* _argo0
= 0;
3363 char *_kwnames
[] = { "self","x","y", NULL
};
3366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3377 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3379 wxPyEndAllowThreads(__tstate
);
3380 if (PyErr_Occurred()) return NULL
;
3381 } _resultobj
= Py_BuildValue("i",_result
);
3385 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3386 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3387 PyObject
* _resultobj
;
3388 wxDragResult _result
;
3389 wxPyFileDropTarget
* _arg0
;
3393 PyObject
* _argo0
= 0;
3394 char *_kwnames
[] = { "self","x","y","def", NULL
};
3397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3408 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3410 wxPyEndAllowThreads(__tstate
);
3411 if (PyErr_Occurred()) return NULL
;
3412 } _resultobj
= Py_BuildValue("i",_result
);
3416 static PyMethodDef clip_dndcMethods
[] = {
3417 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3418 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3419 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3420 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3421 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3422 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3423 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3424 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3425 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3426 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3427 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3428 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3429 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3430 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3510 * This table is used by the pointer type-checker
3512 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3513 { "_signed_long","_long",0},
3514 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3515 { "_wxPrintQuality","_wxCoord",0},
3516 { "_wxPrintQuality","_int",0},
3517 { "_wxPrintQuality","_signed_int",0},
3518 { "_wxPrintQuality","_unsigned_int",0},
3519 { "_wxPrintQuality","_wxWindowID",0},
3520 { "_wxPrintQuality","_uint",0},
3521 { "_wxPrintQuality","_EBool",0},
3522 { "_wxPrintQuality","_size_t",0},
3523 { "_wxPrintQuality","_time_t",0},
3524 { "_byte","_unsigned_char",0},
3525 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3526 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3527 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3528 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3529 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3530 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3531 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3532 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3533 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3534 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3535 { "_long","_unsigned_long",0},
3536 { "_long","_signed_long",0},
3537 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3538 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3539 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3540 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3541 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3542 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3543 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3544 { "_size_t","_wxCoord",0},
3545 { "_size_t","_wxPrintQuality",0},
3546 { "_size_t","_time_t",0},
3547 { "_size_t","_unsigned_int",0},
3548 { "_size_t","_int",0},
3549 { "_size_t","_wxWindowID",0},
3550 { "_size_t","_uint",0},
3551 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3552 { "_uint","_wxCoord",0},
3553 { "_uint","_wxPrintQuality",0},
3554 { "_uint","_time_t",0},
3555 { "_uint","_size_t",0},
3556 { "_uint","_unsigned_int",0},
3557 { "_uint","_int",0},
3558 { "_uint","_wxWindowID",0},
3559 { "_wxChar","_char",0},
3560 { "_char","_wxChar",0},
3561 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3562 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3563 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3564 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3565 { "_EBool","_wxCoord",0},
3566 { "_EBool","_wxPrintQuality",0},
3567 { "_EBool","_signed_int",0},
3568 { "_EBool","_int",0},
3569 { "_EBool","_wxWindowID",0},
3570 { "_unsigned_long","_long",0},
3571 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3572 { "_signed_int","_wxCoord",0},
3573 { "_signed_int","_wxPrintQuality",0},
3574 { "_signed_int","_EBool",0},
3575 { "_signed_int","_wxWindowID",0},
3576 { "_signed_int","_int",0},
3577 { "_WXTYPE","_short",0},
3578 { "_WXTYPE","_signed_short",0},
3579 { "_WXTYPE","_unsigned_short",0},
3580 { "_unsigned_short","_WXTYPE",0},
3581 { "_unsigned_short","_short",0},
3582 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3583 { "_signed_short","_WXTYPE",0},
3584 { "_signed_short","_short",0},
3585 { "_unsigned_char","_byte",0},
3586 { "_unsigned_int","_wxCoord",0},
3587 { "_unsigned_int","_wxPrintQuality",0},
3588 { "_unsigned_int","_time_t",0},
3589 { "_unsigned_int","_size_t",0},
3590 { "_unsigned_int","_uint",0},
3591 { "_unsigned_int","_wxWindowID",0},
3592 { "_unsigned_int","_int",0},
3593 { "_short","_WXTYPE",0},
3594 { "_short","_unsigned_short",0},
3595 { "_short","_signed_short",0},
3596 { "_wxWindowID","_wxCoord",0},
3597 { "_wxWindowID","_wxPrintQuality",0},
3598 { "_wxWindowID","_time_t",0},
3599 { "_wxWindowID","_size_t",0},
3600 { "_wxWindowID","_EBool",0},
3601 { "_wxWindowID","_uint",0},
3602 { "_wxWindowID","_int",0},
3603 { "_wxWindowID","_signed_int",0},
3604 { "_wxWindowID","_unsigned_int",0},
3605 { "_int","_wxCoord",0},
3606 { "_int","_wxPrintQuality",0},
3607 { "_int","_time_t",0},
3608 { "_int","_size_t",0},
3609 { "_int","_EBool",0},
3610 { "_int","_uint",0},
3611 { "_int","_wxWindowID",0},
3612 { "_int","_unsigned_int",0},
3613 { "_int","_signed_int",0},
3614 { "_time_t","_wxCoord",0},
3615 { "_time_t","_wxPrintQuality",0},
3616 { "_time_t","_unsigned_int",0},
3617 { "_time_t","_int",0},
3618 { "_time_t","_wxWindowID",0},
3619 { "_time_t","_uint",0},
3620 { "_time_t","_size_t",0},
3621 { "_wxCoord","_int",0},
3622 { "_wxCoord","_signed_int",0},
3623 { "_wxCoord","_unsigned_int",0},
3624 { "_wxCoord","_wxWindowID",0},
3625 { "_wxCoord","_uint",0},
3626 { "_wxCoord","_EBool",0},
3627 { "_wxCoord","_size_t",0},
3628 { "_wxCoord","_time_t",0},
3629 { "_wxCoord","_wxPrintQuality",0},
3630 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3631 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3632 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3635 static PyObject
*SWIG_globals
;
3639 SWIGEXPORT(void) initclip_dndc() {
3641 SWIG_globals
= SWIG_newvarlink();
3642 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3643 d
= PyModule_GetDict(m
);
3644 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3645 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3646 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3647 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3648 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3649 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3650 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3651 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3652 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3653 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3654 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3655 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3656 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3657 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3658 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3659 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3660 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3661 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3662 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3663 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3664 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3665 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3666 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3667 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3668 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3669 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3670 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3671 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3674 wxPyTheClipboard
= wxTheClipboard
;
3675 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3676 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3677 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3678 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3679 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3680 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3683 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3684 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);