2 * FILE : src/mac/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>
201 extern wxClipboard
* wxTheClipboard
;
203 class wxPyDropSource
: public wxDropSource
{
206 wxPyDropSource(wxWindow
*win
= NULL
,
207 const wxCursor
©
= wxNullCursor
,
208 const wxCursor
&move
= wxNullCursor
,
209 const wxCursor
&none
= wxNullCursor
)
210 : wxDropSource(win
, copy
, move
, none
) {}
212 wxPyDropSource(wxWindow
*win
= NULL
,
213 const wxIcon
& copy
= wxNullIcon
,
214 const wxIcon
& move
= wxNullIcon
,
215 const wxIcon
& none
= wxNullIcon
)
216 : wxDropSource(win
, copy
, move
, none
) {}
218 ~wxPyDropSource() { }
220 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
224 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
227 class wxPyDropTarget
: public wxDropTarget
{
229 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
230 : wxDropTarget(dataObject
) {}
232 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
233 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
235 DEC_PYCALLBACK__(OnLeave
);
236 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
237 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
238 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
239 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
244 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
245 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
247 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
248 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
249 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
250 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
251 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
254 class wxPyTextDropTarget
: public wxTextDropTarget
{
256 wxPyTextDropTarget() {}
258 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
260 DEC_PYCALLBACK__(OnLeave
);
261 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
262 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
263 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
264 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
269 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
270 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
271 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
274 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
277 class wxPyFileDropTarget
: public wxFileDropTarget
{
279 wxPyFileDropTarget() {}
281 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
283 DEC_PYCALLBACK__(OnLeave
);
284 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
285 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
286 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
287 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
292 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
293 const wxArrayString
& filenames
) {
295 wxPyBeginBlockThreads();
296 if (m_myInst
.findCallback("OnDropFiles")) {
297 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
298 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
301 wxPyEndBlockThreads();
307 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
308 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
309 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
310 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
311 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
316 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
317 PyObject
* _resultobj
;
318 wxDataFormat
* _result
;
320 PyObject
* _obj0
= 0;
321 char *_kwnames
[] = { "id", NULL
};
325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
328 _arg0
= wxString_in_helper(_obj0
);
333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
334 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
336 wxPyEndAllowThreads(__tstate
);
337 if (PyErr_Occurred()) return NULL
;
339 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
340 _resultobj
= Py_BuildValue("s",_ptemp
);
343 _resultobj
= Py_None
;
352 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
354 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
358 static PyObject
*_wrap_wxPyFormatInvalid_get() {
362 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
363 pyobj
= PyString_FromString(ptemp
);
367 static int _wrap_wxTheClipboard_set(PyObject
*val
) {
369 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
373 static PyObject
*_wrap_wxTheClipboard_get() {
377 SWIG_MakePtr(ptemp
, (char *) wxTheClipboard
,"_wxClipboard_p");
378 pyobj
= PyString_FromString(ptemp
);
382 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
383 PyObject
* _resultobj
;
386 char *_kwnames
[] = { "res", NULL
};
389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
392 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
393 _result
= (bool )wxIsDragResultOk(_arg0
);
395 wxPyEndAllowThreads(__tstate
);
396 if (PyErr_Occurred()) return NULL
;
397 } _resultobj
= Py_BuildValue("i",_result
);
401 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
402 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
403 PyObject
* _resultobj
;
404 wxDataFormat
* _result
;
405 wxDataFormatId _arg0
;
406 char *_kwnames
[] = { "type", NULL
};
410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
414 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
416 wxPyEndAllowThreads(__tstate
);
417 if (PyErr_Occurred()) return NULL
;
419 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
420 _resultobj
= Py_BuildValue("s",_ptemp
);
423 _resultobj
= Py_None
;
428 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
429 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
430 PyObject
* _resultobj
;
431 wxDataFormat
* _arg0
;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "self", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
447 delete_wxDataFormat(_arg0
);
449 wxPyEndAllowThreads(__tstate
);
450 if (PyErr_Occurred()) return NULL
;
451 } Py_INCREF(Py_None
);
452 _resultobj
= Py_None
;
456 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
457 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
458 PyObject
* _resultobj
;
459 wxDataFormat
* _arg0
;
460 wxDataFormatId _arg1
;
461 PyObject
* _argo0
= 0;
462 char *_kwnames
[] = { "self","format", NULL
};
465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
475 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
476 wxDataFormat_SetType(_arg0
,_arg1
);
478 wxPyEndAllowThreads(__tstate
);
479 if (PyErr_Occurred()) return NULL
;
480 } Py_INCREF(Py_None
);
481 _resultobj
= Py_None
;
485 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
486 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
487 PyObject
* _resultobj
;
488 wxDataFormatId _result
;
489 wxDataFormat
* _arg0
;
490 PyObject
* _argo0
= 0;
491 char *_kwnames
[] = { "self", NULL
};
494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
505 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
507 wxPyEndAllowThreads(__tstate
);
508 if (PyErr_Occurred()) return NULL
;
509 } _resultobj
= Py_BuildValue("i",_result
);
513 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
514 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
515 PyObject
* _resultobj
;
517 wxDataFormat
* _arg0
;
518 PyObject
* _argo0
= 0;
519 char *_kwnames
[] = { "self", NULL
};
522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
532 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
533 _result
= new wxString (wxDataFormat_GetId(_arg0
));
535 wxPyEndAllowThreads(__tstate
);
536 if (PyErr_Occurred()) return NULL
;
539 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
541 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
550 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
551 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
552 PyObject
* _resultobj
;
553 wxDataFormat
* _arg0
;
555 PyObject
* _argo0
= 0;
556 PyObject
* _obj1
= 0;
557 char *_kwnames
[] = { "self","format", NULL
};
560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
570 _arg1
= wxString_in_helper(_obj1
);
575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
576 wxDataFormat_SetId(_arg0
,*_arg1
);
578 wxPyEndAllowThreads(__tstate
);
579 if (PyErr_Occurred()) return NULL
;
580 } Py_INCREF(Py_None
);
581 _resultobj
= Py_None
;
589 #define delete_wxDataObject(_swigobj) (delete _swigobj)
590 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
591 PyObject
* _resultobj
;
592 wxDataObject
* _arg0
;
593 PyObject
* _argo0
= 0;
594 char *_kwnames
[] = { "self", NULL
};
597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
608 delete_wxDataObject(_arg0
);
610 wxPyEndAllowThreads(__tstate
);
611 if (PyErr_Occurred()) return NULL
;
612 } Py_INCREF(Py_None
);
613 _resultobj
= Py_None
;
617 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
618 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
619 PyObject
* _resultobj
;
620 wxDataFormat
* _result
;
621 wxDataObject
* _arg0
;
622 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
623 PyObject
* _argo0
= 0;
624 char *_kwnames
[] = { "self","dir", NULL
};
628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
639 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
641 wxPyEndAllowThreads(__tstate
);
642 if (PyErr_Occurred()) return NULL
;
643 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
644 _resultobj
= Py_BuildValue("s",_ptemp
);
648 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
649 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
650 PyObject
* _resultobj
;
652 wxDataObject
* _arg0
;
653 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
654 PyObject
* _argo0
= 0;
655 char *_kwnames
[] = { "self","dir", NULL
};
658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
669 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
671 wxPyEndAllowThreads(__tstate
);
672 if (PyErr_Occurred()) return NULL
;
673 } _resultobj
= Py_BuildValue("i",_result
);
677 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
678 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
679 PyObject
* _resultobj
;
680 wxDataObject
* _arg0
;
681 wxDataFormat
* _arg1
;
682 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
683 PyObject
* _argo0
= 0;
684 PyObject
* _argo1
= 0;
685 char *_kwnames
[] = { "self","formats","dir", NULL
};
688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
698 if (_argo1
== Py_None
) { _arg1
= NULL
; }
699 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
706 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
708 wxPyEndAllowThreads(__tstate
);
709 if (PyErr_Occurred()) return NULL
;
710 } Py_INCREF(Py_None
);
711 _resultobj
= Py_None
;
715 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
716 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
717 PyObject
* _resultobj
;
719 wxDataObject
* _arg0
;
720 wxDataFormat
* _arg1
;
722 PyObject
* _argo0
= 0;
723 PyObject
* _argo1
= 0;
724 PyObject
* _argo2
= 0;
725 char *_kwnames
[] = { "self","format","buf", NULL
};
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
738 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
744 if (_argo2
== Py_None
) { _arg2
= NULL
; }
745 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
752 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
754 wxPyEndAllowThreads(__tstate
);
755 if (PyErr_Occurred()) return NULL
;
756 } _resultobj
= Py_BuildValue("i",_result
);
760 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
761 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
762 PyObject
* _resultobj
;
764 wxDataObject
* _arg0
;
765 wxDataFormat
* _arg1
;
766 PyObject
* _argo0
= 0;
767 PyObject
* _argo1
= 0;
768 char *_kwnames
[] = { "self","format", NULL
};
771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
781 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
788 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
790 wxPyEndAllowThreads(__tstate
);
791 if (PyErr_Occurred()) return NULL
;
792 } _resultobj
= Py_BuildValue("i",_result
);
796 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
797 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
798 PyObject
* _resultobj
;
800 wxDataObject
* _arg0
;
801 wxDataFormat
* _arg1
;
804 PyObject
* _argo0
= 0;
805 PyObject
* _argo1
= 0;
806 PyObject
* _argo3
= 0;
807 char *_kwnames
[] = { "self","format","len","buf", NULL
};
810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
820 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
826 if (_argo3
== Py_None
) { _arg3
= NULL
; }
827 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
834 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
836 wxPyEndAllowThreads(__tstate
);
837 if (PyErr_Occurred()) return NULL
;
838 } _resultobj
= Py_BuildValue("i",_result
);
842 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
843 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 PyObject
* _resultobj
;
846 wxDataObject
* _arg0
;
847 wxDataFormat
* _arg1
;
848 PyObject
* _argo0
= 0;
849 PyObject
* _argo1
= 0;
850 char *_kwnames
[] = { "self","format", NULL
};
853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
863 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
870 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
872 wxPyEndAllowThreads(__tstate
);
873 if (PyErr_Occurred()) return NULL
;
874 } _resultobj
= Py_BuildValue("i",_result
);
878 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
879 wxDataObjectSimple
*src
;
881 src
= (wxDataObjectSimple
*) ptr
;
882 dest
= (wxDataObject
*) src
;
883 return (void *) dest
;
886 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
887 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
888 PyObject
* _resultobj
;
889 wxDataObjectSimple
* _result
;
890 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
891 PyObject
* _argo0
= 0;
892 char *_kwnames
[] = { "format", NULL
};
896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
899 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
906 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
908 wxPyEndAllowThreads(__tstate
);
909 if (PyErr_Occurred()) return NULL
;
911 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
912 _resultobj
= Py_BuildValue("s",_ptemp
);
915 _resultobj
= Py_None
;
920 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
921 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
922 PyObject
* _resultobj
;
923 wxDataFormat
* _result
;
924 wxDataObjectSimple
* _arg0
;
925 PyObject
* _argo0
= 0;
926 char *_kwnames
[] = { "self", NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
941 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
942 _result
= (wxDataFormat
*) &_result_ref
;
944 wxPyEndAllowThreads(__tstate
);
945 if (PyErr_Occurred()) return NULL
;
947 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
948 _resultobj
= Py_BuildValue("s",_ptemp
);
951 _resultobj
= Py_None
;
956 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
957 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
958 PyObject
* _resultobj
;
959 wxDataObjectSimple
* _arg0
;
960 wxDataFormat
* _arg1
;
961 PyObject
* _argo0
= 0;
962 PyObject
* _argo1
= 0;
963 char *_kwnames
[] = { "self","format", NULL
};
966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
976 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
983 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
985 wxPyEndAllowThreads(__tstate
);
986 if (PyErr_Occurred()) return NULL
;
987 } Py_INCREF(Py_None
);
988 _resultobj
= Py_None
;
992 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
993 wxPyDataObjectSimple
*src
;
994 wxDataObjectSimple
*dest
;
995 src
= (wxPyDataObjectSimple
*) ptr
;
996 dest
= (wxDataObjectSimple
*) src
;
997 return (void *) dest
;
1000 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1001 wxPyDataObjectSimple
*src
;
1003 src
= (wxPyDataObjectSimple
*) ptr
;
1004 dest
= (wxDataObject
*) src
;
1005 return (void *) dest
;
1008 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1009 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1010 PyObject
* _resultobj
;
1011 wxPyDataObjectSimple
* _result
;
1012 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1013 PyObject
* _argo0
= 0;
1014 char *_kwnames
[] = { "format", NULL
};
1018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1021 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1028 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1030 wxPyEndAllowThreads(__tstate
);
1031 if (PyErr_Occurred()) return NULL
;
1033 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1034 _resultobj
= Py_BuildValue("s",_ptemp
);
1037 _resultobj
= Py_None
;
1042 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1043 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1044 PyObject
* _resultobj
;
1045 wxPyDataObjectSimple
* _arg0
;
1048 PyObject
* _argo0
= 0;
1049 PyObject
* _obj1
= 0;
1050 PyObject
* _obj2
= 0;
1051 char *_kwnames
[] = { "self","self","_class", NULL
};
1054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1071 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1073 wxPyEndAllowThreads(__tstate
);
1074 if (PyErr_Occurred()) return NULL
;
1075 } Py_INCREF(Py_None
);
1076 _resultobj
= Py_None
;
1080 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1081 wxDataObjectComposite
*src
;
1083 src
= (wxDataObjectComposite
*) ptr
;
1084 dest
= (wxDataObject
*) src
;
1085 return (void *) dest
;
1088 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1089 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1090 PyObject
* _resultobj
;
1091 wxDataObjectComposite
* _result
;
1092 char *_kwnames
[] = { NULL
};
1096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1100 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1102 wxPyEndAllowThreads(__tstate
);
1103 if (PyErr_Occurred()) return NULL
;
1105 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1106 _resultobj
= Py_BuildValue("s",_ptemp
);
1109 _resultobj
= Py_None
;
1114 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1115 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1116 PyObject
* _resultobj
;
1117 wxDataObjectComposite
* _arg0
;
1118 wxDataObjectSimple
* _arg1
;
1119 int _arg2
= (int ) FALSE
;
1120 PyObject
* _argo0
= 0;
1121 PyObject
* _argo1
= 0;
1122 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1135 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1136 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1142 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1143 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1145 wxPyEndAllowThreads(__tstate
);
1146 if (PyErr_Occurred()) return NULL
;
1147 } Py_INCREF(Py_None
);
1148 _resultobj
= Py_None
;
1152 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1153 wxTextDataObject
*src
;
1154 wxDataObjectSimple
*dest
;
1155 src
= (wxTextDataObject
*) ptr
;
1156 dest
= (wxDataObjectSimple
*) src
;
1157 return (void *) dest
;
1160 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1161 wxTextDataObject
*src
;
1163 src
= (wxTextDataObject
*) ptr
;
1164 dest
= (wxDataObject
*) src
;
1165 return (void *) dest
;
1168 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1169 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1170 PyObject
* _resultobj
;
1171 wxTextDataObject
* _result
;
1172 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1173 PyObject
* _obj0
= 0;
1174 char *_kwnames
[] = { "text", NULL
};
1178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1182 _arg0
= wxString_in_helper(_obj0
);
1187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1188 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1190 wxPyEndAllowThreads(__tstate
);
1191 if (PyErr_Occurred()) return NULL
;
1193 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1194 _resultobj
= Py_BuildValue("s",_ptemp
);
1197 _resultobj
= Py_None
;
1206 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1207 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1208 PyObject
* _resultobj
;
1210 wxTextDataObject
* _arg0
;
1211 PyObject
* _argo0
= 0;
1212 char *_kwnames
[] = { "self", NULL
};
1215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1226 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1228 wxPyEndAllowThreads(__tstate
);
1229 if (PyErr_Occurred()) return NULL
;
1230 } _resultobj
= Py_BuildValue("i",_result
);
1234 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1235 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1236 PyObject
* _resultobj
;
1238 wxTextDataObject
* _arg0
;
1239 PyObject
* _argo0
= 0;
1240 char *_kwnames
[] = { "self", NULL
};
1243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1254 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1256 wxPyEndAllowThreads(__tstate
);
1257 if (PyErr_Occurred()) return NULL
;
1260 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1262 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1271 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1272 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1273 PyObject
* _resultobj
;
1274 wxTextDataObject
* _arg0
;
1276 PyObject
* _argo0
= 0;
1277 PyObject
* _obj1
= 0;
1278 char *_kwnames
[] = { "self","text", NULL
};
1281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1291 _arg1
= wxString_in_helper(_obj1
);
1296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1297 wxTextDataObject_SetText(_arg0
,*_arg1
);
1299 wxPyEndAllowThreads(__tstate
);
1300 if (PyErr_Occurred()) return NULL
;
1301 } Py_INCREF(Py_None
);
1302 _resultobj
= Py_None
;
1310 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1311 wxPyTextDataObject
*src
;
1312 wxTextDataObject
*dest
;
1313 src
= (wxPyTextDataObject
*) ptr
;
1314 dest
= (wxTextDataObject
*) src
;
1315 return (void *) dest
;
1318 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1319 wxPyTextDataObject
*src
;
1320 wxDataObjectSimple
*dest
;
1321 src
= (wxPyTextDataObject
*) ptr
;
1322 dest
= (wxDataObjectSimple
*) src
;
1323 return (void *) dest
;
1326 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1327 wxPyTextDataObject
*src
;
1329 src
= (wxPyTextDataObject
*) ptr
;
1330 dest
= (wxDataObject
*) src
;
1331 return (void *) dest
;
1334 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1335 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
* _resultobj
;
1337 wxPyTextDataObject
* _result
;
1338 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1339 PyObject
* _obj0
= 0;
1340 char *_kwnames
[] = { "text", NULL
};
1344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1348 _arg0
= wxString_in_helper(_obj0
);
1353 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1354 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1356 wxPyEndAllowThreads(__tstate
);
1357 if (PyErr_Occurred()) return NULL
;
1359 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1360 _resultobj
= Py_BuildValue("s",_ptemp
);
1363 _resultobj
= Py_None
;
1372 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1373 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1374 PyObject
* _resultobj
;
1375 wxPyTextDataObject
* _arg0
;
1378 PyObject
* _argo0
= 0;
1379 PyObject
* _obj1
= 0;
1380 PyObject
* _obj2
= 0;
1381 char *_kwnames
[] = { "self","self","_class", NULL
};
1384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1401 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1403 wxPyEndAllowThreads(__tstate
);
1404 if (PyErr_Occurred()) return NULL
;
1405 } Py_INCREF(Py_None
);
1406 _resultobj
= Py_None
;
1410 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1411 wxBitmapDataObject
*src
;
1412 wxDataObjectSimple
*dest
;
1413 src
= (wxBitmapDataObject
*) ptr
;
1414 dest
= (wxDataObjectSimple
*) src
;
1415 return (void *) dest
;
1418 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1419 wxBitmapDataObject
*src
;
1421 src
= (wxBitmapDataObject
*) ptr
;
1422 dest
= (wxDataObject
*) src
;
1423 return (void *) dest
;
1426 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1427 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1428 PyObject
* _resultobj
;
1429 wxBitmapDataObject
* _result
;
1430 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1431 PyObject
* _argo0
= 0;
1432 char *_kwnames
[] = { "bitmap", NULL
};
1436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1439 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1446 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1448 wxPyEndAllowThreads(__tstate
);
1449 if (PyErr_Occurred()) return NULL
;
1451 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1452 _resultobj
= Py_BuildValue("s",_ptemp
);
1455 _resultobj
= Py_None
;
1460 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1461 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1462 PyObject
* _resultobj
;
1464 wxBitmapDataObject
* _arg0
;
1465 PyObject
* _argo0
= 0;
1466 char *_kwnames
[] = { "self", NULL
};
1470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1480 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1481 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1483 wxPyEndAllowThreads(__tstate
);
1484 if (PyErr_Occurred()) return NULL
;
1485 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1486 _resultobj
= Py_BuildValue("s",_ptemp
);
1490 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1491 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1492 PyObject
* _resultobj
;
1493 wxBitmapDataObject
* _arg0
;
1495 PyObject
* _argo0
= 0;
1496 PyObject
* _argo1
= 0;
1497 char *_kwnames
[] = { "self","bitmap", NULL
};
1500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1510 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1516 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1517 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1519 wxPyEndAllowThreads(__tstate
);
1520 if (PyErr_Occurred()) return NULL
;
1521 } Py_INCREF(Py_None
);
1522 _resultobj
= Py_None
;
1526 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1527 wxPyBitmapDataObject
*src
;
1528 wxBitmapDataObject
*dest
;
1529 src
= (wxPyBitmapDataObject
*) ptr
;
1530 dest
= (wxBitmapDataObject
*) src
;
1531 return (void *) dest
;
1534 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1535 wxPyBitmapDataObject
*src
;
1536 wxDataObjectSimple
*dest
;
1537 src
= (wxPyBitmapDataObject
*) ptr
;
1538 dest
= (wxDataObjectSimple
*) src
;
1539 return (void *) dest
;
1542 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1543 wxPyBitmapDataObject
*src
;
1545 src
= (wxPyBitmapDataObject
*) ptr
;
1546 dest
= (wxDataObject
*) src
;
1547 return (void *) dest
;
1550 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1551 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1552 PyObject
* _resultobj
;
1553 wxPyBitmapDataObject
* _result
;
1554 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1555 PyObject
* _argo0
= 0;
1556 char *_kwnames
[] = { "bitmap", NULL
};
1560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1563 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1570 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1572 wxPyEndAllowThreads(__tstate
);
1573 if (PyErr_Occurred()) return NULL
;
1575 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1576 _resultobj
= Py_BuildValue("s",_ptemp
);
1579 _resultobj
= Py_None
;
1584 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1585 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1586 PyObject
* _resultobj
;
1587 wxPyBitmapDataObject
* _arg0
;
1590 PyObject
* _argo0
= 0;
1591 PyObject
* _obj1
= 0;
1592 PyObject
* _obj2
= 0;
1593 char *_kwnames
[] = { "self","self","_class", NULL
};
1596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1612 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1613 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1615 wxPyEndAllowThreads(__tstate
);
1616 if (PyErr_Occurred()) return NULL
;
1617 } Py_INCREF(Py_None
);
1618 _resultobj
= Py_None
;
1622 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1623 wxFileDataObject
*src
;
1624 wxDataObjectSimple
*dest
;
1625 src
= (wxFileDataObject
*) ptr
;
1626 dest
= (wxDataObjectSimple
*) src
;
1627 return (void *) dest
;
1630 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1631 wxFileDataObject
*src
;
1633 src
= (wxFileDataObject
*) ptr
;
1634 dest
= (wxDataObject
*) src
;
1635 return (void *) dest
;
1638 #define new_wxFileDataObject() (new wxFileDataObject())
1639 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1640 PyObject
* _resultobj
;
1641 wxFileDataObject
* _result
;
1642 char *_kwnames
[] = { NULL
};
1646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1649 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1650 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1652 wxPyEndAllowThreads(__tstate
);
1653 if (PyErr_Occurred()) return NULL
;
1655 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1656 _resultobj
= Py_BuildValue("s",_ptemp
);
1659 _resultobj
= Py_None
;
1664 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1665 const wxArrayString
& strings
= self
->GetFilenames();
1666 return wxArrayString2PyList_helper(strings
);
1668 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1669 PyObject
* _resultobj
;
1671 wxFileDataObject
* _arg0
;
1672 PyObject
* _argo0
= 0;
1673 char *_kwnames
[] = { "self", NULL
};
1676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1687 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1689 wxPyEndAllowThreads(__tstate
);
1690 if (PyErr_Occurred()) return NULL
;
1692 _resultobj
= _result
;
1697 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1698 wxCustomDataObject
*src
;
1699 wxDataObjectSimple
*dest
;
1700 src
= (wxCustomDataObject
*) ptr
;
1701 dest
= (wxDataObjectSimple
*) src
;
1702 return (void *) dest
;
1705 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1706 wxCustomDataObject
*src
;
1708 src
= (wxCustomDataObject
*) ptr
;
1709 dest
= (wxDataObject
*) src
;
1710 return (void *) dest
;
1713 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1714 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1715 PyObject
* _resultobj
;
1716 wxCustomDataObject
* _result
;
1717 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1718 PyObject
* _argo0
= 0;
1719 char *_kwnames
[] = { "format", NULL
};
1723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1726 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1733 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1735 wxPyEndAllowThreads(__tstate
);
1736 if (PyErr_Occurred()) return NULL
;
1738 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1739 _resultobj
= Py_BuildValue("s",_ptemp
);
1742 _resultobj
= Py_None
;
1747 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1748 if (PyString_Check(data
)) {
1749 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1752 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1753 PyObject
* _resultobj
;
1754 wxCustomDataObject
* _arg0
;
1756 PyObject
* _argo0
= 0;
1757 PyObject
* _obj1
= 0;
1758 char *_kwnames
[] = { "self","data", NULL
};
1761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1774 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1775 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1777 wxPyEndAllowThreads(__tstate
);
1778 if (PyErr_Occurred()) return NULL
;
1779 } Py_INCREF(Py_None
);
1780 _resultobj
= Py_None
;
1784 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1785 if (PyString_Check(data
)) {
1786 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1790 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1791 PyObject
* _resultobj
;
1793 wxCustomDataObject
* _arg0
;
1795 PyObject
* _argo0
= 0;
1796 PyObject
* _obj1
= 0;
1797 char *_kwnames
[] = { "self","data", NULL
};
1800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1813 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1814 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1816 wxPyEndAllowThreads(__tstate
);
1817 if (PyErr_Occurred()) return NULL
;
1818 } _resultobj
= Py_BuildValue("i",_result
);
1822 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1823 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1824 PyObject
* _resultobj
;
1826 wxCustomDataObject
* _arg0
;
1827 PyObject
* _argo0
= 0;
1828 char *_kwnames
[] = { "self", NULL
};
1831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1842 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1844 wxPyEndAllowThreads(__tstate
);
1845 if (PyErr_Occurred()) return NULL
;
1846 } _resultobj
= Py_BuildValue("i",_result
);
1850 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1851 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1853 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1854 PyObject
* _resultobj
;
1856 wxCustomDataObject
* _arg0
;
1857 PyObject
* _argo0
= 0;
1858 char *_kwnames
[] = { "self", NULL
};
1861 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1864 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1865 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1866 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1871 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1872 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1874 wxPyEndAllowThreads(__tstate
);
1875 if (PyErr_Occurred()) return NULL
;
1877 _resultobj
= _result
;
1882 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1883 wxURLDataObject
*src
;
1884 wxDataObjectComposite
*dest
;
1885 src
= (wxURLDataObject
*) ptr
;
1886 dest
= (wxDataObjectComposite
*) src
;
1887 return (void *) dest
;
1890 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1891 wxURLDataObject
*src
;
1893 src
= (wxURLDataObject
*) ptr
;
1894 dest
= (wxDataObject
*) src
;
1895 return (void *) dest
;
1898 #define new_wxURLDataObject() (new wxURLDataObject())
1899 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1900 PyObject
* _resultobj
;
1901 wxURLDataObject
* _result
;
1902 char *_kwnames
[] = { NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1910 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1912 wxPyEndAllowThreads(__tstate
);
1913 if (PyErr_Occurred()) return NULL
;
1915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1916 _resultobj
= Py_BuildValue("s",_ptemp
);
1919 _resultobj
= Py_None
;
1924 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1925 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1926 PyObject
* _resultobj
;
1928 wxURLDataObject
* _arg0
;
1929 PyObject
* _argo0
= 0;
1930 char *_kwnames
[] = { "self", NULL
};
1933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1943 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1944 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1946 wxPyEndAllowThreads(__tstate
);
1947 if (PyErr_Occurred()) return NULL
;
1950 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1952 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1961 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1962 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1963 PyObject
* _resultobj
;
1964 wxURLDataObject
* _arg0
;
1966 PyObject
* _argo0
= 0;
1967 PyObject
* _obj1
= 0;
1968 char *_kwnames
[] = { "self","url", NULL
};
1971 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1974 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1975 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1976 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1981 _arg1
= wxString_in_helper(_obj1
);
1986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1987 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1989 wxPyEndAllowThreads(__tstate
);
1990 if (PyErr_Occurred()) return NULL
;
1991 } Py_INCREF(Py_None
);
1992 _resultobj
= Py_None
;
2000 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2001 wxMetafileDataObject
*src
;
2002 wxDataObjectSimple
*dest
;
2003 src
= (wxMetafileDataObject
*) ptr
;
2004 dest
= (wxDataObjectSimple
*) src
;
2005 return (void *) dest
;
2008 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2009 wxMetafileDataObject
*src
;
2011 src
= (wxMetafileDataObject
*) ptr
;
2012 dest
= (wxDataObject
*) src
;
2013 return (void *) dest
;
2016 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2017 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2019 wxMetafileDataObject
* _result
;
2020 char *_kwnames
[] = { NULL
};
2024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2030 wxPyEndAllowThreads(__tstate
);
2031 if (PyErr_Occurred()) return NULL
;
2033 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2034 _resultobj
= Py_BuildValue("s",_ptemp
);
2037 _resultobj
= Py_None
;
2042 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2043 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2044 PyObject
* _resultobj
;
2045 wxMetafileDataObject
* _arg0
;
2047 PyObject
* _argo0
= 0;
2048 PyObject
* _argo1
= 0;
2049 char *_kwnames
[] = { "self","metafile", NULL
};
2052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2062 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2069 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2071 wxPyEndAllowThreads(__tstate
);
2072 if (PyErr_Occurred()) return NULL
;
2073 } Py_INCREF(Py_None
);
2074 _resultobj
= Py_None
;
2078 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2079 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2080 PyObject
* _resultobj
;
2081 wxMetafile
* _result
;
2082 wxMetafileDataObject
* _arg0
;
2083 PyObject
* _argo0
= 0;
2084 char *_kwnames
[] = { "self", NULL
};
2088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2098 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2099 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2101 wxPyEndAllowThreads(__tstate
);
2102 if (PyErr_Occurred()) return NULL
;
2103 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2104 _resultobj
= Py_BuildValue("s",_ptemp
);
2108 static void *SwigwxClipboardTowxObject(void *ptr
) {
2111 src
= (wxClipboard
*) ptr
;
2112 dest
= (wxObject
*) src
;
2113 return (void *) dest
;
2116 #define new_wxClipboard() (new wxClipboard())
2117 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2118 PyObject
* _resultobj
;
2119 wxClipboard
* _result
;
2120 char *_kwnames
[] = { NULL
};
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2128 _result
= (wxClipboard
*)new_wxClipboard();
2130 wxPyEndAllowThreads(__tstate
);
2131 if (PyErr_Occurred()) return NULL
;
2133 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2134 _resultobj
= Py_BuildValue("s",_ptemp
);
2137 _resultobj
= Py_None
;
2142 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2143 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2144 PyObject
* _resultobj
;
2146 wxClipboard
* _arg0
;
2147 PyObject
* _argo0
= 0;
2148 char *_kwnames
[] = { "self", NULL
};
2151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2161 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2162 _result
= (bool )wxClipboard_Open(_arg0
);
2164 wxPyEndAllowThreads(__tstate
);
2165 if (PyErr_Occurred()) return NULL
;
2166 } _resultobj
= Py_BuildValue("i",_result
);
2170 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2171 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2172 PyObject
* _resultobj
;
2173 wxClipboard
* _arg0
;
2174 PyObject
* _argo0
= 0;
2175 char *_kwnames
[] = { "self", NULL
};
2178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2189 wxClipboard_Close(_arg0
);
2191 wxPyEndAllowThreads(__tstate
);
2192 if (PyErr_Occurred()) return NULL
;
2193 } Py_INCREF(Py_None
);
2194 _resultobj
= Py_None
;
2198 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2199 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2200 PyObject
* _resultobj
;
2202 wxClipboard
* _arg0
;
2203 PyObject
* _argo0
= 0;
2204 char *_kwnames
[] = { "self", NULL
};
2207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2217 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2218 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2220 wxPyEndAllowThreads(__tstate
);
2221 if (PyErr_Occurred()) return NULL
;
2222 } _resultobj
= Py_BuildValue("i",_result
);
2226 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2227 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2228 PyObject
* _resultobj
;
2230 wxClipboard
* _arg0
;
2231 wxDataObject
* _arg1
;
2232 PyObject
* _argo0
= 0;
2233 PyObject
* _argo1
= 0;
2234 char *_kwnames
[] = { "self","data", NULL
};
2237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2247 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2248 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2255 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2257 wxPyEndAllowThreads(__tstate
);
2258 if (PyErr_Occurred()) return NULL
;
2259 } _resultobj
= Py_BuildValue("i",_result
);
2263 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2264 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
* _resultobj
;
2267 wxClipboard
* _arg0
;
2268 wxDataObject
* _arg1
;
2269 PyObject
* _argo0
= 0;
2270 PyObject
* _argo1
= 0;
2271 char *_kwnames
[] = { "self","data", NULL
};
2274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2292 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2294 wxPyEndAllowThreads(__tstate
);
2295 if (PyErr_Occurred()) return NULL
;
2296 } _resultobj
= Py_BuildValue("i",_result
);
2300 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2301 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
* _resultobj
;
2304 wxClipboard
* _arg0
;
2305 wxDataFormat
* _arg1
;
2306 PyObject
* _argo0
= 0;
2307 PyObject
* _argo1
= 0;
2308 char *_kwnames
[] = { "self","format", NULL
};
2311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2321 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2328 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2330 wxPyEndAllowThreads(__tstate
);
2331 if (PyErr_Occurred()) return NULL
;
2332 } _resultobj
= Py_BuildValue("i",_result
);
2336 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2337 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2338 PyObject
* _resultobj
;
2340 wxClipboard
* _arg0
;
2341 wxDataObject
* _arg1
;
2342 PyObject
* _argo0
= 0;
2343 PyObject
* _argo1
= 0;
2344 char *_kwnames
[] = { "self","data", NULL
};
2347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2357 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2363 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2364 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2366 wxPyEndAllowThreads(__tstate
);
2367 if (PyErr_Occurred()) return NULL
;
2368 } _resultobj
= Py_BuildValue("i",_result
);
2372 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2373 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2374 PyObject
* _resultobj
;
2375 wxClipboard
* _arg0
;
2376 PyObject
* _argo0
= 0;
2377 char *_kwnames
[] = { "self", NULL
};
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2391 wxClipboard_Clear(_arg0
);
2393 wxPyEndAllowThreads(__tstate
);
2394 if (PyErr_Occurred()) return NULL
;
2395 } Py_INCREF(Py_None
);
2396 _resultobj
= Py_None
;
2400 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2401 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2402 PyObject
* _resultobj
;
2404 wxClipboard
* _arg0
;
2405 PyObject
* _argo0
= 0;
2406 char *_kwnames
[] = { "self", NULL
};
2409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2419 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2420 _result
= (bool )wxClipboard_Flush(_arg0
);
2422 wxPyEndAllowThreads(__tstate
);
2423 if (PyErr_Occurred()) return NULL
;
2424 } _resultobj
= Py_BuildValue("i",_result
);
2428 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2429 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2430 PyObject
* _resultobj
;
2431 wxClipboard
* _arg0
;
2432 int _arg1
= (int ) FALSE
;
2433 PyObject
* _argo0
= 0;
2434 char *_kwnames
[] = { "self","primary", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2448 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2450 wxPyEndAllowThreads(__tstate
);
2451 if (PyErr_Occurred()) return NULL
;
2452 } Py_INCREF(Py_None
);
2453 _resultobj
= Py_None
;
2457 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2458 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2460 wxPyDropSource
* _result
;
2461 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2462 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2463 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2464 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2465 PyObject
* _argo0
= 0;
2466 PyObject
* _argo1
= 0;
2467 PyObject
* _argo2
= 0;
2468 PyObject
* _argo3
= 0;
2469 char *_kwnames
[] = { "win","copy","move","none", NULL
};
2473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2483 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2489 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2495 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) return NULL
;
2507 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2508 _resultobj
= Py_BuildValue("s",_ptemp
);
2511 _resultobj
= Py_None
;
2516 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2517 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2518 PyObject
* _resultobj
;
2519 wxPyDropSource
* _arg0
;
2523 PyObject
* _argo0
= 0;
2524 PyObject
* _obj1
= 0;
2525 PyObject
* _obj2
= 0;
2526 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2546 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2548 wxPyEndAllowThreads(__tstate
);
2549 if (PyErr_Occurred()) return NULL
;
2550 } Py_INCREF(Py_None
);
2551 _resultobj
= Py_None
;
2555 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2556 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2557 PyObject
* _resultobj
;
2558 wxPyDropSource
* _arg0
;
2559 PyObject
* _argo0
= 0;
2560 char *_kwnames
[] = { "self", NULL
};
2563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2574 delete_wxPyDropSource(_arg0
);
2576 wxPyEndAllowThreads(__tstate
);
2577 if (PyErr_Occurred()) return NULL
;
2578 } Py_INCREF(Py_None
);
2579 _resultobj
= Py_None
;
2583 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2584 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2585 PyObject
* _resultobj
;
2586 wxPyDropSource
* _arg0
;
2587 wxDataObject
* _arg1
;
2588 PyObject
* _argo0
= 0;
2589 PyObject
* _argo1
= 0;
2590 char *_kwnames
[] = { "self","data", NULL
};
2593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2596 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2597 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2603 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2610 wxDropSource_SetData(_arg0
,*_arg1
);
2612 wxPyEndAllowThreads(__tstate
);
2613 if (PyErr_Occurred()) return NULL
;
2614 } Py_INCREF(Py_None
);
2615 _resultobj
= Py_None
;
2619 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2620 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2621 PyObject
* _resultobj
;
2622 wxDataObject
* _result
;
2623 wxPyDropSource
* _arg0
;
2624 PyObject
* _argo0
= 0;
2625 char *_kwnames
[] = { "self", NULL
};
2629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2640 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2642 wxPyEndAllowThreads(__tstate
);
2643 if (PyErr_Occurred()) return NULL
;
2645 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2646 _resultobj
= Py_BuildValue("s",_ptemp
);
2649 _resultobj
= Py_None
;
2654 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2655 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2656 PyObject
* _resultobj
;
2657 wxPyDropSource
* _arg0
;
2660 PyObject
* _argo0
= 0;
2661 PyObject
* _argo2
= 0;
2662 char *_kwnames
[] = { "self","res","cursor", NULL
};
2665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2675 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2681 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2682 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2684 wxPyEndAllowThreads(__tstate
);
2685 if (PyErr_Occurred()) return NULL
;
2686 } Py_INCREF(Py_None
);
2687 _resultobj
= Py_None
;
2691 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2692 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2693 PyObject
* _resultobj
;
2694 wxDragResult _result
;
2695 wxPyDropSource
* _arg0
;
2696 int _arg1
= (int ) (wxDrag_CopyOnly
);
2697 PyObject
* _argo0
= 0;
2698 char *_kwnames
[] = { "self","flags", NULL
};
2701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2712 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2714 wxPyEndAllowThreads(__tstate
);
2715 if (PyErr_Occurred()) return NULL
;
2716 } _resultobj
= Py_BuildValue("i",_result
);
2720 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2721 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2722 PyObject
* _resultobj
;
2724 wxPyDropSource
* _arg0
;
2726 PyObject
* _argo0
= 0;
2727 char *_kwnames
[] = { "self","effect", NULL
};
2730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2741 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2743 wxPyEndAllowThreads(__tstate
);
2744 if (PyErr_Occurred()) return NULL
;
2745 } _resultobj
= Py_BuildValue("i",_result
);
2749 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2750 wxPyDropTarget
*src
;
2752 src
= (wxPyDropTarget
*) ptr
;
2753 dest
= (wxDropTarget
*) src
;
2754 return (void *) dest
;
2757 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2758 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2760 wxPyDropTarget
* _result
;
2761 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2762 PyObject
* _argo0
= 0;
2763 char *_kwnames
[] = { "dataObject", NULL
};
2767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2777 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2778 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2780 wxPyEndAllowThreads(__tstate
);
2781 if (PyErr_Occurred()) return NULL
;
2783 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2784 _resultobj
= Py_BuildValue("s",_ptemp
);
2787 _resultobj
= Py_None
;
2792 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2793 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2794 PyObject
* _resultobj
;
2795 wxPyDropTarget
* _arg0
;
2798 PyObject
* _argo0
= 0;
2799 PyObject
* _obj1
= 0;
2800 PyObject
* _obj2
= 0;
2801 char *_kwnames
[] = { "self","self","_class", NULL
};
2804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) return NULL
;
2825 } Py_INCREF(Py_None
);
2826 _resultobj
= Py_None
;
2830 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2831 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2832 PyObject
* _resultobj
;
2833 wxPyDropTarget
* _arg0
;
2834 PyObject
* _argo0
= 0;
2835 char *_kwnames
[] = { "self", NULL
};
2838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2849 delete_wxPyDropTarget(_arg0
);
2851 wxPyEndAllowThreads(__tstate
);
2852 if (PyErr_Occurred()) return NULL
;
2853 } Py_INCREF(Py_None
);
2854 _resultobj
= Py_None
;
2858 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2859 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2860 PyObject
* _resultobj
;
2861 wxDataObject
* _result
;
2862 wxPyDropTarget
* _arg0
;
2863 PyObject
* _argo0
= 0;
2864 char *_kwnames
[] = { "self", NULL
};
2868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2878 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2879 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2881 wxPyEndAllowThreads(__tstate
);
2882 if (PyErr_Occurred()) return NULL
;
2884 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2885 _resultobj
= Py_BuildValue("s",_ptemp
);
2888 _resultobj
= Py_None
;
2893 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2894 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2895 PyObject
* _resultobj
;
2896 wxPyDropTarget
* _arg0
;
2897 wxDataObject
* _arg1
;
2898 PyObject
* _argo0
= 0;
2899 PyObject
* _argo1
= 0;
2900 char *_kwnames
[] = { "self","dataObject", NULL
};
2903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2913 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2921 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2923 wxPyEndAllowThreads(__tstate
);
2924 if (PyErr_Occurred()) return NULL
;
2925 } Py_INCREF(Py_None
);
2926 _resultobj
= Py_None
;
2930 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2931 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2932 PyObject
* _resultobj
;
2933 wxDragResult _result
;
2934 wxPyDropTarget
* _arg0
;
2938 PyObject
* _argo0
= 0;
2939 char *_kwnames
[] = { "self","x","y","def", NULL
};
2942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2953 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2955 wxPyEndAllowThreads(__tstate
);
2956 if (PyErr_Occurred()) return NULL
;
2957 } _resultobj
= Py_BuildValue("i",_result
);
2961 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2962 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2963 PyObject
* _resultobj
;
2964 wxDragResult _result
;
2965 wxPyDropTarget
* _arg0
;
2969 PyObject
* _argo0
= 0;
2970 char *_kwnames
[] = { "self","x","y","def", NULL
};
2973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2984 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2986 wxPyEndAllowThreads(__tstate
);
2987 if (PyErr_Occurred()) return NULL
;
2988 } _resultobj
= Py_BuildValue("i",_result
);
2992 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2993 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2994 PyObject
* _resultobj
;
2995 wxPyDropTarget
* _arg0
;
2996 PyObject
* _argo0
= 0;
2997 char *_kwnames
[] = { "self", NULL
};
3000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3010 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3011 wxPyDropTarget_base_OnLeave(_arg0
);
3013 wxPyEndAllowThreads(__tstate
);
3014 if (PyErr_Occurred()) return NULL
;
3015 } Py_INCREF(Py_None
);
3016 _resultobj
= Py_None
;
3020 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3021 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3022 PyObject
* _resultobj
;
3024 wxPyDropTarget
* _arg0
;
3027 PyObject
* _argo0
= 0;
3028 char *_kwnames
[] = { "self","x","y", NULL
};
3031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3041 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3042 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3044 wxPyEndAllowThreads(__tstate
);
3045 if (PyErr_Occurred()) return NULL
;
3046 } _resultobj
= Py_BuildValue("i",_result
);
3050 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3051 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3052 PyObject
* _resultobj
;
3054 wxPyDropTarget
* _arg0
;
3055 PyObject
* _argo0
= 0;
3056 char *_kwnames
[] = { "self", NULL
};
3059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3070 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3072 wxPyEndAllowThreads(__tstate
);
3073 if (PyErr_Occurred()) return NULL
;
3074 } _resultobj
= Py_BuildValue("i",_result
);
3078 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3079 wxPyTextDropTarget
*src
;
3080 wxPyDropTarget
*dest
;
3081 src
= (wxPyTextDropTarget
*) ptr
;
3082 dest
= (wxPyDropTarget
*) src
;
3083 return (void *) dest
;
3086 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3087 wxPyTextDropTarget
*src
;
3089 src
= (wxPyTextDropTarget
*) ptr
;
3090 dest
= (wxDropTarget
*) src
;
3091 return (void *) dest
;
3094 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3095 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3096 PyObject
* _resultobj
;
3097 wxPyTextDropTarget
* _result
;
3098 char *_kwnames
[] = { NULL
};
3102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3106 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3108 wxPyEndAllowThreads(__tstate
);
3109 if (PyErr_Occurred()) return NULL
;
3111 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3112 _resultobj
= Py_BuildValue("s",_ptemp
);
3115 _resultobj
= Py_None
;
3120 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3121 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3122 PyObject
* _resultobj
;
3123 wxPyTextDropTarget
* _arg0
;
3126 PyObject
* _argo0
= 0;
3127 PyObject
* _obj1
= 0;
3128 PyObject
* _obj2
= 0;
3129 char *_kwnames
[] = { "self","self","_class", NULL
};
3132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3149 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3151 wxPyEndAllowThreads(__tstate
);
3152 if (PyErr_Occurred()) return NULL
;
3153 } Py_INCREF(Py_None
);
3154 _resultobj
= Py_None
;
3158 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3159 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3160 PyObject
* _resultobj
;
3161 wxDragResult _result
;
3162 wxPyTextDropTarget
* _arg0
;
3166 PyObject
* _argo0
= 0;
3167 char *_kwnames
[] = { "self","x","y","def", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3181 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3183 wxPyEndAllowThreads(__tstate
);
3184 if (PyErr_Occurred()) return NULL
;
3185 } _resultobj
= Py_BuildValue("i",_result
);
3189 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3190 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3191 PyObject
* _resultobj
;
3192 wxDragResult _result
;
3193 wxPyTextDropTarget
* _arg0
;
3197 PyObject
* _argo0
= 0;
3198 char *_kwnames
[] = { "self","x","y","def", NULL
};
3201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3211 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3212 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3214 wxPyEndAllowThreads(__tstate
);
3215 if (PyErr_Occurred()) return NULL
;
3216 } _resultobj
= Py_BuildValue("i",_result
);
3220 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3221 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3222 PyObject
* _resultobj
;
3223 wxPyTextDropTarget
* _arg0
;
3224 PyObject
* _argo0
= 0;
3225 char *_kwnames
[] = { "self", NULL
};
3228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3239 wxTextDropTarget_base_OnLeave(_arg0
);
3241 wxPyEndAllowThreads(__tstate
);
3242 if (PyErr_Occurred()) return NULL
;
3243 } Py_INCREF(Py_None
);
3244 _resultobj
= Py_None
;
3248 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3249 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3250 PyObject
* _resultobj
;
3252 wxPyTextDropTarget
* _arg0
;
3255 PyObject
* _argo0
= 0;
3256 char *_kwnames
[] = { "self","x","y", NULL
};
3259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3270 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3272 wxPyEndAllowThreads(__tstate
);
3273 if (PyErr_Occurred()) return NULL
;
3274 } _resultobj
= Py_BuildValue("i",_result
);
3278 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3279 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3280 PyObject
* _resultobj
;
3281 wxDragResult _result
;
3282 wxPyTextDropTarget
* _arg0
;
3286 PyObject
* _argo0
= 0;
3287 char *_kwnames
[] = { "self","x","y","def", NULL
};
3290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3301 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3303 wxPyEndAllowThreads(__tstate
);
3304 if (PyErr_Occurred()) return NULL
;
3305 } _resultobj
= Py_BuildValue("i",_result
);
3309 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3310 wxPyFileDropTarget
*src
;
3311 wxPyDropTarget
*dest
;
3312 src
= (wxPyFileDropTarget
*) ptr
;
3313 dest
= (wxPyDropTarget
*) src
;
3314 return (void *) dest
;
3317 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3318 wxPyFileDropTarget
*src
;
3320 src
= (wxPyFileDropTarget
*) ptr
;
3321 dest
= (wxDropTarget
*) src
;
3322 return (void *) dest
;
3325 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3326 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3327 PyObject
* _resultobj
;
3328 wxPyFileDropTarget
* _result
;
3329 char *_kwnames
[] = { NULL
};
3333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3336 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3337 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3339 wxPyEndAllowThreads(__tstate
);
3340 if (PyErr_Occurred()) return NULL
;
3342 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3343 _resultobj
= Py_BuildValue("s",_ptemp
);
3346 _resultobj
= Py_None
;
3351 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3352 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3353 PyObject
* _resultobj
;
3354 wxPyFileDropTarget
* _arg0
;
3357 PyObject
* _argo0
= 0;
3358 PyObject
* _obj1
= 0;
3359 PyObject
* _obj2
= 0;
3360 char *_kwnames
[] = { "self","self","_class", NULL
};
3363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3380 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3382 wxPyEndAllowThreads(__tstate
);
3383 if (PyErr_Occurred()) return NULL
;
3384 } Py_INCREF(Py_None
);
3385 _resultobj
= Py_None
;
3389 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3390 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3391 PyObject
* _resultobj
;
3392 wxDragResult _result
;
3393 wxPyFileDropTarget
* _arg0
;
3397 PyObject
* _argo0
= 0;
3398 char *_kwnames
[] = { "self","x","y","def", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3411 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3412 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3414 wxPyEndAllowThreads(__tstate
);
3415 if (PyErr_Occurred()) return NULL
;
3416 } _resultobj
= Py_BuildValue("i",_result
);
3420 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3421 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3422 PyObject
* _resultobj
;
3423 wxDragResult _result
;
3424 wxPyFileDropTarget
* _arg0
;
3428 PyObject
* _argo0
= 0;
3429 char *_kwnames
[] = { "self","x","y","def", NULL
};
3432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3442 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3443 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3445 wxPyEndAllowThreads(__tstate
);
3446 if (PyErr_Occurred()) return NULL
;
3447 } _resultobj
= Py_BuildValue("i",_result
);
3451 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3452 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
* _resultobj
;
3454 wxPyFileDropTarget
* _arg0
;
3455 PyObject
* _argo0
= 0;
3456 char *_kwnames
[] = { "self", NULL
};
3459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3470 wxFileDropTarget_base_OnLeave(_arg0
);
3472 wxPyEndAllowThreads(__tstate
);
3473 if (PyErr_Occurred()) return NULL
;
3474 } Py_INCREF(Py_None
);
3475 _resultobj
= Py_None
;
3479 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3480 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3481 PyObject
* _resultobj
;
3483 wxPyFileDropTarget
* _arg0
;
3486 PyObject
* _argo0
= 0;
3487 char *_kwnames
[] = { "self","x","y", NULL
};
3490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3501 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3503 wxPyEndAllowThreads(__tstate
);
3504 if (PyErr_Occurred()) return NULL
;
3505 } _resultobj
= Py_BuildValue("i",_result
);
3509 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3510 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3511 PyObject
* _resultobj
;
3512 wxDragResult _result
;
3513 wxPyFileDropTarget
* _arg0
;
3517 PyObject
* _argo0
= 0;
3518 char *_kwnames
[] = { "self","x","y","def", NULL
};
3521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3532 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3534 wxPyEndAllowThreads(__tstate
);
3535 if (PyErr_Occurred()) return NULL
;
3536 } _resultobj
= Py_BuildValue("i",_result
);
3540 static PyMethodDef clip_dndcMethods
[] = {
3541 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3573 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3574 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3575 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3576 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3577 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3578 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3579 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3580 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3581 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3582 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3637 * This table is used by the pointer type-checker
3639 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3640 { "_signed_long","_long",0},
3641 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3642 { "_wxPrintQuality","_wxCoord",0},
3643 { "_wxPrintQuality","_int",0},
3644 { "_wxPrintQuality","_signed_int",0},
3645 { "_wxPrintQuality","_unsigned_int",0},
3646 { "_wxPrintQuality","_wxWindowID",0},
3647 { "_wxPrintQuality","_uint",0},
3648 { "_wxPrintQuality","_EBool",0},
3649 { "_wxPrintQuality","_size_t",0},
3650 { "_wxPrintQuality","_time_t",0},
3651 { "_byte","_unsigned_char",0},
3652 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3653 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3654 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3655 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3656 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3657 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3658 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3659 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3660 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3661 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3662 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3663 { "_long","_unsigned_long",0},
3664 { "_long","_signed_long",0},
3665 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3666 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3667 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3668 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3669 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3670 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3671 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3672 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3673 { "_size_t","_wxCoord",0},
3674 { "_size_t","_wxPrintQuality",0},
3675 { "_size_t","_time_t",0},
3676 { "_size_t","_unsigned_int",0},
3677 { "_size_t","_int",0},
3678 { "_size_t","_wxWindowID",0},
3679 { "_size_t","_uint",0},
3680 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3681 { "_uint","_wxCoord",0},
3682 { "_uint","_wxPrintQuality",0},
3683 { "_uint","_time_t",0},
3684 { "_uint","_size_t",0},
3685 { "_uint","_unsigned_int",0},
3686 { "_uint","_int",0},
3687 { "_uint","_wxWindowID",0},
3688 { "_wxChar","_char",0},
3689 { "_char","_wxChar",0},
3690 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3691 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3692 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3693 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3694 { "_EBool","_wxCoord",0},
3695 { "_EBool","_wxPrintQuality",0},
3696 { "_EBool","_signed_int",0},
3697 { "_EBool","_int",0},
3698 { "_EBool","_wxWindowID",0},
3699 { "_unsigned_long","_long",0},
3700 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3701 { "_signed_int","_wxCoord",0},
3702 { "_signed_int","_wxPrintQuality",0},
3703 { "_signed_int","_EBool",0},
3704 { "_signed_int","_wxWindowID",0},
3705 { "_signed_int","_int",0},
3706 { "_WXTYPE","_short",0},
3707 { "_WXTYPE","_signed_short",0},
3708 { "_WXTYPE","_unsigned_short",0},
3709 { "_unsigned_short","_WXTYPE",0},
3710 { "_unsigned_short","_short",0},
3711 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3712 { "_signed_short","_WXTYPE",0},
3713 { "_signed_short","_short",0},
3714 { "_unsigned_char","_byte",0},
3715 { "_unsigned_int","_wxCoord",0},
3716 { "_unsigned_int","_wxPrintQuality",0},
3717 { "_unsigned_int","_time_t",0},
3718 { "_unsigned_int","_size_t",0},
3719 { "_unsigned_int","_uint",0},
3720 { "_unsigned_int","_wxWindowID",0},
3721 { "_unsigned_int","_int",0},
3722 { "_short","_WXTYPE",0},
3723 { "_short","_unsigned_short",0},
3724 { "_short","_signed_short",0},
3725 { "_wxWindowID","_wxCoord",0},
3726 { "_wxWindowID","_wxPrintQuality",0},
3727 { "_wxWindowID","_time_t",0},
3728 { "_wxWindowID","_size_t",0},
3729 { "_wxWindowID","_EBool",0},
3730 { "_wxWindowID","_uint",0},
3731 { "_wxWindowID","_int",0},
3732 { "_wxWindowID","_signed_int",0},
3733 { "_wxWindowID","_unsigned_int",0},
3734 { "_int","_wxCoord",0},
3735 { "_int","_wxPrintQuality",0},
3736 { "_int","_time_t",0},
3737 { "_int","_size_t",0},
3738 { "_int","_EBool",0},
3739 { "_int","_uint",0},
3740 { "_int","_wxWindowID",0},
3741 { "_int","_unsigned_int",0},
3742 { "_int","_signed_int",0},
3743 { "_time_t","_wxCoord",0},
3744 { "_time_t","_wxPrintQuality",0},
3745 { "_time_t","_unsigned_int",0},
3746 { "_time_t","_int",0},
3747 { "_time_t","_wxWindowID",0},
3748 { "_time_t","_uint",0},
3749 { "_time_t","_size_t",0},
3750 { "_wxCoord","_int",0},
3751 { "_wxCoord","_signed_int",0},
3752 { "_wxCoord","_unsigned_int",0},
3753 { "_wxCoord","_wxWindowID",0},
3754 { "_wxCoord","_uint",0},
3755 { "_wxCoord","_EBool",0},
3756 { "_wxCoord","_size_t",0},
3757 { "_wxCoord","_time_t",0},
3758 { "_wxCoord","_wxPrintQuality",0},
3759 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3760 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3761 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3764 static PyObject
*SWIG_globals
;
3768 SWIGEXPORT(void) initclip_dndc() {
3770 SWIG_globals
= SWIG_newvarlink();
3771 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3772 d
= PyModule_GetDict(m
);
3773 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3774 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3775 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3776 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3777 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3778 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3779 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3780 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3781 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3782 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3783 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3784 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3785 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3786 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3787 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3788 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3789 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3790 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3791 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3792 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3793 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3794 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3795 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxTheClipboard_get
, _wrap_wxTheClipboard_set
);
3796 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3797 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3798 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3799 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3800 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3801 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3802 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3803 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3804 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3807 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3808 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3809 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3810 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3811 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3812 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3815 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3816 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);