2 * FILE : src/msw/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initclip_dndc
55 #define SWIG_name "clip_dndc"
58 #include <wx/dataobj.h>
59 #include <wx/clipbrd.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 // Put some wx default wxChar* values into wxStrings.
90 static const wxString
wxPyEmptyString(wxT(""));
91 // An alternate constructor...
92 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
93 return new wxDataFormat(id
);
96 wxDataFormat wxPyFormatInvalid
;
97 // Create a new class for wxPython to use
98 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
100 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
101 : wxDataObjectSimple(format
) {}
103 DEC_PYCALLBACK_SIZET_(GetDataSize
);
104 bool GetDataHere(void *buf
);
105 bool SetData(size_t len
, const void *buf
);
109 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
111 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
112 // We need to get the data for this object and write it to buf. I think
113 // the best way to do this for wxPython is to have the Python method
114 // return either a string or None and then act appropriately with the
118 wxPyBeginBlockThreads();
119 if (m_myInst
.findCallback("GetDataHere")) {
121 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
123 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
125 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
129 wxPyEndBlockThreads();
133 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
134 // For this one we simply need to make a string from buf and len
135 // and send it to the Python method.
137 wxPyBeginBlockThreads();
138 if (m_myInst
.findCallback("SetData")) {
139 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
140 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
143 wxPyEndBlockThreads();
146 // Create a new class for wxPython to use
147 class wxPyTextDataObject
: public wxTextDataObject
{
149 wxPyTextDataObject(const wxString
& text
= wxPyEmptyString
)
150 : wxTextDataObject(text
) {}
152 DEC_PYCALLBACK_SIZET_(GetTextLength
);
153 DEC_PYCALLBACK_STRING_(GetText
);
154 DEC_PYCALLBACK__STRING(SetText
);
158 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
159 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
160 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
162 // Create a new class for wxPython to use
163 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
165 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
166 : wxBitmapDataObject(bitmap
) {}
168 wxBitmap
GetBitmap();
169 void SetBitmap(const wxBitmap
& bitmap
);
173 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
174 wxBitmap
* rval
= &wxNullBitmap
;
175 wxPyBeginBlockThreads();
176 if (m_myInst
.findCallback("GetBitmap")) {
179 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
181 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
186 wxPyEndBlockThreads();
190 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
191 wxPyBeginBlockThreads();
192 if (m_myInst
.findCallback("SetBitmap")) {
193 PyObject
* bo
= wxPyConstructObject((void*)&bitmap
, wxT("wxBitmap"));
194 m_myInst
.callCallback(Py_BuildValue("(O)", bo
));
197 wxPyEndBlockThreads();
200 #include <wx/metafile.h>
202 // See below in the init function...
203 wxClipboard
* wxPyTheClipboard
;
205 class wxPyDropSource
: public wxDropSource
{
208 wxPyDropSource(wxWindow
*win
= NULL
,
209 const wxCursor
©
= wxNullCursor
,
210 const wxCursor
&move
= wxNullCursor
,
211 const wxCursor
&none
= wxNullCursor
)
212 : wxDropSource(win
, copy
, move
, none
) {}
214 wxPyDropSource(wxWindow
*win
= NULL
,
215 const wxIcon
& copy
= wxNullIcon
,
216 const wxIcon
& move
= wxNullIcon
,
217 const wxIcon
& none
= wxNullIcon
)
218 : wxDropSource(win
, copy
, move
, none
) {}
220 ~wxPyDropSource() { }
222 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
226 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
229 class wxPyDropTarget
: public wxDropTarget
{
231 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
232 : wxDropTarget(dataObject
) {}
234 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
235 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
237 DEC_PYCALLBACK__(OnLeave
);
238 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
239 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
240 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
241 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
246 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
247 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
249 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
250 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
251 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
252 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
253 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
256 class wxPyTextDropTarget
: public wxTextDropTarget
{
258 wxPyTextDropTarget() {}
260 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
262 DEC_PYCALLBACK__(OnLeave
);
263 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
264 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
265 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
266 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
271 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
272 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
275 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
276 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
279 class wxPyFileDropTarget
: public wxFileDropTarget
{
281 wxPyFileDropTarget() {}
283 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
285 DEC_PYCALLBACK__(OnLeave
);
286 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
287 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
288 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
289 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
294 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
295 const wxArrayString
& filenames
) {
297 wxPyBeginBlockThreads();
298 if (m_myInst
.findCallback("OnDropFiles")) {
299 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
300 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
303 wxPyEndBlockThreads();
309 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
310 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
311 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
312 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
313 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
318 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
319 PyObject
* _resultobj
;
320 wxDataFormat
* _result
;
322 PyObject
* _obj0
= 0;
323 char *_kwnames
[] = { "id", NULL
};
327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
330 _arg0
= wxString_in_helper(_obj0
);
335 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
336 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
338 wxPyEndAllowThreads(__tstate
);
339 if (PyErr_Occurred()) return NULL
;
341 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
342 _resultobj
= Py_BuildValue("s",_ptemp
);
345 _resultobj
= Py_None
;
354 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
356 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
360 static PyObject
*_wrap_wxPyFormatInvalid_get() {
364 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
365 pyobj
= PyString_FromString(ptemp
);
369 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
371 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
375 static PyObject
*_wrap_wxPyTheClipboard_get() {
379 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
380 pyobj
= PyString_FromString(ptemp
);
384 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
385 PyObject
* _resultobj
;
388 char *_kwnames
[] = { "res", NULL
};
391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
395 _result
= (bool )wxIsDragResultOk(_arg0
);
397 wxPyEndAllowThreads(__tstate
);
398 if (PyErr_Occurred()) return NULL
;
399 } _resultobj
= Py_BuildValue("i",_result
);
403 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
404 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
405 PyObject
* _resultobj
;
406 wxDataFormat
* _result
;
407 wxDataFormatId _arg0
;
408 char *_kwnames
[] = { "type", NULL
};
412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
416 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
418 wxPyEndAllowThreads(__tstate
);
419 if (PyErr_Occurred()) return NULL
;
421 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
422 _resultobj
= Py_BuildValue("s",_ptemp
);
425 _resultobj
= Py_None
;
430 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
431 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
432 PyObject
* _resultobj
;
433 wxDataFormat
* _arg0
;
434 PyObject
* _argo0
= 0;
435 char *_kwnames
[] = { "self", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
448 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
449 delete_wxDataFormat(_arg0
);
451 wxPyEndAllowThreads(__tstate
);
452 if (PyErr_Occurred()) return NULL
;
453 } Py_INCREF(Py_None
);
454 _resultobj
= Py_None
;
458 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
459 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
460 PyObject
* _resultobj
;
461 wxDataFormat
* _arg0
;
462 wxDataFormatId _arg1
;
463 PyObject
* _argo0
= 0;
464 char *_kwnames
[] = { "self","format", NULL
};
467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
477 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
478 wxDataFormat_SetType(_arg0
,_arg1
);
480 wxPyEndAllowThreads(__tstate
);
481 if (PyErr_Occurred()) return NULL
;
482 } Py_INCREF(Py_None
);
483 _resultobj
= Py_None
;
487 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
488 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
489 PyObject
* _resultobj
;
490 wxDataFormatId _result
;
491 wxDataFormat
* _arg0
;
492 PyObject
* _argo0
= 0;
493 char *_kwnames
[] = { "self", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
506 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
507 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
509 wxPyEndAllowThreads(__tstate
);
510 if (PyErr_Occurred()) return NULL
;
511 } _resultobj
= Py_BuildValue("i",_result
);
515 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
516 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
517 PyObject
* _resultobj
;
519 wxDataFormat
* _arg0
;
520 PyObject
* _argo0
= 0;
521 char *_kwnames
[] = { "self", NULL
};
524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
534 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
535 _result
= new wxString (wxDataFormat_GetId(_arg0
));
537 wxPyEndAllowThreads(__tstate
);
538 if (PyErr_Occurred()) return NULL
;
541 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
543 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
552 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
553 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
554 PyObject
* _resultobj
;
555 wxDataFormat
* _arg0
;
557 PyObject
* _argo0
= 0;
558 PyObject
* _obj1
= 0;
559 char *_kwnames
[] = { "self","format", NULL
};
562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
572 _arg1
= wxString_in_helper(_obj1
);
577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
578 wxDataFormat_SetId(_arg0
,*_arg1
);
580 wxPyEndAllowThreads(__tstate
);
581 if (PyErr_Occurred()) return NULL
;
582 } Py_INCREF(Py_None
);
583 _resultobj
= Py_None
;
591 #define delete_wxDataObject(_swigobj) (delete _swigobj)
592 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
593 PyObject
* _resultobj
;
594 wxDataObject
* _arg0
;
595 PyObject
* _argo0
= 0;
596 char *_kwnames
[] = { "self", NULL
};
599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
610 delete_wxDataObject(_arg0
);
612 wxPyEndAllowThreads(__tstate
);
613 if (PyErr_Occurred()) return NULL
;
614 } Py_INCREF(Py_None
);
615 _resultobj
= Py_None
;
619 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
620 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
621 PyObject
* _resultobj
;
622 wxDataFormat
* _result
;
623 wxDataObject
* _arg0
;
624 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
625 PyObject
* _argo0
= 0;
626 char *_kwnames
[] = { "self","dir", NULL
};
630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
640 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
641 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
643 wxPyEndAllowThreads(__tstate
);
644 if (PyErr_Occurred()) return NULL
;
645 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
646 _resultobj
= Py_BuildValue("s",_ptemp
);
650 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
651 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
652 PyObject
* _resultobj
;
654 wxDataObject
* _arg0
;
655 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
656 PyObject
* _argo0
= 0;
657 char *_kwnames
[] = { "self","dir", NULL
};
660 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
663 if (_argo0
== Py_None
) { _arg0
= NULL
; }
664 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
665 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
670 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
671 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
673 wxPyEndAllowThreads(__tstate
);
674 if (PyErr_Occurred()) return NULL
;
675 } _resultobj
= Py_BuildValue("i",_result
);
679 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
680 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
681 PyObject
* _resultobj
;
682 wxDataObject
* _arg0
;
683 wxDataFormat
* _arg1
;
684 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
685 PyObject
* _argo0
= 0;
686 PyObject
* _argo1
= 0;
687 char *_kwnames
[] = { "self","formats","dir", NULL
};
690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
700 if (_argo1
== Py_None
) { _arg1
= NULL
; }
701 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
708 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
710 wxPyEndAllowThreads(__tstate
);
711 if (PyErr_Occurred()) return NULL
;
712 } Py_INCREF(Py_None
);
713 _resultobj
= Py_None
;
717 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
718 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
719 PyObject
* _resultobj
;
721 wxDataObject
* _arg0
;
722 wxDataFormat
* _arg1
;
724 PyObject
* _argo0
= 0;
725 PyObject
* _argo1
= 0;
726 PyObject
* _argo2
= 0;
727 char *_kwnames
[] = { "self","format","buf", NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
740 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
746 if (_argo2
== Py_None
) { _arg2
= NULL
; }
747 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
753 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
754 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
756 wxPyEndAllowThreads(__tstate
);
757 if (PyErr_Occurred()) return NULL
;
758 } _resultobj
= Py_BuildValue("i",_result
);
762 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
763 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
764 PyObject
* _resultobj
;
766 wxDataObject
* _arg0
;
767 wxDataFormat
* _arg1
;
768 PyObject
* _argo0
= 0;
769 PyObject
* _argo1
= 0;
770 char *_kwnames
[] = { "self","format", NULL
};
773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
783 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
790 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
792 wxPyEndAllowThreads(__tstate
);
793 if (PyErr_Occurred()) return NULL
;
794 } _resultobj
= Py_BuildValue("i",_result
);
798 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
799 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
800 PyObject
* _resultobj
;
802 wxDataObject
* _arg0
;
803 wxDataFormat
* _arg1
;
806 PyObject
* _argo0
= 0;
807 PyObject
* _argo1
= 0;
808 PyObject
* _argo3
= 0;
809 char *_kwnames
[] = { "self","format","len","buf", NULL
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
822 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
828 if (_argo3
== Py_None
) { _arg3
= NULL
; }
829 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
836 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
838 wxPyEndAllowThreads(__tstate
);
839 if (PyErr_Occurred()) return NULL
;
840 } _resultobj
= Py_BuildValue("i",_result
);
844 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
845 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
846 PyObject
* _resultobj
;
848 wxDataObject
* _arg0
;
849 wxDataFormat
* _arg1
;
850 PyObject
* _argo0
= 0;
851 PyObject
* _argo1
= 0;
852 char *_kwnames
[] = { "self","format", NULL
};
855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
865 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
872 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
874 wxPyEndAllowThreads(__tstate
);
875 if (PyErr_Occurred()) return NULL
;
876 } _resultobj
= Py_BuildValue("i",_result
);
880 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
881 wxDataObjectSimple
*src
;
883 src
= (wxDataObjectSimple
*) ptr
;
884 dest
= (wxDataObject
*) src
;
885 return (void *) dest
;
888 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
889 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
890 PyObject
* _resultobj
;
891 wxDataObjectSimple
* _result
;
892 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
893 PyObject
* _argo0
= 0;
894 char *_kwnames
[] = { "format", NULL
};
898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
901 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
923 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
925 wxDataFormat
* _result
;
926 wxDataObjectSimple
* _arg0
;
927 PyObject
* _argo0
= 0;
928 char *_kwnames
[] = { "self", NULL
};
932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
943 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
944 _result
= (wxDataFormat
*) &_result_ref
;
946 wxPyEndAllowThreads(__tstate
);
947 if (PyErr_Occurred()) return NULL
;
949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
950 _resultobj
= Py_BuildValue("s",_ptemp
);
953 _resultobj
= Py_None
;
958 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
959 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
960 PyObject
* _resultobj
;
961 wxDataObjectSimple
* _arg0
;
962 wxDataFormat
* _arg1
;
963 PyObject
* _argo0
= 0;
964 PyObject
* _argo1
= 0;
965 char *_kwnames
[] = { "self","format", NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
978 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
985 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
987 wxPyEndAllowThreads(__tstate
);
988 if (PyErr_Occurred()) return NULL
;
989 } Py_INCREF(Py_None
);
990 _resultobj
= Py_None
;
994 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
995 wxPyDataObjectSimple
*src
;
996 wxDataObjectSimple
*dest
;
997 src
= (wxPyDataObjectSimple
*) ptr
;
998 dest
= (wxDataObjectSimple
*) src
;
999 return (void *) dest
;
1002 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1003 wxPyDataObjectSimple
*src
;
1005 src
= (wxPyDataObjectSimple
*) ptr
;
1006 dest
= (wxDataObject
*) src
;
1007 return (void *) dest
;
1010 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1011 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1012 PyObject
* _resultobj
;
1013 wxPyDataObjectSimple
* _result
;
1014 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1015 PyObject
* _argo0
= 0;
1016 char *_kwnames
[] = { "format", NULL
};
1020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1023 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1030 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1032 wxPyEndAllowThreads(__tstate
);
1033 if (PyErr_Occurred()) return NULL
;
1035 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1036 _resultobj
= Py_BuildValue("s",_ptemp
);
1039 _resultobj
= Py_None
;
1044 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1045 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1046 PyObject
* _resultobj
;
1047 wxPyDataObjectSimple
* _arg0
;
1050 PyObject
* _argo0
= 0;
1051 PyObject
* _obj1
= 0;
1052 PyObject
* _obj2
= 0;
1053 char *_kwnames
[] = { "self","self","_class", NULL
};
1056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1073 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1075 wxPyEndAllowThreads(__tstate
);
1076 if (PyErr_Occurred()) return NULL
;
1077 } Py_INCREF(Py_None
);
1078 _resultobj
= Py_None
;
1082 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1083 wxDataObjectComposite
*src
;
1085 src
= (wxDataObjectComposite
*) ptr
;
1086 dest
= (wxDataObject
*) src
;
1087 return (void *) dest
;
1090 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1091 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1092 PyObject
* _resultobj
;
1093 wxDataObjectComposite
* _result
;
1094 char *_kwnames
[] = { NULL
};
1098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1102 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1104 wxPyEndAllowThreads(__tstate
);
1105 if (PyErr_Occurred()) return NULL
;
1107 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1108 _resultobj
= Py_BuildValue("s",_ptemp
);
1111 _resultobj
= Py_None
;
1116 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1117 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1118 PyObject
* _resultobj
;
1119 wxDataObjectComposite
* _arg0
;
1120 wxDataObjectSimple
* _arg1
;
1121 int _arg2
= (int ) FALSE
;
1122 PyObject
* _argo0
= 0;
1123 PyObject
* _argo1
= 0;
1124 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1137 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1138 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1145 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1147 wxPyEndAllowThreads(__tstate
);
1148 if (PyErr_Occurred()) return NULL
;
1149 } Py_INCREF(Py_None
);
1150 _resultobj
= Py_None
;
1154 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1155 wxTextDataObject
*src
;
1156 wxDataObjectSimple
*dest
;
1157 src
= (wxTextDataObject
*) ptr
;
1158 dest
= (wxDataObjectSimple
*) src
;
1159 return (void *) dest
;
1162 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1163 wxTextDataObject
*src
;
1165 src
= (wxTextDataObject
*) ptr
;
1166 dest
= (wxDataObject
*) src
;
1167 return (void *) dest
;
1170 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1171 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1172 PyObject
* _resultobj
;
1173 wxTextDataObject
* _result
;
1174 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1175 PyObject
* _obj0
= 0;
1176 char *_kwnames
[] = { "text", NULL
};
1180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1184 _arg0
= wxString_in_helper(_obj0
);
1189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1190 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1192 wxPyEndAllowThreads(__tstate
);
1193 if (PyErr_Occurred()) return NULL
;
1195 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1196 _resultobj
= Py_BuildValue("s",_ptemp
);
1199 _resultobj
= Py_None
;
1208 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1209 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1210 PyObject
* _resultobj
;
1212 wxTextDataObject
* _arg0
;
1213 PyObject
* _argo0
= 0;
1214 char *_kwnames
[] = { "self", NULL
};
1217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1228 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1230 wxPyEndAllowThreads(__tstate
);
1231 if (PyErr_Occurred()) return NULL
;
1232 } _resultobj
= Py_BuildValue("i",_result
);
1236 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1237 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
* _resultobj
;
1240 wxTextDataObject
* _arg0
;
1241 PyObject
* _argo0
= 0;
1242 char *_kwnames
[] = { "self", NULL
};
1245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1256 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1258 wxPyEndAllowThreads(__tstate
);
1259 if (PyErr_Occurred()) return NULL
;
1262 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1264 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1273 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1274 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1275 PyObject
* _resultobj
;
1276 wxTextDataObject
* _arg0
;
1278 PyObject
* _argo0
= 0;
1279 PyObject
* _obj1
= 0;
1280 char *_kwnames
[] = { "self","text", NULL
};
1283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1293 _arg1
= wxString_in_helper(_obj1
);
1298 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1299 wxTextDataObject_SetText(_arg0
,*_arg1
);
1301 wxPyEndAllowThreads(__tstate
);
1302 if (PyErr_Occurred()) return NULL
;
1303 } Py_INCREF(Py_None
);
1304 _resultobj
= Py_None
;
1312 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1313 wxPyTextDataObject
*src
;
1314 wxTextDataObject
*dest
;
1315 src
= (wxPyTextDataObject
*) ptr
;
1316 dest
= (wxTextDataObject
*) src
;
1317 return (void *) dest
;
1320 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1321 wxPyTextDataObject
*src
;
1322 wxDataObjectSimple
*dest
;
1323 src
= (wxPyTextDataObject
*) ptr
;
1324 dest
= (wxDataObjectSimple
*) src
;
1325 return (void *) dest
;
1328 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1329 wxPyTextDataObject
*src
;
1331 src
= (wxPyTextDataObject
*) ptr
;
1332 dest
= (wxDataObject
*) src
;
1333 return (void *) dest
;
1336 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1337 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1338 PyObject
* _resultobj
;
1339 wxPyTextDataObject
* _result
;
1340 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1341 PyObject
* _obj0
= 0;
1342 char *_kwnames
[] = { "text", NULL
};
1346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1350 _arg0
= wxString_in_helper(_obj0
);
1355 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1356 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1358 wxPyEndAllowThreads(__tstate
);
1359 if (PyErr_Occurred()) return NULL
;
1361 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1362 _resultobj
= Py_BuildValue("s",_ptemp
);
1365 _resultobj
= Py_None
;
1374 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1375 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1376 PyObject
* _resultobj
;
1377 wxPyTextDataObject
* _arg0
;
1380 PyObject
* _argo0
= 0;
1381 PyObject
* _obj1
= 0;
1382 PyObject
* _obj2
= 0;
1383 char *_kwnames
[] = { "self","self","_class", NULL
};
1386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1403 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1405 wxPyEndAllowThreads(__tstate
);
1406 if (PyErr_Occurred()) return NULL
;
1407 } Py_INCREF(Py_None
);
1408 _resultobj
= Py_None
;
1412 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1413 wxBitmapDataObject
*src
;
1414 wxDataObjectSimple
*dest
;
1415 src
= (wxBitmapDataObject
*) ptr
;
1416 dest
= (wxDataObjectSimple
*) src
;
1417 return (void *) dest
;
1420 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1421 wxBitmapDataObject
*src
;
1423 src
= (wxBitmapDataObject
*) ptr
;
1424 dest
= (wxDataObject
*) src
;
1425 return (void *) dest
;
1428 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1429 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1430 PyObject
* _resultobj
;
1431 wxBitmapDataObject
* _result
;
1432 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1433 PyObject
* _argo0
= 0;
1434 char *_kwnames
[] = { "bitmap", NULL
};
1438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1441 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1448 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1450 wxPyEndAllowThreads(__tstate
);
1451 if (PyErr_Occurred()) return NULL
;
1453 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1454 _resultobj
= Py_BuildValue("s",_ptemp
);
1457 _resultobj
= Py_None
;
1462 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1463 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1464 PyObject
* _resultobj
;
1466 wxBitmapDataObject
* _arg0
;
1467 PyObject
* _argo0
= 0;
1468 char *_kwnames
[] = { "self", NULL
};
1472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1482 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1483 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1485 wxPyEndAllowThreads(__tstate
);
1486 if (PyErr_Occurred()) return NULL
;
1487 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1488 _resultobj
= Py_BuildValue("s",_ptemp
);
1492 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1493 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1494 PyObject
* _resultobj
;
1495 wxBitmapDataObject
* _arg0
;
1497 PyObject
* _argo0
= 0;
1498 PyObject
* _argo1
= 0;
1499 char *_kwnames
[] = { "self","bitmap", NULL
};
1502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1512 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1518 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1519 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1521 wxPyEndAllowThreads(__tstate
);
1522 if (PyErr_Occurred()) return NULL
;
1523 } Py_INCREF(Py_None
);
1524 _resultobj
= Py_None
;
1528 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1529 wxPyBitmapDataObject
*src
;
1530 wxBitmapDataObject
*dest
;
1531 src
= (wxPyBitmapDataObject
*) ptr
;
1532 dest
= (wxBitmapDataObject
*) src
;
1533 return (void *) dest
;
1536 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1537 wxPyBitmapDataObject
*src
;
1538 wxDataObjectSimple
*dest
;
1539 src
= (wxPyBitmapDataObject
*) ptr
;
1540 dest
= (wxDataObjectSimple
*) src
;
1541 return (void *) dest
;
1544 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1545 wxPyBitmapDataObject
*src
;
1547 src
= (wxPyBitmapDataObject
*) ptr
;
1548 dest
= (wxDataObject
*) src
;
1549 return (void *) dest
;
1552 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1553 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1554 PyObject
* _resultobj
;
1555 wxPyBitmapDataObject
* _result
;
1556 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1557 PyObject
* _argo0
= 0;
1558 char *_kwnames
[] = { "bitmap", NULL
};
1562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1565 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1572 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1574 wxPyEndAllowThreads(__tstate
);
1575 if (PyErr_Occurred()) return NULL
;
1577 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1578 _resultobj
= Py_BuildValue("s",_ptemp
);
1581 _resultobj
= Py_None
;
1586 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1587 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1588 PyObject
* _resultobj
;
1589 wxPyBitmapDataObject
* _arg0
;
1592 PyObject
* _argo0
= 0;
1593 PyObject
* _obj1
= 0;
1594 PyObject
* _obj2
= 0;
1595 char *_kwnames
[] = { "self","self","_class", NULL
};
1598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1615 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1617 wxPyEndAllowThreads(__tstate
);
1618 if (PyErr_Occurred()) return NULL
;
1619 } Py_INCREF(Py_None
);
1620 _resultobj
= Py_None
;
1624 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1625 wxFileDataObject
*src
;
1626 wxDataObjectSimple
*dest
;
1627 src
= (wxFileDataObject
*) ptr
;
1628 dest
= (wxDataObjectSimple
*) src
;
1629 return (void *) dest
;
1632 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1633 wxFileDataObject
*src
;
1635 src
= (wxFileDataObject
*) ptr
;
1636 dest
= (wxDataObject
*) src
;
1637 return (void *) dest
;
1640 #define new_wxFileDataObject() (new wxFileDataObject())
1641 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1642 PyObject
* _resultobj
;
1643 wxFileDataObject
* _result
;
1644 char *_kwnames
[] = { NULL
};
1648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1651 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1652 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1654 wxPyEndAllowThreads(__tstate
);
1655 if (PyErr_Occurred()) return NULL
;
1657 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1658 _resultobj
= Py_BuildValue("s",_ptemp
);
1661 _resultobj
= Py_None
;
1666 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1667 const wxArrayString
& strings
= self
->GetFilenames();
1668 return wxArrayString2PyList_helper(strings
);
1670 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1671 PyObject
* _resultobj
;
1673 wxFileDataObject
* _arg0
;
1674 PyObject
* _argo0
= 0;
1675 char *_kwnames
[] = { "self", NULL
};
1678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1689 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1691 wxPyEndAllowThreads(__tstate
);
1692 if (PyErr_Occurred()) return NULL
;
1694 _resultobj
= _result
;
1699 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1700 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1701 PyObject
* _resultobj
;
1702 wxFileDataObject
* _arg0
;
1704 PyObject
* _argo0
= 0;
1705 PyObject
* _obj1
= 0;
1706 char *_kwnames
[] = { "self","filename", NULL
};
1709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1719 _arg1
= wxString_in_helper(_obj1
);
1724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1725 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1727 wxPyEndAllowThreads(__tstate
);
1728 if (PyErr_Occurred()) return NULL
;
1729 } Py_INCREF(Py_None
);
1730 _resultobj
= Py_None
;
1738 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1739 wxCustomDataObject
*src
;
1740 wxDataObjectSimple
*dest
;
1741 src
= (wxCustomDataObject
*) ptr
;
1742 dest
= (wxDataObjectSimple
*) src
;
1743 return (void *) dest
;
1746 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1747 wxCustomDataObject
*src
;
1749 src
= (wxCustomDataObject
*) ptr
;
1750 dest
= (wxDataObject
*) src
;
1751 return (void *) dest
;
1754 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1755 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1756 PyObject
* _resultobj
;
1757 wxCustomDataObject
* _result
;
1758 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1759 PyObject
* _argo0
= 0;
1760 char *_kwnames
[] = { "format", NULL
};
1764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1767 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1774 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1776 wxPyEndAllowThreads(__tstate
);
1777 if (PyErr_Occurred()) return NULL
;
1779 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1780 _resultobj
= Py_BuildValue("s",_ptemp
);
1783 _resultobj
= Py_None
;
1788 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1789 if (PyString_Check(data
)) {
1790 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1793 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1794 PyObject
* _resultobj
;
1795 wxCustomDataObject
* _arg0
;
1797 PyObject
* _argo0
= 0;
1798 PyObject
* _obj1
= 0;
1799 char *_kwnames
[] = { "self","data", NULL
};
1802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1815 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1816 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1818 wxPyEndAllowThreads(__tstate
);
1819 if (PyErr_Occurred()) return NULL
;
1820 } Py_INCREF(Py_None
);
1821 _resultobj
= Py_None
;
1825 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1826 if (PyString_Check(data
)) {
1827 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1831 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
* _resultobj
;
1834 wxCustomDataObject
* _arg0
;
1836 PyObject
* _argo0
= 0;
1837 PyObject
* _obj1
= 0;
1838 char *_kwnames
[] = { "self","data", NULL
};
1841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1855 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1857 wxPyEndAllowThreads(__tstate
);
1858 if (PyErr_Occurred()) return NULL
;
1859 } _resultobj
= Py_BuildValue("i",_result
);
1863 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1864 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1865 PyObject
* _resultobj
;
1867 wxCustomDataObject
* _arg0
;
1868 PyObject
* _argo0
= 0;
1869 char *_kwnames
[] = { "self", NULL
};
1872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1883 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1885 wxPyEndAllowThreads(__tstate
);
1886 if (PyErr_Occurred()) return NULL
;
1887 } _resultobj
= Py_BuildValue("i",_result
);
1891 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1892 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1894 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1895 PyObject
* _resultobj
;
1897 wxCustomDataObject
* _arg0
;
1898 PyObject
* _argo0
= 0;
1899 char *_kwnames
[] = { "self", NULL
};
1902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1913 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1915 wxPyEndAllowThreads(__tstate
);
1916 if (PyErr_Occurred()) return NULL
;
1918 _resultobj
= _result
;
1923 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1924 wxURLDataObject
*src
;
1925 wxDataObjectComposite
*dest
;
1926 src
= (wxURLDataObject
*) ptr
;
1927 dest
= (wxDataObjectComposite
*) src
;
1928 return (void *) dest
;
1931 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1932 wxURLDataObject
*src
;
1934 src
= (wxURLDataObject
*) ptr
;
1935 dest
= (wxDataObject
*) src
;
1936 return (void *) dest
;
1939 #define new_wxURLDataObject() (new wxURLDataObject())
1940 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1941 PyObject
* _resultobj
;
1942 wxURLDataObject
* _result
;
1943 char *_kwnames
[] = { NULL
};
1947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1950 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1951 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1953 wxPyEndAllowThreads(__tstate
);
1954 if (PyErr_Occurred()) return NULL
;
1956 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1957 _resultobj
= Py_BuildValue("s",_ptemp
);
1960 _resultobj
= Py_None
;
1965 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1966 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1967 PyObject
* _resultobj
;
1969 wxURLDataObject
* _arg0
;
1970 PyObject
* _argo0
= 0;
1971 char *_kwnames
[] = { "self", NULL
};
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1985 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1987 wxPyEndAllowThreads(__tstate
);
1988 if (PyErr_Occurred()) return NULL
;
1991 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1993 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2002 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2003 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
* _resultobj
;
2005 wxURLDataObject
* _arg0
;
2007 PyObject
* _argo0
= 0;
2008 PyObject
* _obj1
= 0;
2009 char *_kwnames
[] = { "self","url", NULL
};
2012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2022 _arg1
= wxString_in_helper(_obj1
);
2027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2030 wxPyEndAllowThreads(__tstate
);
2031 if (PyErr_Occurred()) return NULL
;
2032 } Py_INCREF(Py_None
);
2033 _resultobj
= Py_None
;
2041 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2042 wxMetafileDataObject
*src
;
2043 wxDataObjectSimple
*dest
;
2044 src
= (wxMetafileDataObject
*) ptr
;
2045 dest
= (wxDataObjectSimple
*) src
;
2046 return (void *) dest
;
2049 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2050 wxMetafileDataObject
*src
;
2052 src
= (wxMetafileDataObject
*) ptr
;
2053 dest
= (wxDataObject
*) src
;
2054 return (void *) dest
;
2057 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2058 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2059 PyObject
* _resultobj
;
2060 wxMetafileDataObject
* _result
;
2061 char *_kwnames
[] = { NULL
};
2065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2069 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2071 wxPyEndAllowThreads(__tstate
);
2072 if (PyErr_Occurred()) return NULL
;
2074 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2075 _resultobj
= Py_BuildValue("s",_ptemp
);
2078 _resultobj
= Py_None
;
2083 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2084 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2085 PyObject
* _resultobj
;
2086 wxMetafileDataObject
* _arg0
;
2088 PyObject
* _argo0
= 0;
2089 PyObject
* _argo1
= 0;
2090 char *_kwnames
[] = { "self","metafile", NULL
};
2093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2103 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2110 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2112 wxPyEndAllowThreads(__tstate
);
2113 if (PyErr_Occurred()) return NULL
;
2114 } Py_INCREF(Py_None
);
2115 _resultobj
= Py_None
;
2119 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2120 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2121 PyObject
* _resultobj
;
2122 wxMetafile
* _result
;
2123 wxMetafileDataObject
* _arg0
;
2124 PyObject
* _argo0
= 0;
2125 char *_kwnames
[] = { "self", NULL
};
2129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2139 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2140 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2142 wxPyEndAllowThreads(__tstate
);
2143 if (PyErr_Occurred()) return NULL
;
2144 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2145 _resultobj
= Py_BuildValue("s",_ptemp
);
2149 static void *SwigwxClipboardTowxObject(void *ptr
) {
2152 src
= (wxClipboard
*) ptr
;
2153 dest
= (wxObject
*) src
;
2154 return (void *) dest
;
2157 #define new_wxClipboard() (new wxClipboard())
2158 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2159 PyObject
* _resultobj
;
2160 wxClipboard
* _result
;
2161 char *_kwnames
[] = { NULL
};
2165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2169 _result
= (wxClipboard
*)new_wxClipboard();
2171 wxPyEndAllowThreads(__tstate
);
2172 if (PyErr_Occurred()) return NULL
;
2174 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2175 _resultobj
= Py_BuildValue("s",_ptemp
);
2178 _resultobj
= Py_None
;
2183 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2184 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
* _resultobj
;
2187 wxClipboard
* _arg0
;
2188 PyObject
* _argo0
= 0;
2189 char *_kwnames
[] = { "self", NULL
};
2192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2203 _result
= (bool )wxClipboard_Open(_arg0
);
2205 wxPyEndAllowThreads(__tstate
);
2206 if (PyErr_Occurred()) return NULL
;
2207 } _resultobj
= Py_BuildValue("i",_result
);
2211 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2212 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2213 PyObject
* _resultobj
;
2214 wxClipboard
* _arg0
;
2215 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self", NULL
};
2219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2230 wxClipboard_Close(_arg0
);
2232 wxPyEndAllowThreads(__tstate
);
2233 if (PyErr_Occurred()) return NULL
;
2234 } Py_INCREF(Py_None
);
2235 _resultobj
= Py_None
;
2239 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2240 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2243 wxClipboard
* _arg0
;
2244 PyObject
* _argo0
= 0;
2245 char *_kwnames
[] = { "self", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2259 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2261 wxPyEndAllowThreads(__tstate
);
2262 if (PyErr_Occurred()) return NULL
;
2263 } _resultobj
= Py_BuildValue("i",_result
);
2267 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2268 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2269 PyObject
* _resultobj
;
2271 wxClipboard
* _arg0
;
2272 wxDataObject
* _arg1
;
2273 PyObject
* _argo0
= 0;
2274 PyObject
* _argo1
= 0;
2275 char *_kwnames
[] = { "self","data", NULL
};
2278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2288 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2289 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2296 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2298 wxPyEndAllowThreads(__tstate
);
2299 if (PyErr_Occurred()) return NULL
;
2300 } _resultobj
= Py_BuildValue("i",_result
);
2304 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2305 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2308 wxClipboard
* _arg0
;
2309 wxDataObject
* _arg1
;
2310 PyObject
* _argo0
= 0;
2311 PyObject
* _argo1
= 0;
2312 char *_kwnames
[] = { "self","data", NULL
};
2315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2325 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2326 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2333 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2335 wxPyEndAllowThreads(__tstate
);
2336 if (PyErr_Occurred()) return NULL
;
2337 } _resultobj
= Py_BuildValue("i",_result
);
2341 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2342 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2343 PyObject
* _resultobj
;
2345 wxClipboard
* _arg0
;
2346 wxDataFormat
* _arg1
;
2347 PyObject
* _argo0
= 0;
2348 PyObject
* _argo1
= 0;
2349 char *_kwnames
[] = { "self","format", NULL
};
2352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2362 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2369 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2371 wxPyEndAllowThreads(__tstate
);
2372 if (PyErr_Occurred()) return NULL
;
2373 } _resultobj
= Py_BuildValue("i",_result
);
2377 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2378 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2379 PyObject
* _resultobj
;
2381 wxClipboard
* _arg0
;
2382 wxDataObject
* _arg1
;
2383 PyObject
* _argo0
= 0;
2384 PyObject
* _argo1
= 0;
2385 char *_kwnames
[] = { "self","data", NULL
};
2388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2398 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2405 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2407 wxPyEndAllowThreads(__tstate
);
2408 if (PyErr_Occurred()) return NULL
;
2409 } _resultobj
= Py_BuildValue("i",_result
);
2413 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2414 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2415 PyObject
* _resultobj
;
2416 wxClipboard
* _arg0
;
2417 PyObject
* _argo0
= 0;
2418 char *_kwnames
[] = { "self", NULL
};
2421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2432 wxClipboard_Clear(_arg0
);
2434 wxPyEndAllowThreads(__tstate
);
2435 if (PyErr_Occurred()) return NULL
;
2436 } Py_INCREF(Py_None
);
2437 _resultobj
= Py_None
;
2441 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2442 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2443 PyObject
* _resultobj
;
2445 wxClipboard
* _arg0
;
2446 PyObject
* _argo0
= 0;
2447 char *_kwnames
[] = { "self", NULL
};
2450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2461 _result
= (bool )wxClipboard_Flush(_arg0
);
2463 wxPyEndAllowThreads(__tstate
);
2464 if (PyErr_Occurred()) return NULL
;
2465 } _resultobj
= Py_BuildValue("i",_result
);
2469 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2470 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2471 PyObject
* _resultobj
;
2472 wxClipboard
* _arg0
;
2473 int _arg1
= (int ) FALSE
;
2474 PyObject
* _argo0
= 0;
2475 char *_kwnames
[] = { "self","primary", NULL
};
2478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2489 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2491 wxPyEndAllowThreads(__tstate
);
2492 if (PyErr_Occurred()) return NULL
;
2493 } Py_INCREF(Py_None
);
2494 _resultobj
= Py_None
;
2498 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2499 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2500 PyObject
* _resultobj
;
2501 wxPyDropSource
* _result
;
2502 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2503 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2504 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2505 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2506 PyObject
* _argo0
= 0;
2507 PyObject
* _argo1
= 0;
2508 PyObject
* _argo2
= 0;
2509 PyObject
* _argo3
= 0;
2510 char *_kwnames
[] = { "win","copy","move","none", NULL
};
2514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2524 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2530 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2536 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2542 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2543 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2545 wxPyEndAllowThreads(__tstate
);
2546 if (PyErr_Occurred()) return NULL
;
2548 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2549 _resultobj
= Py_BuildValue("s",_ptemp
);
2552 _resultobj
= Py_None
;
2557 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2558 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2559 PyObject
* _resultobj
;
2560 wxPyDropSource
* _arg0
;
2564 PyObject
* _argo0
= 0;
2565 PyObject
* _obj1
= 0;
2566 PyObject
* _obj2
= 0;
2567 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2586 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2587 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2589 wxPyEndAllowThreads(__tstate
);
2590 if (PyErr_Occurred()) return NULL
;
2591 } Py_INCREF(Py_None
);
2592 _resultobj
= Py_None
;
2596 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2597 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2598 PyObject
* _resultobj
;
2599 wxPyDropSource
* _arg0
;
2600 PyObject
* _argo0
= 0;
2601 char *_kwnames
[] = { "self", NULL
};
2604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2614 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2615 delete_wxPyDropSource(_arg0
);
2617 wxPyEndAllowThreads(__tstate
);
2618 if (PyErr_Occurred()) return NULL
;
2619 } Py_INCREF(Py_None
);
2620 _resultobj
= Py_None
;
2624 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2625 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2626 PyObject
* _resultobj
;
2627 wxPyDropSource
* _arg0
;
2628 wxDataObject
* _arg1
;
2629 PyObject
* _argo0
= 0;
2630 PyObject
* _argo1
= 0;
2631 char *_kwnames
[] = { "self","data", NULL
};
2634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2644 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2651 wxDropSource_SetData(_arg0
,*_arg1
);
2653 wxPyEndAllowThreads(__tstate
);
2654 if (PyErr_Occurred()) return NULL
;
2655 } Py_INCREF(Py_None
);
2656 _resultobj
= Py_None
;
2660 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2661 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2662 PyObject
* _resultobj
;
2663 wxDataObject
* _result
;
2664 wxPyDropSource
* _arg0
;
2665 PyObject
* _argo0
= 0;
2666 char *_kwnames
[] = { "self", NULL
};
2670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2680 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2681 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2683 wxPyEndAllowThreads(__tstate
);
2684 if (PyErr_Occurred()) return NULL
;
2686 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2687 _resultobj
= Py_BuildValue("s",_ptemp
);
2690 _resultobj
= Py_None
;
2695 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2696 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2697 PyObject
* _resultobj
;
2698 wxPyDropSource
* _arg0
;
2701 PyObject
* _argo0
= 0;
2702 PyObject
* _argo2
= 0;
2703 char *_kwnames
[] = { "self","res","cursor", NULL
};
2706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2716 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2723 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2725 wxPyEndAllowThreads(__tstate
);
2726 if (PyErr_Occurred()) return NULL
;
2727 } Py_INCREF(Py_None
);
2728 _resultobj
= Py_None
;
2732 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2733 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2734 PyObject
* _resultobj
;
2735 wxDragResult _result
;
2736 wxPyDropSource
* _arg0
;
2737 int _arg1
= (int ) (wxDrag_CopyOnly
);
2738 PyObject
* _argo0
= 0;
2739 char *_kwnames
[] = { "self","flags", NULL
};
2742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2753 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2755 wxPyEndAllowThreads(__tstate
);
2756 if (PyErr_Occurred()) return NULL
;
2757 } _resultobj
= Py_BuildValue("i",_result
);
2761 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2762 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2763 PyObject
* _resultobj
;
2765 wxPyDropSource
* _arg0
;
2767 PyObject
* _argo0
= 0;
2768 char *_kwnames
[] = { "self","effect", NULL
};
2771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2782 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2784 wxPyEndAllowThreads(__tstate
);
2785 if (PyErr_Occurred()) return NULL
;
2786 } _resultobj
= Py_BuildValue("i",_result
);
2790 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2791 wxPyDropTarget
*src
;
2793 src
= (wxPyDropTarget
*) ptr
;
2794 dest
= (wxDropTarget
*) src
;
2795 return (void *) dest
;
2798 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2799 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2800 PyObject
* _resultobj
;
2801 wxPyDropTarget
* _result
;
2802 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2803 PyObject
* _argo0
= 0;
2804 char *_kwnames
[] = { "dataObject", NULL
};
2808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2819 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2821 wxPyEndAllowThreads(__tstate
);
2822 if (PyErr_Occurred()) return NULL
;
2824 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2825 _resultobj
= Py_BuildValue("s",_ptemp
);
2828 _resultobj
= Py_None
;
2833 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2834 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2835 PyObject
* _resultobj
;
2836 wxPyDropTarget
* _arg0
;
2839 PyObject
* _argo0
= 0;
2840 PyObject
* _obj1
= 0;
2841 PyObject
* _obj2
= 0;
2842 char *_kwnames
[] = { "self","self","_class", NULL
};
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2862 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2864 wxPyEndAllowThreads(__tstate
);
2865 if (PyErr_Occurred()) return NULL
;
2866 } Py_INCREF(Py_None
);
2867 _resultobj
= Py_None
;
2871 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2872 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2873 PyObject
* _resultobj
;
2874 wxPyDropTarget
* _arg0
;
2875 PyObject
* _argo0
= 0;
2876 char *_kwnames
[] = { "self", NULL
};
2879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2890 delete_wxPyDropTarget(_arg0
);
2892 wxPyEndAllowThreads(__tstate
);
2893 if (PyErr_Occurred()) return NULL
;
2894 } Py_INCREF(Py_None
);
2895 _resultobj
= Py_None
;
2899 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2900 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2901 PyObject
* _resultobj
;
2902 wxDataObject
* _result
;
2903 wxPyDropTarget
* _arg0
;
2904 PyObject
* _argo0
= 0;
2905 char *_kwnames
[] = { "self", NULL
};
2909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2920 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2922 wxPyEndAllowThreads(__tstate
);
2923 if (PyErr_Occurred()) return NULL
;
2925 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2926 _resultobj
= Py_BuildValue("s",_ptemp
);
2929 _resultobj
= Py_None
;
2934 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2935 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2936 PyObject
* _resultobj
;
2937 wxPyDropTarget
* _arg0
;
2938 wxDataObject
* _arg1
;
2939 PyObject
* _argo0
= 0;
2940 PyObject
* _argo1
= 0;
2941 char *_kwnames
[] = { "self","dataObject", NULL
};
2944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2954 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2955 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2962 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2964 wxPyEndAllowThreads(__tstate
);
2965 if (PyErr_Occurred()) return NULL
;
2966 } Py_INCREF(Py_None
);
2967 _resultobj
= Py_None
;
2971 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2972 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2973 PyObject
* _resultobj
;
2974 wxDragResult _result
;
2975 wxPyDropTarget
* _arg0
;
2979 PyObject
* _argo0
= 0;
2980 char *_kwnames
[] = { "self","x","y","def", NULL
};
2983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2993 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2994 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2996 wxPyEndAllowThreads(__tstate
);
2997 if (PyErr_Occurred()) return NULL
;
2998 } _resultobj
= Py_BuildValue("i",_result
);
3002 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3003 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3004 PyObject
* _resultobj
;
3005 wxDragResult _result
;
3006 wxPyDropTarget
* _arg0
;
3010 PyObject
* _argo0
= 0;
3011 char *_kwnames
[] = { "self","x","y","def", NULL
};
3014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
3024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3025 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3027 wxPyEndAllowThreads(__tstate
);
3028 if (PyErr_Occurred()) return NULL
;
3029 } _resultobj
= Py_BuildValue("i",_result
);
3033 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3034 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3035 PyObject
* _resultobj
;
3036 wxPyDropTarget
* _arg0
;
3037 PyObject
* _argo0
= 0;
3038 char *_kwnames
[] = { "self", NULL
};
3041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3052 wxPyDropTarget_base_OnLeave(_arg0
);
3054 wxPyEndAllowThreads(__tstate
);
3055 if (PyErr_Occurred()) return NULL
;
3056 } Py_INCREF(Py_None
);
3057 _resultobj
= Py_None
;
3061 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3062 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3063 PyObject
* _resultobj
;
3065 wxPyDropTarget
* _arg0
;
3068 PyObject
* _argo0
= 0;
3069 char *_kwnames
[] = { "self","x","y", NULL
};
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3082 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3083 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3085 wxPyEndAllowThreads(__tstate
);
3086 if (PyErr_Occurred()) return NULL
;
3087 } _resultobj
= Py_BuildValue("i",_result
);
3091 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3092 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3093 PyObject
* _resultobj
;
3095 wxPyDropTarget
* _arg0
;
3096 PyObject
* _argo0
= 0;
3097 char *_kwnames
[] = { "self", NULL
};
3100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3103 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3104 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3105 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3111 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3113 wxPyEndAllowThreads(__tstate
);
3114 if (PyErr_Occurred()) return NULL
;
3115 } _resultobj
= Py_BuildValue("i",_result
);
3119 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3120 wxPyTextDropTarget
*src
;
3121 wxPyDropTarget
*dest
;
3122 src
= (wxPyTextDropTarget
*) ptr
;
3123 dest
= (wxPyDropTarget
*) src
;
3124 return (void *) dest
;
3127 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3128 wxPyTextDropTarget
*src
;
3130 src
= (wxPyTextDropTarget
*) ptr
;
3131 dest
= (wxDropTarget
*) src
;
3132 return (void *) dest
;
3135 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3136 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3137 PyObject
* _resultobj
;
3138 wxPyTextDropTarget
* _result
;
3139 char *_kwnames
[] = { NULL
};
3143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3147 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3149 wxPyEndAllowThreads(__tstate
);
3150 if (PyErr_Occurred()) return NULL
;
3152 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3153 _resultobj
= Py_BuildValue("s",_ptemp
);
3156 _resultobj
= Py_None
;
3161 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3162 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3163 PyObject
* _resultobj
;
3164 wxPyTextDropTarget
* _arg0
;
3167 PyObject
* _argo0
= 0;
3168 PyObject
* _obj1
= 0;
3169 PyObject
* _obj2
= 0;
3170 char *_kwnames
[] = { "self","self","_class", NULL
};
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3190 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3192 wxPyEndAllowThreads(__tstate
);
3193 if (PyErr_Occurred()) return NULL
;
3194 } Py_INCREF(Py_None
);
3195 _resultobj
= Py_None
;
3199 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3200 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3201 PyObject
* _resultobj
;
3202 wxDragResult _result
;
3203 wxPyTextDropTarget
* _arg0
;
3207 PyObject
* _argo0
= 0;
3208 char *_kwnames
[] = { "self","x","y","def", NULL
};
3211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3222 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3224 wxPyEndAllowThreads(__tstate
);
3225 if (PyErr_Occurred()) return NULL
;
3226 } _resultobj
= Py_BuildValue("i",_result
);
3230 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3231 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3232 PyObject
* _resultobj
;
3233 wxDragResult _result
;
3234 wxPyTextDropTarget
* _arg0
;
3238 PyObject
* _argo0
= 0;
3239 char *_kwnames
[] = { "self","x","y","def", NULL
};
3242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3253 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3255 wxPyEndAllowThreads(__tstate
);
3256 if (PyErr_Occurred()) return NULL
;
3257 } _resultobj
= Py_BuildValue("i",_result
);
3261 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3262 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3263 PyObject
* _resultobj
;
3264 wxPyTextDropTarget
* _arg0
;
3265 PyObject
* _argo0
= 0;
3266 char *_kwnames
[] = { "self", NULL
};
3269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3280 wxTextDropTarget_base_OnLeave(_arg0
);
3282 wxPyEndAllowThreads(__tstate
);
3283 if (PyErr_Occurred()) return NULL
;
3284 } Py_INCREF(Py_None
);
3285 _resultobj
= Py_None
;
3289 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3290 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3291 PyObject
* _resultobj
;
3293 wxPyTextDropTarget
* _arg0
;
3296 PyObject
* _argo0
= 0;
3297 char *_kwnames
[] = { "self","x","y", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3311 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) return NULL
;
3315 } _resultobj
= Py_BuildValue("i",_result
);
3319 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3320 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3321 PyObject
* _resultobj
;
3322 wxDragResult _result
;
3323 wxPyTextDropTarget
* _arg0
;
3327 PyObject
* _argo0
= 0;
3328 char *_kwnames
[] = { "self","x","y","def", NULL
};
3331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3342 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3344 wxPyEndAllowThreads(__tstate
);
3345 if (PyErr_Occurred()) return NULL
;
3346 } _resultobj
= Py_BuildValue("i",_result
);
3350 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3351 wxPyFileDropTarget
*src
;
3352 wxPyDropTarget
*dest
;
3353 src
= (wxPyFileDropTarget
*) ptr
;
3354 dest
= (wxPyDropTarget
*) src
;
3355 return (void *) dest
;
3358 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3359 wxPyFileDropTarget
*src
;
3361 src
= (wxPyFileDropTarget
*) ptr
;
3362 dest
= (wxDropTarget
*) src
;
3363 return (void *) dest
;
3366 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3367 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3368 PyObject
* _resultobj
;
3369 wxPyFileDropTarget
* _result
;
3370 char *_kwnames
[] = { NULL
};
3374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3378 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3380 wxPyEndAllowThreads(__tstate
);
3381 if (PyErr_Occurred()) return NULL
;
3383 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3384 _resultobj
= Py_BuildValue("s",_ptemp
);
3387 _resultobj
= Py_None
;
3392 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3393 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3394 PyObject
* _resultobj
;
3395 wxPyFileDropTarget
* _arg0
;
3398 PyObject
* _argo0
= 0;
3399 PyObject
* _obj1
= 0;
3400 PyObject
* _obj2
= 0;
3401 char *_kwnames
[] = { "self","self","_class", NULL
};
3404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3421 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3423 wxPyEndAllowThreads(__tstate
);
3424 if (PyErr_Occurred()) return NULL
;
3425 } Py_INCREF(Py_None
);
3426 _resultobj
= Py_None
;
3430 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3431 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3432 PyObject
* _resultobj
;
3433 wxDragResult _result
;
3434 wxPyFileDropTarget
* _arg0
;
3438 PyObject
* _argo0
= 0;
3439 char *_kwnames
[] = { "self","x","y","def", NULL
};
3442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3453 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3455 wxPyEndAllowThreads(__tstate
);
3456 if (PyErr_Occurred()) return NULL
;
3457 } _resultobj
= Py_BuildValue("i",_result
);
3461 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3462 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3463 PyObject
* _resultobj
;
3464 wxDragResult _result
;
3465 wxPyFileDropTarget
* _arg0
;
3469 PyObject
* _argo0
= 0;
3470 char *_kwnames
[] = { "self","x","y","def", NULL
};
3473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3484 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3486 wxPyEndAllowThreads(__tstate
);
3487 if (PyErr_Occurred()) return NULL
;
3488 } _resultobj
= Py_BuildValue("i",_result
);
3492 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3493 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3494 PyObject
* _resultobj
;
3495 wxPyFileDropTarget
* _arg0
;
3496 PyObject
* _argo0
= 0;
3497 char *_kwnames
[] = { "self", NULL
};
3500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3511 wxFileDropTarget_base_OnLeave(_arg0
);
3513 wxPyEndAllowThreads(__tstate
);
3514 if (PyErr_Occurred()) return NULL
;
3515 } Py_INCREF(Py_None
);
3516 _resultobj
= Py_None
;
3520 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3521 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3522 PyObject
* _resultobj
;
3524 wxPyFileDropTarget
* _arg0
;
3527 PyObject
* _argo0
= 0;
3528 char *_kwnames
[] = { "self","x","y", NULL
};
3531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3542 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3544 wxPyEndAllowThreads(__tstate
);
3545 if (PyErr_Occurred()) return NULL
;
3546 } _resultobj
= Py_BuildValue("i",_result
);
3550 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3551 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3552 PyObject
* _resultobj
;
3553 wxDragResult _result
;
3554 wxPyFileDropTarget
* _arg0
;
3558 PyObject
* _argo0
= 0;
3559 char *_kwnames
[] = { "self","x","y","def", NULL
};
3562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3573 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3575 wxPyEndAllowThreads(__tstate
);
3576 if (PyErr_Occurred()) return NULL
;
3577 } _resultobj
= Py_BuildValue("i",_result
);
3581 static PyMethodDef clip_dndcMethods
[] = {
3582 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3679 * This table is used by the pointer type-checker
3681 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3682 { "_signed_long","_long",0},
3683 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3684 { "_wxPrintQuality","_wxCoord",0},
3685 { "_wxPrintQuality","_int",0},
3686 { "_wxPrintQuality","_signed_int",0},
3687 { "_wxPrintQuality","_unsigned_int",0},
3688 { "_wxPrintQuality","_wxWindowID",0},
3689 { "_wxPrintQuality","_uint",0},
3690 { "_wxPrintQuality","_EBool",0},
3691 { "_wxPrintQuality","_size_t",0},
3692 { "_wxPrintQuality","_time_t",0},
3693 { "_byte","_unsigned_char",0},
3694 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3695 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3696 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3697 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3698 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3699 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3700 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3701 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3702 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3703 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3704 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3705 { "_long","_unsigned_long",0},
3706 { "_long","_signed_long",0},
3707 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3708 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3709 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3710 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3711 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3712 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3713 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3714 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3715 { "_size_t","_wxCoord",0},
3716 { "_size_t","_wxPrintQuality",0},
3717 { "_size_t","_time_t",0},
3718 { "_size_t","_unsigned_int",0},
3719 { "_size_t","_int",0},
3720 { "_size_t","_wxWindowID",0},
3721 { "_size_t","_uint",0},
3722 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3723 { "_uint","_wxCoord",0},
3724 { "_uint","_wxPrintQuality",0},
3725 { "_uint","_time_t",0},
3726 { "_uint","_size_t",0},
3727 { "_uint","_unsigned_int",0},
3728 { "_uint","_int",0},
3729 { "_uint","_wxWindowID",0},
3730 { "_wxChar","_char",0},
3731 { "_char","_wxChar",0},
3732 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3733 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3734 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3735 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3736 { "_EBool","_wxCoord",0},
3737 { "_EBool","_wxPrintQuality",0},
3738 { "_EBool","_signed_int",0},
3739 { "_EBool","_int",0},
3740 { "_EBool","_wxWindowID",0},
3741 { "_unsigned_long","_long",0},
3742 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3743 { "_signed_int","_wxCoord",0},
3744 { "_signed_int","_wxPrintQuality",0},
3745 { "_signed_int","_EBool",0},
3746 { "_signed_int","_wxWindowID",0},
3747 { "_signed_int","_int",0},
3748 { "_WXTYPE","_short",0},
3749 { "_WXTYPE","_signed_short",0},
3750 { "_WXTYPE","_unsigned_short",0},
3751 { "_unsigned_short","_WXTYPE",0},
3752 { "_unsigned_short","_short",0},
3753 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3754 { "_signed_short","_WXTYPE",0},
3755 { "_signed_short","_short",0},
3756 { "_unsigned_char","_byte",0},
3757 { "_unsigned_int","_wxCoord",0},
3758 { "_unsigned_int","_wxPrintQuality",0},
3759 { "_unsigned_int","_time_t",0},
3760 { "_unsigned_int","_size_t",0},
3761 { "_unsigned_int","_uint",0},
3762 { "_unsigned_int","_wxWindowID",0},
3763 { "_unsigned_int","_int",0},
3764 { "_short","_WXTYPE",0},
3765 { "_short","_unsigned_short",0},
3766 { "_short","_signed_short",0},
3767 { "_wxWindowID","_wxCoord",0},
3768 { "_wxWindowID","_wxPrintQuality",0},
3769 { "_wxWindowID","_time_t",0},
3770 { "_wxWindowID","_size_t",0},
3771 { "_wxWindowID","_EBool",0},
3772 { "_wxWindowID","_uint",0},
3773 { "_wxWindowID","_int",0},
3774 { "_wxWindowID","_signed_int",0},
3775 { "_wxWindowID","_unsigned_int",0},
3776 { "_int","_wxCoord",0},
3777 { "_int","_wxPrintQuality",0},
3778 { "_int","_time_t",0},
3779 { "_int","_size_t",0},
3780 { "_int","_EBool",0},
3781 { "_int","_uint",0},
3782 { "_int","_wxWindowID",0},
3783 { "_int","_unsigned_int",0},
3784 { "_int","_signed_int",0},
3785 { "_time_t","_wxCoord",0},
3786 { "_time_t","_wxPrintQuality",0},
3787 { "_time_t","_unsigned_int",0},
3788 { "_time_t","_int",0},
3789 { "_time_t","_wxWindowID",0},
3790 { "_time_t","_uint",0},
3791 { "_time_t","_size_t",0},
3792 { "_wxCoord","_int",0},
3793 { "_wxCoord","_signed_int",0},
3794 { "_wxCoord","_unsigned_int",0},
3795 { "_wxCoord","_wxWindowID",0},
3796 { "_wxCoord","_uint",0},
3797 { "_wxCoord","_EBool",0},
3798 { "_wxCoord","_size_t",0},
3799 { "_wxCoord","_time_t",0},
3800 { "_wxCoord","_wxPrintQuality",0},
3801 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3802 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3803 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3806 static PyObject
*SWIG_globals
;
3810 SWIGEXPORT(void) initclip_dndc() {
3812 SWIG_globals
= SWIG_newvarlink();
3813 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3814 d
= PyModule_GetDict(m
);
3815 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3816 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3817 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3818 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3819 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3820 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3821 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3822 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3823 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3824 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3825 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3826 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3827 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3828 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3829 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3830 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3831 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3832 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3833 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3834 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3835 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3836 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3837 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3838 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3839 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3840 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3841 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3842 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3843 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3844 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3845 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3846 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3849 wxPyTheClipboard
= wxTheClipboard
;
3850 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3851 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3852 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3853 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3854 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3855 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3858 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3859 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);