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 */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
90 // Put some wx default wxChar* values into wxStrings.
91 static const wxString
wxPyEmptyString(wxT(""));
92 // An alternate constructor...
93 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
94 return new wxDataFormat(id
);
97 wxDataFormat wxPyFormatInvalid
;
98 // Create a new class for wxPython to use
99 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
101 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
102 : wxDataObjectSimple(format
) {}
104 DEC_PYCALLBACK_SIZET_(GetDataSize
);
105 bool GetDataHere(void *buf
);
106 bool SetData(size_t len
, const void *buf
);
110 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
112 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
113 // We need to get the data for this object and write it to buf. I think
114 // the best way to do this for wxPython is to have the Python method
115 // return either a string or None and then act appropriately with the
119 wxPyBeginBlockThreads();
120 if (m_myInst
.findCallback("GetDataHere")) {
122 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
124 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
126 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
130 wxPyEndBlockThreads();
134 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
135 // For this one we simply need to make a string from buf and len
136 // and send it to the Python method.
138 wxPyBeginBlockThreads();
139 if (m_myInst
.findCallback("SetData")) {
140 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
141 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
144 wxPyEndBlockThreads();
147 // Create a new class for wxPython to use
148 class wxPyTextDataObject
: public wxTextDataObject
{
150 wxPyTextDataObject(const wxString
& text
= wxPyEmptyString
)
151 : wxTextDataObject(text
) {}
153 DEC_PYCALLBACK_SIZET_(GetTextLength
);
154 DEC_PYCALLBACK_STRING_(GetText
);
155 DEC_PYCALLBACK__STRING(SetText
);
159 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
160 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
161 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
163 // Create a new class for wxPython to use
164 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
166 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
167 : wxBitmapDataObject(bitmap
) {}
169 wxBitmap
GetBitmap();
170 void SetBitmap(const wxBitmap
& bitmap
);
174 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
175 wxBitmap
* rval
= &wxNullBitmap
;
176 wxPyBeginBlockThreads();
177 if (m_myInst
.findCallback("GetBitmap")) {
180 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
182 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
187 wxPyEndBlockThreads();
191 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
192 wxPyBeginBlockThreads();
193 if (m_myInst
.findCallback("SetBitmap")) {
194 PyObject
* bo
= wxPyConstructObject((void*)&bitmap
, "wxBitmap");
195 m_myInst
.callCallback(Py_BuildValue("(O)", bo
));
198 wxPyEndBlockThreads();
201 #include <wx/metafile.h>
203 // See below in the init function...
204 wxClipboard
* wxPyTheClipboard
;
206 class wxPyDropSource
: public wxDropSource
{
209 wxPyDropSource(wxWindow
*win
= NULL
,
210 const wxCursor
&cursorCopy
= wxNullCursor
,
211 const wxCursor
&cursorMove
= wxNullCursor
,
212 const wxCursor
&cursorStop
= wxNullCursor
)
213 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
215 wxPyDropSource(wxWindow
*win
= NULL
,
216 const wxIcon
&go
= wxNullIcon
)
217 : wxDropSource(win
, go
) {}
219 ~wxPyDropSource() { }
221 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
225 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
228 class wxPyDropTarget
: public wxDropTarget
{
230 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
231 : wxDropTarget(dataObject
) {}
233 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
234 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
236 DEC_PYCALLBACK__(OnLeave
);
237 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
238 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
239 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
240 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
245 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
246 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
248 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
249 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
250 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
251 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
252 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
255 class wxPyTextDropTarget
: public wxTextDropTarget
{
257 wxPyTextDropTarget() {}
259 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
261 DEC_PYCALLBACK__(OnLeave
);
262 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
263 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
264 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
265 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
270 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
271 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
275 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
278 class wxPyFileDropTarget
: public wxFileDropTarget
{
280 wxPyFileDropTarget() {}
282 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
284 DEC_PYCALLBACK__(OnLeave
);
285 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
286 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
287 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
288 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
293 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
294 const wxArrayString
& filenames
) {
296 wxPyBeginBlockThreads();
297 if (m_myInst
.findCallback("OnDropFiles")) {
298 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
299 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
302 wxPyEndBlockThreads();
308 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
309 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
310 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
311 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
312 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
317 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
318 PyObject
* _resultobj
;
319 wxDataFormat
* _result
;
321 PyObject
* _obj0
= 0;
322 char *_kwnames
[] = { "id", NULL
};
326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
329 _arg0
= wxString_in_helper(_obj0
);
334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
335 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
337 wxPyEndAllowThreads(__tstate
);
338 if (PyErr_Occurred()) return NULL
;
340 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
341 _resultobj
= Py_BuildValue("s",_ptemp
);
344 _resultobj
= Py_None
;
353 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
355 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
359 static PyObject
*_wrap_wxPyFormatInvalid_get() {
363 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
364 pyobj
= PyString_FromString(ptemp
);
368 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
370 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
374 static PyObject
*_wrap_wxPyTheClipboard_get() {
378 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
379 pyobj
= PyString_FromString(ptemp
);
383 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
384 PyObject
* _resultobj
;
387 char *_kwnames
[] = { "res", NULL
};
390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
394 _result
= (bool )wxIsDragResultOk(_arg0
);
396 wxPyEndAllowThreads(__tstate
);
397 if (PyErr_Occurred()) return NULL
;
398 } _resultobj
= Py_BuildValue("i",_result
);
402 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
403 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
404 PyObject
* _resultobj
;
405 wxDataFormat
* _result
;
406 wxDataFormatId _arg0
;
407 char *_kwnames
[] = { "type", NULL
};
411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
415 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
417 wxPyEndAllowThreads(__tstate
);
418 if (PyErr_Occurred()) return NULL
;
420 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
421 _resultobj
= Py_BuildValue("s",_ptemp
);
424 _resultobj
= Py_None
;
429 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
430 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
432 wxDataFormat
* _arg0
;
433 PyObject
* _argo0
= 0;
434 char *_kwnames
[] = { "self", NULL
};
437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
448 delete_wxDataFormat(_arg0
);
450 wxPyEndAllowThreads(__tstate
);
451 if (PyErr_Occurred()) return NULL
;
452 } Py_INCREF(Py_None
);
453 _resultobj
= Py_None
;
457 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
458 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
459 PyObject
* _resultobj
;
460 wxDataFormat
* _arg0
;
461 wxDataFormatId _arg1
;
462 PyObject
* _argo0
= 0;
463 char *_kwnames
[] = { "self","format", NULL
};
466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
476 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
477 wxDataFormat_SetType(_arg0
,_arg1
);
479 wxPyEndAllowThreads(__tstate
);
480 if (PyErr_Occurred()) return NULL
;
481 } Py_INCREF(Py_None
);
482 _resultobj
= Py_None
;
486 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
487 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
488 PyObject
* _resultobj
;
489 wxDataFormatId _result
;
490 wxDataFormat
* _arg0
;
491 PyObject
* _argo0
= 0;
492 char *_kwnames
[] = { "self", NULL
};
495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
506 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
508 wxPyEndAllowThreads(__tstate
);
509 if (PyErr_Occurred()) return NULL
;
510 } _resultobj
= Py_BuildValue("i",_result
);
514 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
515 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
518 wxDataFormat
* _arg0
;
519 PyObject
* _argo0
= 0;
520 char *_kwnames
[] = { "self", NULL
};
523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
534 _result
= new wxString (wxDataFormat_GetId(_arg0
));
536 wxPyEndAllowThreads(__tstate
);
537 if (PyErr_Occurred()) return NULL
;
540 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
542 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
551 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
552 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
554 wxDataFormat
* _arg0
;
556 PyObject
* _argo0
= 0;
557 PyObject
* _obj1
= 0;
558 char *_kwnames
[] = { "self","format", NULL
};
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
571 _arg1
= wxString_in_helper(_obj1
);
576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
577 wxDataFormat_SetId(_arg0
,*_arg1
);
579 wxPyEndAllowThreads(__tstate
);
580 if (PyErr_Occurred()) return NULL
;
581 } Py_INCREF(Py_None
);
582 _resultobj
= Py_None
;
590 #define delete_wxDataObject(_swigobj) (delete _swigobj)
591 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
592 PyObject
* _resultobj
;
593 wxDataObject
* _arg0
;
594 PyObject
* _argo0
= 0;
595 char *_kwnames
[] = { "self", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
609 delete_wxDataObject(_arg0
);
611 wxPyEndAllowThreads(__tstate
);
612 if (PyErr_Occurred()) return NULL
;
613 } Py_INCREF(Py_None
);
614 _resultobj
= Py_None
;
618 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
619 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
620 PyObject
* _resultobj
;
621 wxDataFormat
* _result
;
622 wxDataObject
* _arg0
;
623 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
624 PyObject
* _argo0
= 0;
625 char *_kwnames
[] = { "self","dir", NULL
};
629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
640 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
642 wxPyEndAllowThreads(__tstate
);
643 if (PyErr_Occurred()) return NULL
;
644 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
645 _resultobj
= Py_BuildValue("s",_ptemp
);
649 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
650 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
651 PyObject
* _resultobj
;
653 wxDataObject
* _arg0
;
654 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
655 PyObject
* _argo0
= 0;
656 char *_kwnames
[] = { "self","dir", NULL
};
659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
670 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
672 wxPyEndAllowThreads(__tstate
);
673 if (PyErr_Occurred()) return NULL
;
674 } _resultobj
= Py_BuildValue("i",_result
);
678 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
679 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
680 PyObject
* _resultobj
;
681 wxDataObject
* _arg0
;
682 wxDataFormat
* _arg1
;
683 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
684 PyObject
* _argo0
= 0;
685 PyObject
* _argo1
= 0;
686 char *_kwnames
[] = { "self","formats","dir", NULL
};
689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
699 if (_argo1
== Py_None
) { _arg1
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
707 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
709 wxPyEndAllowThreads(__tstate
);
710 if (PyErr_Occurred()) return NULL
;
711 } Py_INCREF(Py_None
);
712 _resultobj
= Py_None
;
716 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
717 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
718 PyObject
* _resultobj
;
720 wxDataObject
* _arg0
;
721 wxDataFormat
* _arg1
;
722 PyObject
* _argo0
= 0;
723 PyObject
* _argo1
= 0;
724 char *_kwnames
[] = { "self","format", NULL
};
727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
737 if (_argo1
== Py_None
) { _arg1
= NULL
; }
738 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
745 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
747 wxPyEndAllowThreads(__tstate
);
748 if (PyErr_Occurred()) return NULL
;
749 } _resultobj
= Py_BuildValue("i",_result
);
753 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
754 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
755 PyObject
* _resultobj
;
757 wxDataObject
* _arg0
;
758 wxDataFormat
* _arg1
;
760 PyObject
* _argo0
= 0;
761 PyObject
* _argo1
= 0;
762 PyObject
* _argo2
= 0;
763 char *_kwnames
[] = { "self","format","buf", NULL
};
766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
783 if (_argo2
== Py_None
) { _arg2
= NULL
; }
784 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
791 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
793 wxPyEndAllowThreads(__tstate
);
794 if (PyErr_Occurred()) return NULL
;
795 } _resultobj
= Py_BuildValue("i",_result
);
799 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
800 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
801 PyObject
* _resultobj
;
803 wxDataObject
* _arg0
;
804 wxDataFormat
* _arg1
;
807 PyObject
* _argo0
= 0;
808 PyObject
* _argo1
= 0;
809 PyObject
* _argo3
= 0;
810 char *_kwnames
[] = { "self","format","len","buf", NULL
};
813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
823 if (_argo1
== Py_None
) { _arg1
= NULL
; }
824 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
830 if (_argo3
== Py_None
) { _arg3
= NULL
; }
831 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
838 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
840 wxPyEndAllowThreads(__tstate
);
841 if (PyErr_Occurred()) return NULL
;
842 } _resultobj
= Py_BuildValue("i",_result
);
846 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
847 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
848 PyObject
* _resultobj
;
850 wxDataObject
* _arg0
;
851 wxDataFormat
* _arg1
;
852 PyObject
* _argo0
= 0;
853 PyObject
* _argo1
= 0;
854 char *_kwnames
[] = { "self","format", NULL
};
857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
867 if (_argo1
== Py_None
) { _arg1
= NULL
; }
868 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
875 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
877 wxPyEndAllowThreads(__tstate
);
878 if (PyErr_Occurred()) return NULL
;
879 } _resultobj
= Py_BuildValue("i",_result
);
883 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
884 wxDataObjectSimple
*src
;
886 src
= (wxDataObjectSimple
*) ptr
;
887 dest
= (wxDataObject
*) src
;
888 return (void *) dest
;
891 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
892 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
893 PyObject
* _resultobj
;
894 wxDataObjectSimple
* _result
;
895 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
896 PyObject
* _argo0
= 0;
897 char *_kwnames
[] = { "format", NULL
};
901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) return NULL
;
917 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
918 _resultobj
= Py_BuildValue("s",_ptemp
);
921 _resultobj
= Py_None
;
926 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
927 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
928 PyObject
* _resultobj
;
929 wxDataFormat
* _result
;
930 wxDataObjectSimple
* _arg0
;
931 PyObject
* _argo0
= 0;
932 char *_kwnames
[] = { "self", NULL
};
936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
947 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
948 _result
= (wxDataFormat
*) &_result_ref
;
950 wxPyEndAllowThreads(__tstate
);
951 if (PyErr_Occurred()) return NULL
;
953 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
954 _resultobj
= Py_BuildValue("s",_ptemp
);
957 _resultobj
= Py_None
;
962 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
963 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
964 PyObject
* _resultobj
;
965 wxDataObjectSimple
* _arg0
;
966 wxDataFormat
* _arg1
;
967 PyObject
* _argo0
= 0;
968 PyObject
* _argo1
= 0;
969 char *_kwnames
[] = { "self","format", NULL
};
972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
990 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
992 wxPyEndAllowThreads(__tstate
);
993 if (PyErr_Occurred()) return NULL
;
994 } Py_INCREF(Py_None
);
995 _resultobj
= Py_None
;
999 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
1000 wxPyDataObjectSimple
*src
;
1001 wxDataObjectSimple
*dest
;
1002 src
= (wxPyDataObjectSimple
*) ptr
;
1003 dest
= (wxDataObjectSimple
*) src
;
1004 return (void *) dest
;
1007 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1008 wxPyDataObjectSimple
*src
;
1010 src
= (wxPyDataObjectSimple
*) ptr
;
1011 dest
= (wxDataObject
*) src
;
1012 return (void *) dest
;
1015 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1016 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1017 PyObject
* _resultobj
;
1018 wxPyDataObjectSimple
* _result
;
1019 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1020 PyObject
* _argo0
= 0;
1021 char *_kwnames
[] = { "format", NULL
};
1025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1036 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1038 wxPyEndAllowThreads(__tstate
);
1039 if (PyErr_Occurred()) return NULL
;
1041 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1042 _resultobj
= Py_BuildValue("s",_ptemp
);
1045 _resultobj
= Py_None
;
1050 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1051 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1052 PyObject
* _resultobj
;
1053 wxPyDataObjectSimple
* _arg0
;
1056 PyObject
* _argo0
= 0;
1057 PyObject
* _obj1
= 0;
1058 PyObject
* _obj2
= 0;
1059 char *_kwnames
[] = { "self","self","_class", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1079 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1081 wxPyEndAllowThreads(__tstate
);
1082 if (PyErr_Occurred()) return NULL
;
1083 } Py_INCREF(Py_None
);
1084 _resultobj
= Py_None
;
1088 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1089 wxDataObjectComposite
*src
;
1091 src
= (wxDataObjectComposite
*) ptr
;
1092 dest
= (wxDataObject
*) src
;
1093 return (void *) dest
;
1096 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1097 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1098 PyObject
* _resultobj
;
1099 wxDataObjectComposite
* _result
;
1100 char *_kwnames
[] = { NULL
};
1104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1108 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1110 wxPyEndAllowThreads(__tstate
);
1111 if (PyErr_Occurred()) return NULL
;
1113 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1114 _resultobj
= Py_BuildValue("s",_ptemp
);
1117 _resultobj
= Py_None
;
1122 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1123 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1124 PyObject
* _resultobj
;
1125 wxDataObjectComposite
* _arg0
;
1126 wxDataObjectSimple
* _arg1
;
1127 int _arg2
= (int ) FALSE
;
1128 PyObject
* _argo0
= 0;
1129 PyObject
* _argo1
= 0;
1130 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1143 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1144 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1151 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1153 wxPyEndAllowThreads(__tstate
);
1154 if (PyErr_Occurred()) return NULL
;
1155 } Py_INCREF(Py_None
);
1156 _resultobj
= Py_None
;
1160 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1161 wxTextDataObject
*src
;
1162 wxDataObjectSimple
*dest
;
1163 src
= (wxTextDataObject
*) ptr
;
1164 dest
= (wxDataObjectSimple
*) src
;
1165 return (void *) dest
;
1168 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1169 wxTextDataObject
*src
;
1171 src
= (wxTextDataObject
*) ptr
;
1172 dest
= (wxDataObject
*) src
;
1173 return (void *) dest
;
1176 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1177 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1178 PyObject
* _resultobj
;
1179 wxTextDataObject
* _result
;
1180 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1181 PyObject
* _obj0
= 0;
1182 char *_kwnames
[] = { "text", NULL
};
1186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1190 _arg0
= wxString_in_helper(_obj0
);
1195 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1196 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1198 wxPyEndAllowThreads(__tstate
);
1199 if (PyErr_Occurred()) return NULL
;
1201 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1202 _resultobj
= Py_BuildValue("s",_ptemp
);
1205 _resultobj
= Py_None
;
1214 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1215 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1216 PyObject
* _resultobj
;
1218 wxTextDataObject
* _arg0
;
1219 PyObject
* _argo0
= 0;
1220 char *_kwnames
[] = { "self", NULL
};
1223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1234 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1236 wxPyEndAllowThreads(__tstate
);
1237 if (PyErr_Occurred()) return NULL
;
1238 } _resultobj
= Py_BuildValue("i",_result
);
1242 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1243 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1244 PyObject
* _resultobj
;
1246 wxTextDataObject
* _arg0
;
1247 PyObject
* _argo0
= 0;
1248 char *_kwnames
[] = { "self", NULL
};
1251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1262 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1264 wxPyEndAllowThreads(__tstate
);
1265 if (PyErr_Occurred()) return NULL
;
1268 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1270 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1279 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1280 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1281 PyObject
* _resultobj
;
1282 wxTextDataObject
* _arg0
;
1284 PyObject
* _argo0
= 0;
1285 PyObject
* _obj1
= 0;
1286 char *_kwnames
[] = { "self","text", NULL
};
1289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1299 _arg1
= wxString_in_helper(_obj1
);
1304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1305 wxTextDataObject_SetText(_arg0
,*_arg1
);
1307 wxPyEndAllowThreads(__tstate
);
1308 if (PyErr_Occurred()) return NULL
;
1309 } Py_INCREF(Py_None
);
1310 _resultobj
= Py_None
;
1318 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1319 wxPyTextDataObject
*src
;
1320 wxTextDataObject
*dest
;
1321 src
= (wxPyTextDataObject
*) ptr
;
1322 dest
= (wxTextDataObject
*) src
;
1323 return (void *) dest
;
1326 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1327 wxPyTextDataObject
*src
;
1328 wxDataObjectSimple
*dest
;
1329 src
= (wxPyTextDataObject
*) ptr
;
1330 dest
= (wxDataObjectSimple
*) src
;
1331 return (void *) dest
;
1334 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1335 wxPyTextDataObject
*src
;
1337 src
= (wxPyTextDataObject
*) ptr
;
1338 dest
= (wxDataObject
*) src
;
1339 return (void *) dest
;
1342 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1343 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1344 PyObject
* _resultobj
;
1345 wxPyTextDataObject
* _result
;
1346 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1347 PyObject
* _obj0
= 0;
1348 char *_kwnames
[] = { "text", NULL
};
1352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1356 _arg0
= wxString_in_helper(_obj0
);
1361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1362 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1364 wxPyEndAllowThreads(__tstate
);
1365 if (PyErr_Occurred()) return NULL
;
1367 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1368 _resultobj
= Py_BuildValue("s",_ptemp
);
1371 _resultobj
= Py_None
;
1380 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1381 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1382 PyObject
* _resultobj
;
1383 wxPyTextDataObject
* _arg0
;
1386 PyObject
* _argo0
= 0;
1387 PyObject
* _obj1
= 0;
1388 PyObject
* _obj2
= 0;
1389 char *_kwnames
[] = { "self","self","_class", NULL
};
1392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1409 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1411 wxPyEndAllowThreads(__tstate
);
1412 if (PyErr_Occurred()) return NULL
;
1413 } Py_INCREF(Py_None
);
1414 _resultobj
= Py_None
;
1418 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1419 wxBitmapDataObject
*src
;
1420 wxDataObjectSimple
*dest
;
1421 src
= (wxBitmapDataObject
*) ptr
;
1422 dest
= (wxDataObjectSimple
*) src
;
1423 return (void *) dest
;
1426 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1427 wxBitmapDataObject
*src
;
1429 src
= (wxBitmapDataObject
*) ptr
;
1430 dest
= (wxDataObject
*) src
;
1431 return (void *) dest
;
1434 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1435 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1436 PyObject
* _resultobj
;
1437 wxBitmapDataObject
* _result
;
1438 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1439 PyObject
* _argo0
= 0;
1440 char *_kwnames
[] = { "bitmap", NULL
};
1444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1455 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1457 wxPyEndAllowThreads(__tstate
);
1458 if (PyErr_Occurred()) return NULL
;
1460 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1461 _resultobj
= Py_BuildValue("s",_ptemp
);
1464 _resultobj
= Py_None
;
1469 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1470 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1473 wxBitmapDataObject
* _arg0
;
1474 PyObject
* _argo0
= 0;
1475 char *_kwnames
[] = { "self", NULL
};
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) return NULL
;
1494 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1495 _resultobj
= Py_BuildValue("s",_ptemp
);
1499 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1500 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1501 PyObject
* _resultobj
;
1502 wxBitmapDataObject
* _arg0
;
1504 PyObject
* _argo0
= 0;
1505 PyObject
* _argo1
= 0;
1506 char *_kwnames
[] = { "self","bitmap", NULL
};
1509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1519 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1520 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1527 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1529 wxPyEndAllowThreads(__tstate
);
1530 if (PyErr_Occurred()) return NULL
;
1531 } Py_INCREF(Py_None
);
1532 _resultobj
= Py_None
;
1536 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1537 wxPyBitmapDataObject
*src
;
1538 wxBitmapDataObject
*dest
;
1539 src
= (wxPyBitmapDataObject
*) ptr
;
1540 dest
= (wxBitmapDataObject
*) src
;
1541 return (void *) dest
;
1544 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1545 wxPyBitmapDataObject
*src
;
1546 wxDataObjectSimple
*dest
;
1547 src
= (wxPyBitmapDataObject
*) ptr
;
1548 dest
= (wxDataObjectSimple
*) src
;
1549 return (void *) dest
;
1552 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1553 wxPyBitmapDataObject
*src
;
1555 src
= (wxPyBitmapDataObject
*) ptr
;
1556 dest
= (wxDataObject
*) src
;
1557 return (void *) dest
;
1560 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1561 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1562 PyObject
* _resultobj
;
1563 wxPyBitmapDataObject
* _result
;
1564 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1565 PyObject
* _argo0
= 0;
1566 char *_kwnames
[] = { "bitmap", NULL
};
1570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1581 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1583 wxPyEndAllowThreads(__tstate
);
1584 if (PyErr_Occurred()) return NULL
;
1586 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1587 _resultobj
= Py_BuildValue("s",_ptemp
);
1590 _resultobj
= Py_None
;
1595 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1596 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1597 PyObject
* _resultobj
;
1598 wxPyBitmapDataObject
* _arg0
;
1601 PyObject
* _argo0
= 0;
1602 PyObject
* _obj1
= 0;
1603 PyObject
* _obj2
= 0;
1604 char *_kwnames
[] = { "self","self","_class", NULL
};
1607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1623 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1624 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1626 wxPyEndAllowThreads(__tstate
);
1627 if (PyErr_Occurred()) return NULL
;
1628 } Py_INCREF(Py_None
);
1629 _resultobj
= Py_None
;
1633 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1634 wxFileDataObject
*src
;
1635 wxDataObjectSimple
*dest
;
1636 src
= (wxFileDataObject
*) ptr
;
1637 dest
= (wxDataObjectSimple
*) src
;
1638 return (void *) dest
;
1641 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1642 wxFileDataObject
*src
;
1644 src
= (wxFileDataObject
*) ptr
;
1645 dest
= (wxDataObject
*) src
;
1646 return (void *) dest
;
1649 #define new_wxFileDataObject() (new wxFileDataObject())
1650 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1651 PyObject
* _resultobj
;
1652 wxFileDataObject
* _result
;
1653 char *_kwnames
[] = { NULL
};
1657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1660 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1661 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1663 wxPyEndAllowThreads(__tstate
);
1664 if (PyErr_Occurred()) return NULL
;
1666 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1667 _resultobj
= Py_BuildValue("s",_ptemp
);
1670 _resultobj
= Py_None
;
1675 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1676 const wxArrayString
& strings
= self
->GetFilenames();
1677 return wxArrayString2PyList_helper(strings
);
1679 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1680 PyObject
* _resultobj
;
1682 wxFileDataObject
* _arg0
;
1683 PyObject
* _argo0
= 0;
1684 char *_kwnames
[] = { "self", NULL
};
1687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1698 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1700 wxPyEndAllowThreads(__tstate
);
1701 if (PyErr_Occurred()) return NULL
;
1703 _resultobj
= _result
;
1708 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1709 wxCustomDataObject
*src
;
1710 wxDataObjectSimple
*dest
;
1711 src
= (wxCustomDataObject
*) ptr
;
1712 dest
= (wxDataObjectSimple
*) src
;
1713 return (void *) dest
;
1716 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1717 wxCustomDataObject
*src
;
1719 src
= (wxCustomDataObject
*) ptr
;
1720 dest
= (wxDataObject
*) src
;
1721 return (void *) dest
;
1724 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1725 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1726 PyObject
* _resultobj
;
1727 wxCustomDataObject
* _result
;
1728 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1729 PyObject
* _argo0
= 0;
1730 char *_kwnames
[] = { "format", NULL
};
1734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1745 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1747 wxPyEndAllowThreads(__tstate
);
1748 if (PyErr_Occurred()) return NULL
;
1750 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1751 _resultobj
= Py_BuildValue("s",_ptemp
);
1754 _resultobj
= Py_None
;
1759 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1760 if (PyString_Check(data
)) {
1761 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1764 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1765 PyObject
* _resultobj
;
1766 wxCustomDataObject
* _arg0
;
1768 PyObject
* _argo0
= 0;
1769 PyObject
* _obj1
= 0;
1770 char *_kwnames
[] = { "self","data", NULL
};
1773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1787 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1789 wxPyEndAllowThreads(__tstate
);
1790 if (PyErr_Occurred()) return NULL
;
1791 } Py_INCREF(Py_None
);
1792 _resultobj
= Py_None
;
1796 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1797 if (PyString_Check(data
)) {
1798 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1802 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1803 PyObject
* _resultobj
;
1805 wxCustomDataObject
* _arg0
;
1807 PyObject
* _argo0
= 0;
1808 PyObject
* _obj1
= 0;
1809 char *_kwnames
[] = { "self","data", NULL
};
1812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1826 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1828 wxPyEndAllowThreads(__tstate
);
1829 if (PyErr_Occurred()) return NULL
;
1830 } _resultobj
= Py_BuildValue("i",_result
);
1834 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1835 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1836 PyObject
* _resultobj
;
1838 wxCustomDataObject
* _arg0
;
1839 PyObject
* _argo0
= 0;
1840 char *_kwnames
[] = { "self", NULL
};
1843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1854 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1856 wxPyEndAllowThreads(__tstate
);
1857 if (PyErr_Occurred()) return NULL
;
1858 } _resultobj
= Py_BuildValue("i",_result
);
1862 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1863 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1865 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1866 PyObject
* _resultobj
;
1868 wxCustomDataObject
* _arg0
;
1869 PyObject
* _argo0
= 0;
1870 char *_kwnames
[] = { "self", NULL
};
1873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1884 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1886 wxPyEndAllowThreads(__tstate
);
1887 if (PyErr_Occurred()) return NULL
;
1889 _resultobj
= _result
;
1894 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1895 wxURLDataObject
*src
;
1896 wxDataObjectComposite
*dest
;
1897 src
= (wxURLDataObject
*) ptr
;
1898 dest
= (wxDataObjectComposite
*) src
;
1899 return (void *) dest
;
1902 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1903 wxURLDataObject
*src
;
1905 src
= (wxURLDataObject
*) ptr
;
1906 dest
= (wxDataObject
*) src
;
1907 return (void *) dest
;
1910 #define new_wxURLDataObject() (new wxURLDataObject())
1911 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1912 PyObject
* _resultobj
;
1913 wxURLDataObject
* _result
;
1914 char *_kwnames
[] = { NULL
};
1918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1922 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1924 wxPyEndAllowThreads(__tstate
);
1925 if (PyErr_Occurred()) return NULL
;
1927 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1928 _resultobj
= Py_BuildValue("s",_ptemp
);
1931 _resultobj
= Py_None
;
1936 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1937 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1938 PyObject
* _resultobj
;
1940 wxURLDataObject
* _arg0
;
1941 PyObject
* _argo0
= 0;
1942 char *_kwnames
[] = { "self", NULL
};
1945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1956 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1958 wxPyEndAllowThreads(__tstate
);
1959 if (PyErr_Occurred()) return NULL
;
1962 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1964 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1973 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1974 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1975 PyObject
* _resultobj
;
1976 wxURLDataObject
* _arg0
;
1978 PyObject
* _argo0
= 0;
1979 PyObject
* _obj1
= 0;
1980 char *_kwnames
[] = { "self","url", NULL
};
1983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1993 _arg1
= wxString_in_helper(_obj1
);
1998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1999 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2001 wxPyEndAllowThreads(__tstate
);
2002 if (PyErr_Occurred()) return NULL
;
2003 } Py_INCREF(Py_None
);
2004 _resultobj
= Py_None
;
2012 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2013 wxMetafileDataObject
*src
;
2014 wxDataObjectSimple
*dest
;
2015 src
= (wxMetafileDataObject
*) ptr
;
2016 dest
= (wxDataObjectSimple
*) src
;
2017 return (void *) dest
;
2020 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2021 wxMetafileDataObject
*src
;
2023 src
= (wxMetafileDataObject
*) ptr
;
2024 dest
= (wxDataObject
*) src
;
2025 return (void *) dest
;
2028 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2029 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2030 PyObject
* _resultobj
;
2031 wxMetafileDataObject
* _result
;
2032 char *_kwnames
[] = { NULL
};
2036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2040 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2042 wxPyEndAllowThreads(__tstate
);
2043 if (PyErr_Occurred()) return NULL
;
2045 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2046 _resultobj
= Py_BuildValue("s",_ptemp
);
2049 _resultobj
= Py_None
;
2054 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2055 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2056 PyObject
* _resultobj
;
2057 wxMetafileDataObject
* _arg0
;
2059 PyObject
* _argo0
= 0;
2060 PyObject
* _argo1
= 0;
2061 char *_kwnames
[] = { "self","metafile", NULL
};
2064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2074 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2075 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2082 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2084 wxPyEndAllowThreads(__tstate
);
2085 if (PyErr_Occurred()) return NULL
;
2086 } Py_INCREF(Py_None
);
2087 _resultobj
= Py_None
;
2091 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2092 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2093 PyObject
* _resultobj
;
2094 wxMetafile
* _result
;
2095 wxMetafileDataObject
* _arg0
;
2096 PyObject
* _argo0
= 0;
2097 char *_kwnames
[] = { "self", NULL
};
2101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2112 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2114 wxPyEndAllowThreads(__tstate
);
2115 if (PyErr_Occurred()) return NULL
;
2116 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2117 _resultobj
= Py_BuildValue("s",_ptemp
);
2121 static void *SwigwxClipboardTowxObject(void *ptr
) {
2124 src
= (wxClipboard
*) ptr
;
2125 dest
= (wxObject
*) src
;
2126 return (void *) dest
;
2129 #define new_wxClipboard() (new wxClipboard())
2130 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2131 PyObject
* _resultobj
;
2132 wxClipboard
* _result
;
2133 char *_kwnames
[] = { NULL
};
2137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2141 _result
= (wxClipboard
*)new_wxClipboard();
2143 wxPyEndAllowThreads(__tstate
);
2144 if (PyErr_Occurred()) return NULL
;
2146 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2147 _resultobj
= Py_BuildValue("s",_ptemp
);
2150 _resultobj
= Py_None
;
2155 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2156 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2157 PyObject
* _resultobj
;
2159 wxClipboard
* _arg0
;
2160 PyObject
* _argo0
= 0;
2161 char *_kwnames
[] = { "self", NULL
};
2164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2175 _result
= (bool )wxClipboard_Open(_arg0
);
2177 wxPyEndAllowThreads(__tstate
);
2178 if (PyErr_Occurred()) return NULL
;
2179 } _resultobj
= Py_BuildValue("i",_result
);
2183 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2184 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
* _resultobj
;
2186 wxClipboard
* _arg0
;
2187 PyObject
* _argo0
= 0;
2188 char *_kwnames
[] = { "self", NULL
};
2191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2202 wxClipboard_Close(_arg0
);
2204 wxPyEndAllowThreads(__tstate
);
2205 if (PyErr_Occurred()) return NULL
;
2206 } Py_INCREF(Py_None
);
2207 _resultobj
= Py_None
;
2211 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2212 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2213 PyObject
* _resultobj
;
2215 wxClipboard
* _arg0
;
2216 PyObject
* _argo0
= 0;
2217 char *_kwnames
[] = { "self", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } _resultobj
= Py_BuildValue("i",_result
);
2239 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2240 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2243 wxClipboard
* _arg0
;
2244 wxDataObject
* _arg1
;
2245 PyObject
* _argo0
= 0;
2246 PyObject
* _argo1
= 0;
2247 char *_kwnames
[] = { "self","data", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2260 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2261 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2268 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2270 wxPyEndAllowThreads(__tstate
);
2271 if (PyErr_Occurred()) return NULL
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2276 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2277 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2280 wxClipboard
* _arg0
;
2281 wxDataObject
* _arg1
;
2282 PyObject
* _argo0
= 0;
2283 PyObject
* _argo1
= 0;
2284 char *_kwnames
[] = { "self","data", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2297 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2298 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2305 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2307 wxPyEndAllowThreads(__tstate
);
2308 if (PyErr_Occurred()) return NULL
;
2309 } _resultobj
= Py_BuildValue("i",_result
);
2313 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2314 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2315 PyObject
* _resultobj
;
2317 wxClipboard
* _arg0
;
2318 wxDataFormat
* _arg1
;
2319 PyObject
* _argo0
= 0;
2320 PyObject
* _argo1
= 0;
2321 char *_kwnames
[] = { "self","format", NULL
};
2324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2334 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2335 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2342 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2344 wxPyEndAllowThreads(__tstate
);
2345 if (PyErr_Occurred()) return NULL
;
2346 } _resultobj
= Py_BuildValue("i",_result
);
2350 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2351 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2352 PyObject
* _resultobj
;
2354 wxClipboard
* _arg0
;
2355 wxDataObject
* _arg1
;
2356 PyObject
* _argo0
= 0;
2357 PyObject
* _argo1
= 0;
2358 char *_kwnames
[] = { "self","data", NULL
};
2361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2371 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2372 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2379 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2381 wxPyEndAllowThreads(__tstate
);
2382 if (PyErr_Occurred()) return NULL
;
2383 } _resultobj
= Py_BuildValue("i",_result
);
2387 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2388 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2389 PyObject
* _resultobj
;
2390 wxClipboard
* _arg0
;
2391 PyObject
* _argo0
= 0;
2392 char *_kwnames
[] = { "self", NULL
};
2395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2406 wxClipboard_Clear(_arg0
);
2408 wxPyEndAllowThreads(__tstate
);
2409 if (PyErr_Occurred()) return NULL
;
2410 } Py_INCREF(Py_None
);
2411 _resultobj
= Py_None
;
2415 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2416 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2417 PyObject
* _resultobj
;
2419 wxClipboard
* _arg0
;
2420 PyObject
* _argo0
= 0;
2421 char *_kwnames
[] = { "self", NULL
};
2424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2435 _result
= (bool )wxClipboard_Flush(_arg0
);
2437 wxPyEndAllowThreads(__tstate
);
2438 if (PyErr_Occurred()) return NULL
;
2439 } _resultobj
= Py_BuildValue("i",_result
);
2443 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2444 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2445 PyObject
* _resultobj
;
2446 wxClipboard
* _arg0
;
2447 int _arg1
= (int ) FALSE
;
2448 PyObject
* _argo0
= 0;
2449 char *_kwnames
[] = { "self","primary", NULL
};
2452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) return NULL
;
2467 } Py_INCREF(Py_None
);
2468 _resultobj
= Py_None
;
2472 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2473 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2474 PyObject
* _resultobj
;
2475 wxPyDropSource
* _result
;
2476 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2477 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2478 PyObject
* _argo0
= 0;
2479 PyObject
* _argo1
= 0;
2480 char *_kwnames
[] = { "win","go", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2494 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2495 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
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 (_argo1
== Py_None
) { _arg1
= NULL
; }
2604 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2611 wxDropSource_SetData(_arg0
,*_arg1
);
2613 wxPyEndAllowThreads(__tstate
);
2614 if (PyErr_Occurred()) return NULL
;
2615 } Py_INCREF(Py_None
);
2616 _resultobj
= Py_None
;
2620 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2621 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2622 PyObject
* _resultobj
;
2623 wxDataObject
* _result
;
2624 wxPyDropSource
* _arg0
;
2625 PyObject
* _argo0
= 0;
2626 char *_kwnames
[] = { "self", NULL
};
2630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2640 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2641 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2643 wxPyEndAllowThreads(__tstate
);
2644 if (PyErr_Occurred()) return NULL
;
2646 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2647 _resultobj
= Py_BuildValue("s",_ptemp
);
2650 _resultobj
= Py_None
;
2655 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2656 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2657 PyObject
* _resultobj
;
2658 wxPyDropSource
* _arg0
;
2661 PyObject
* _argo0
= 0;
2662 PyObject
* _argo2
= 0;
2663 char *_kwnames
[] = { "self","res","cursor", NULL
};
2666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2676 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2677 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2683 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2684 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2686 wxPyEndAllowThreads(__tstate
);
2687 if (PyErr_Occurred()) return NULL
;
2688 } Py_INCREF(Py_None
);
2689 _resultobj
= Py_None
;
2693 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2694 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2695 PyObject
* _resultobj
;
2696 wxDragResult _result
;
2697 wxPyDropSource
* _arg0
;
2698 int _arg1
= (int ) (wxDrag_CopyOnly
);
2699 PyObject
* _argo0
= 0;
2700 char *_kwnames
[] = { "self","flags", NULL
};
2703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2713 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2714 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2716 wxPyEndAllowThreads(__tstate
);
2717 if (PyErr_Occurred()) return NULL
;
2718 } _resultobj
= Py_BuildValue("i",_result
);
2722 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2723 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2724 PyObject
* _resultobj
;
2726 wxPyDropSource
* _arg0
;
2728 PyObject
* _argo0
= 0;
2729 char *_kwnames
[] = { "self","effect", NULL
};
2732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2743 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2745 wxPyEndAllowThreads(__tstate
);
2746 if (PyErr_Occurred()) return NULL
;
2747 } _resultobj
= Py_BuildValue("i",_result
);
2751 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2752 wxPyDropTarget
*src
;
2754 src
= (wxPyDropTarget
*) ptr
;
2755 dest
= (wxDropTarget
*) src
;
2756 return (void *) dest
;
2759 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2760 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2761 PyObject
* _resultobj
;
2762 wxPyDropTarget
* _result
;
2763 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2764 PyObject
* _argo0
= 0;
2765 char *_kwnames
[] = { "dataObject", NULL
};
2769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2779 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2780 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2782 wxPyEndAllowThreads(__tstate
);
2783 if (PyErr_Occurred()) return NULL
;
2785 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2786 _resultobj
= Py_BuildValue("s",_ptemp
);
2789 _resultobj
= Py_None
;
2794 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2795 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2796 PyObject
* _resultobj
;
2797 wxPyDropTarget
* _arg0
;
2800 PyObject
* _argo0
= 0;
2801 PyObject
* _obj1
= 0;
2802 PyObject
* _obj2
= 0;
2803 char *_kwnames
[] = { "self","self","_class", NULL
};
2806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2823 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2825 wxPyEndAllowThreads(__tstate
);
2826 if (PyErr_Occurred()) return NULL
;
2827 } Py_INCREF(Py_None
);
2828 _resultobj
= Py_None
;
2832 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2833 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2834 PyObject
* _resultobj
;
2835 wxPyDropTarget
* _arg0
;
2836 PyObject
* _argo0
= 0;
2837 char *_kwnames
[] = { "self", NULL
};
2840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2851 delete_wxPyDropTarget(_arg0
);
2853 wxPyEndAllowThreads(__tstate
);
2854 if (PyErr_Occurred()) return NULL
;
2855 } Py_INCREF(Py_None
);
2856 _resultobj
= Py_None
;
2860 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2861 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2862 PyObject
* _resultobj
;
2863 wxDataObject
* _result
;
2864 wxPyDropTarget
* _arg0
;
2865 PyObject
* _argo0
= 0;
2866 char *_kwnames
[] = { "self", NULL
};
2870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2881 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2883 wxPyEndAllowThreads(__tstate
);
2884 if (PyErr_Occurred()) return NULL
;
2886 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2887 _resultobj
= Py_BuildValue("s",_ptemp
);
2890 _resultobj
= Py_None
;
2895 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2896 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2897 PyObject
* _resultobj
;
2898 wxPyDropTarget
* _arg0
;
2899 wxDataObject
* _arg1
;
2900 PyObject
* _argo0
= 0;
2901 PyObject
* _argo1
= 0;
2902 char *_kwnames
[] = { "self","dataObject", NULL
};
2905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2915 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2916 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2923 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2925 wxPyEndAllowThreads(__tstate
);
2926 if (PyErr_Occurred()) return NULL
;
2927 } Py_INCREF(Py_None
);
2928 _resultobj
= Py_None
;
2932 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2933 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2934 PyObject
* _resultobj
;
2935 wxDragResult _result
;
2936 wxPyDropTarget
* _arg0
;
2940 PyObject
* _argo0
= 0;
2941 char *_kwnames
[] = { "self","x","y","def", NULL
};
2944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2955 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2957 wxPyEndAllowThreads(__tstate
);
2958 if (PyErr_Occurred()) return NULL
;
2959 } _resultobj
= Py_BuildValue("i",_result
);
2963 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2964 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2965 PyObject
* _resultobj
;
2966 wxDragResult _result
;
2967 wxPyDropTarget
* _arg0
;
2971 PyObject
* _argo0
= 0;
2972 char *_kwnames
[] = { "self","x","y","def", NULL
};
2975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2986 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2988 wxPyEndAllowThreads(__tstate
);
2989 if (PyErr_Occurred()) return NULL
;
2990 } _resultobj
= Py_BuildValue("i",_result
);
2994 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2995 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2996 PyObject
* _resultobj
;
2997 wxPyDropTarget
* _arg0
;
2998 PyObject
* _argo0
= 0;
2999 char *_kwnames
[] = { "self", NULL
};
3002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3012 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3013 wxPyDropTarget_base_OnLeave(_arg0
);
3015 wxPyEndAllowThreads(__tstate
);
3016 if (PyErr_Occurred()) return NULL
;
3017 } Py_INCREF(Py_None
);
3018 _resultobj
= Py_None
;
3022 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3023 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3024 PyObject
* _resultobj
;
3026 wxPyDropTarget
* _arg0
;
3029 PyObject
* _argo0
= 0;
3030 char *_kwnames
[] = { "self","x","y", NULL
};
3033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3044 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3046 wxPyEndAllowThreads(__tstate
);
3047 if (PyErr_Occurred()) return NULL
;
3048 } _resultobj
= Py_BuildValue("i",_result
);
3052 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3053 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3054 PyObject
* _resultobj
;
3056 wxPyDropTarget
* _arg0
;
3057 PyObject
* _argo0
= 0;
3058 char *_kwnames
[] = { "self", NULL
};
3061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3072 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3074 wxPyEndAllowThreads(__tstate
);
3075 if (PyErr_Occurred()) return NULL
;
3076 } _resultobj
= Py_BuildValue("i",_result
);
3080 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3081 wxPyTextDropTarget
*src
;
3082 wxPyDropTarget
*dest
;
3083 src
= (wxPyTextDropTarget
*) ptr
;
3084 dest
= (wxPyDropTarget
*) src
;
3085 return (void *) dest
;
3088 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3089 wxPyTextDropTarget
*src
;
3091 src
= (wxPyTextDropTarget
*) ptr
;
3092 dest
= (wxDropTarget
*) src
;
3093 return (void *) dest
;
3096 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3097 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3098 PyObject
* _resultobj
;
3099 wxPyTextDropTarget
* _result
;
3100 char *_kwnames
[] = { NULL
};
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3108 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3110 wxPyEndAllowThreads(__tstate
);
3111 if (PyErr_Occurred()) return NULL
;
3113 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3114 _resultobj
= Py_BuildValue("s",_ptemp
);
3117 _resultobj
= Py_None
;
3122 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3123 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3124 PyObject
* _resultobj
;
3125 wxPyTextDropTarget
* _arg0
;
3128 PyObject
* _argo0
= 0;
3129 PyObject
* _obj1
= 0;
3130 PyObject
* _obj2
= 0;
3131 char *_kwnames
[] = { "self","self","_class", NULL
};
3134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3151 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3153 wxPyEndAllowThreads(__tstate
);
3154 if (PyErr_Occurred()) return NULL
;
3155 } Py_INCREF(Py_None
);
3156 _resultobj
= Py_None
;
3160 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3161 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3162 PyObject
* _resultobj
;
3163 wxDragResult _result
;
3164 wxPyTextDropTarget
* _arg0
;
3168 PyObject
* _argo0
= 0;
3169 char *_kwnames
[] = { "self","x","y","def", NULL
};
3172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3183 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3185 wxPyEndAllowThreads(__tstate
);
3186 if (PyErr_Occurred()) return NULL
;
3187 } _resultobj
= Py_BuildValue("i",_result
);
3191 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3192 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3193 PyObject
* _resultobj
;
3194 wxDragResult _result
;
3195 wxPyTextDropTarget
* _arg0
;
3199 PyObject
* _argo0
= 0;
3200 char *_kwnames
[] = { "self","x","y","def", NULL
};
3203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3214 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3216 wxPyEndAllowThreads(__tstate
);
3217 if (PyErr_Occurred()) return NULL
;
3218 } _resultobj
= Py_BuildValue("i",_result
);
3222 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3223 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3224 PyObject
* _resultobj
;
3225 wxPyTextDropTarget
* _arg0
;
3226 PyObject
* _argo0
= 0;
3227 char *_kwnames
[] = { "self", NULL
};
3230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3241 wxTextDropTarget_base_OnLeave(_arg0
);
3243 wxPyEndAllowThreads(__tstate
);
3244 if (PyErr_Occurred()) return NULL
;
3245 } Py_INCREF(Py_None
);
3246 _resultobj
= Py_None
;
3250 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3251 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3252 PyObject
* _resultobj
;
3254 wxPyTextDropTarget
* _arg0
;
3257 PyObject
* _argo0
= 0;
3258 char *_kwnames
[] = { "self","x","y", NULL
};
3261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3272 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3274 wxPyEndAllowThreads(__tstate
);
3275 if (PyErr_Occurred()) return NULL
;
3276 } _resultobj
= Py_BuildValue("i",_result
);
3280 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3281 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3282 PyObject
* _resultobj
;
3283 wxDragResult _result
;
3284 wxPyTextDropTarget
* _arg0
;
3288 PyObject
* _argo0
= 0;
3289 char *_kwnames
[] = { "self","x","y","def", NULL
};
3292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3303 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3305 wxPyEndAllowThreads(__tstate
);
3306 if (PyErr_Occurred()) return NULL
;
3307 } _resultobj
= Py_BuildValue("i",_result
);
3311 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3312 wxPyFileDropTarget
*src
;
3313 wxPyDropTarget
*dest
;
3314 src
= (wxPyFileDropTarget
*) ptr
;
3315 dest
= (wxPyDropTarget
*) src
;
3316 return (void *) dest
;
3319 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3320 wxPyFileDropTarget
*src
;
3322 src
= (wxPyFileDropTarget
*) ptr
;
3323 dest
= (wxDropTarget
*) src
;
3324 return (void *) dest
;
3327 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3328 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3329 PyObject
* _resultobj
;
3330 wxPyFileDropTarget
* _result
;
3331 char *_kwnames
[] = { NULL
};
3335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3339 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3341 wxPyEndAllowThreads(__tstate
);
3342 if (PyErr_Occurred()) return NULL
;
3344 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3345 _resultobj
= Py_BuildValue("s",_ptemp
);
3348 _resultobj
= Py_None
;
3353 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3354 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3355 PyObject
* _resultobj
;
3356 wxPyFileDropTarget
* _arg0
;
3359 PyObject
* _argo0
= 0;
3360 PyObject
* _obj1
= 0;
3361 PyObject
* _obj2
= 0;
3362 char *_kwnames
[] = { "self","self","_class", NULL
};
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3382 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3384 wxPyEndAllowThreads(__tstate
);
3385 if (PyErr_Occurred()) return NULL
;
3386 } Py_INCREF(Py_None
);
3387 _resultobj
= Py_None
;
3391 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3392 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3393 PyObject
* _resultobj
;
3394 wxDragResult _result
;
3395 wxPyFileDropTarget
* _arg0
;
3399 PyObject
* _argo0
= 0;
3400 char *_kwnames
[] = { "self","x","y","def", NULL
};
3403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3413 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3414 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3416 wxPyEndAllowThreads(__tstate
);
3417 if (PyErr_Occurred()) return NULL
;
3418 } _resultobj
= Py_BuildValue("i",_result
);
3422 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3423 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3424 PyObject
* _resultobj
;
3425 wxDragResult _result
;
3426 wxPyFileDropTarget
* _arg0
;
3430 PyObject
* _argo0
= 0;
3431 char *_kwnames
[] = { "self","x","y","def", NULL
};
3434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3445 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3447 wxPyEndAllowThreads(__tstate
);
3448 if (PyErr_Occurred()) return NULL
;
3449 } _resultobj
= Py_BuildValue("i",_result
);
3453 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3454 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3455 PyObject
* _resultobj
;
3456 wxPyFileDropTarget
* _arg0
;
3457 PyObject
* _argo0
= 0;
3458 char *_kwnames
[] = { "self", NULL
};
3461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3472 wxFileDropTarget_base_OnLeave(_arg0
);
3474 wxPyEndAllowThreads(__tstate
);
3475 if (PyErr_Occurred()) return NULL
;
3476 } Py_INCREF(Py_None
);
3477 _resultobj
= Py_None
;
3481 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3482 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3483 PyObject
* _resultobj
;
3485 wxPyFileDropTarget
* _arg0
;
3488 PyObject
* _argo0
= 0;
3489 char *_kwnames
[] = { "self","x","y", NULL
};
3492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3502 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3503 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3505 wxPyEndAllowThreads(__tstate
);
3506 if (PyErr_Occurred()) return NULL
;
3507 } _resultobj
= Py_BuildValue("i",_result
);
3511 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3512 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3513 PyObject
* _resultobj
;
3514 wxDragResult _result
;
3515 wxPyFileDropTarget
* _arg0
;
3519 PyObject
* _argo0
= 0;
3520 char *_kwnames
[] = { "self","x","y","def", NULL
};
3523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3534 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3536 wxPyEndAllowThreads(__tstate
);
3537 if (PyErr_Occurred()) return NULL
;
3538 } _resultobj
= Py_BuildValue("i",_result
);
3542 static PyMethodDef clip_dndcMethods
[] = {
3543 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3573 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3574 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3575 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3576 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3577 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3578 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3579 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3580 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3581 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3582 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3639 * This table is used by the pointer type-checker
3641 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3642 { "_signed_long","_long",0},
3643 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3644 { "_wxPrintQuality","_wxCoord",0},
3645 { "_wxPrintQuality","_int",0},
3646 { "_wxPrintQuality","_signed_int",0},
3647 { "_wxPrintQuality","_unsigned_int",0},
3648 { "_wxPrintQuality","_wxWindowID",0},
3649 { "_wxPrintQuality","_uint",0},
3650 { "_wxPrintQuality","_EBool",0},
3651 { "_wxPrintQuality","_size_t",0},
3652 { "_wxPrintQuality","_time_t",0},
3653 { "_byte","_unsigned_char",0},
3654 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3655 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3656 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3657 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3658 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3659 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3660 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3661 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3662 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3663 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3664 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3665 { "_long","_unsigned_long",0},
3666 { "_long","_signed_long",0},
3667 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3668 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3669 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3670 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3671 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3672 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3673 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3674 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3675 { "_size_t","_wxCoord",0},
3676 { "_size_t","_wxPrintQuality",0},
3677 { "_size_t","_time_t",0},
3678 { "_size_t","_unsigned_int",0},
3679 { "_size_t","_int",0},
3680 { "_size_t","_wxWindowID",0},
3681 { "_size_t","_uint",0},
3682 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3683 { "_uint","_wxCoord",0},
3684 { "_uint","_wxPrintQuality",0},
3685 { "_uint","_time_t",0},
3686 { "_uint","_size_t",0},
3687 { "_uint","_unsigned_int",0},
3688 { "_uint","_int",0},
3689 { "_uint","_wxWindowID",0},
3690 { "_wxChar","_char",0},
3691 { "_char","_wxChar",0},
3692 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3693 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3694 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3695 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3696 { "_EBool","_wxCoord",0},
3697 { "_EBool","_wxPrintQuality",0},
3698 { "_EBool","_signed_int",0},
3699 { "_EBool","_int",0},
3700 { "_EBool","_wxWindowID",0},
3701 { "_unsigned_long","_long",0},
3702 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3703 { "_signed_int","_wxCoord",0},
3704 { "_signed_int","_wxPrintQuality",0},
3705 { "_signed_int","_EBool",0},
3706 { "_signed_int","_wxWindowID",0},
3707 { "_signed_int","_int",0},
3708 { "_WXTYPE","_short",0},
3709 { "_WXTYPE","_signed_short",0},
3710 { "_WXTYPE","_unsigned_short",0},
3711 { "_unsigned_short","_WXTYPE",0},
3712 { "_unsigned_short","_short",0},
3713 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3714 { "_signed_short","_WXTYPE",0},
3715 { "_signed_short","_short",0},
3716 { "_unsigned_char","_byte",0},
3717 { "_unsigned_int","_wxCoord",0},
3718 { "_unsigned_int","_wxPrintQuality",0},
3719 { "_unsigned_int","_time_t",0},
3720 { "_unsigned_int","_size_t",0},
3721 { "_unsigned_int","_uint",0},
3722 { "_unsigned_int","_wxWindowID",0},
3723 { "_unsigned_int","_int",0},
3724 { "_short","_WXTYPE",0},
3725 { "_short","_unsigned_short",0},
3726 { "_short","_signed_short",0},
3727 { "_wxWindowID","_wxCoord",0},
3728 { "_wxWindowID","_wxPrintQuality",0},
3729 { "_wxWindowID","_time_t",0},
3730 { "_wxWindowID","_size_t",0},
3731 { "_wxWindowID","_EBool",0},
3732 { "_wxWindowID","_uint",0},
3733 { "_wxWindowID","_int",0},
3734 { "_wxWindowID","_signed_int",0},
3735 { "_wxWindowID","_unsigned_int",0},
3736 { "_int","_wxCoord",0},
3737 { "_int","_wxPrintQuality",0},
3738 { "_int","_time_t",0},
3739 { "_int","_size_t",0},
3740 { "_int","_EBool",0},
3741 { "_int","_uint",0},
3742 { "_int","_wxWindowID",0},
3743 { "_int","_unsigned_int",0},
3744 { "_int","_signed_int",0},
3745 { "_time_t","_wxCoord",0},
3746 { "_time_t","_wxPrintQuality",0},
3747 { "_time_t","_unsigned_int",0},
3748 { "_time_t","_int",0},
3749 { "_time_t","_wxWindowID",0},
3750 { "_time_t","_uint",0},
3751 { "_time_t","_size_t",0},
3752 { "_wxCoord","_int",0},
3753 { "_wxCoord","_signed_int",0},
3754 { "_wxCoord","_unsigned_int",0},
3755 { "_wxCoord","_wxWindowID",0},
3756 { "_wxCoord","_uint",0},
3757 { "_wxCoord","_EBool",0},
3758 { "_wxCoord","_size_t",0},
3759 { "_wxCoord","_time_t",0},
3760 { "_wxCoord","_wxPrintQuality",0},
3761 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3762 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3763 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3766 static PyObject
*SWIG_globals
;
3770 SWIGEXPORT(void) initclip_dndc() {
3772 SWIG_globals
= SWIG_newvarlink();
3773 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3774 d
= PyModule_GetDict(m
);
3775 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3776 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3777 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3778 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3779 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3780 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3781 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3782 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3783 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3784 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3785 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3786 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3787 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3788 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3789 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3790 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3791 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3792 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3793 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3794 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3795 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3796 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3797 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3798 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3799 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3800 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3801 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3802 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3803 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3804 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3805 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3806 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3809 wxPyTheClipboard
= wxTheClipboard
;
3810 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3811 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3812 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3813 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3814 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3815 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3818 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3819 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);