2 * FILE : src/msw/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
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 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1709 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1710 PyObject
* _resultobj
;
1711 wxFileDataObject
* _arg0
;
1713 PyObject
* _argo0
= 0;
1714 PyObject
* _obj1
= 0;
1715 char *_kwnames
[] = { "self","filename", NULL
};
1718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1728 _arg1
= wxString_in_helper(_obj1
);
1733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1734 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1736 wxPyEndAllowThreads(__tstate
);
1737 if (PyErr_Occurred()) return NULL
;
1738 } Py_INCREF(Py_None
);
1739 _resultobj
= Py_None
;
1747 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1748 wxCustomDataObject
*src
;
1749 wxDataObjectSimple
*dest
;
1750 src
= (wxCustomDataObject
*) ptr
;
1751 dest
= (wxDataObjectSimple
*) src
;
1752 return (void *) dest
;
1755 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1756 wxCustomDataObject
*src
;
1758 src
= (wxCustomDataObject
*) ptr
;
1759 dest
= (wxDataObject
*) src
;
1760 return (void *) dest
;
1763 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1764 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1765 PyObject
* _resultobj
;
1766 wxCustomDataObject
* _result
;
1767 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1768 PyObject
* _argo0
= 0;
1769 char *_kwnames
[] = { "format", NULL
};
1773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1784 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1786 wxPyEndAllowThreads(__tstate
);
1787 if (PyErr_Occurred()) return NULL
;
1789 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1790 _resultobj
= Py_BuildValue("s",_ptemp
);
1793 _resultobj
= Py_None
;
1798 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1799 if (PyString_Check(data
)) {
1800 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1803 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1804 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_TakeData",_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_TakeData. Expected _wxCustomDataObject_p.");
1825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1826 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1828 wxPyEndAllowThreads(__tstate
);
1829 if (PyErr_Occurred()) return NULL
;
1830 } Py_INCREF(Py_None
);
1831 _resultobj
= Py_None
;
1835 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1836 if (PyString_Check(data
)) {
1837 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1841 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
* _resultobj
;
1844 wxCustomDataObject
* _arg0
;
1846 PyObject
* _argo0
= 0;
1847 PyObject
* _obj1
= 0;
1848 char *_kwnames
[] = { "self","data", NULL
};
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1865 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1867 wxPyEndAllowThreads(__tstate
);
1868 if (PyErr_Occurred()) return NULL
;
1869 } _resultobj
= Py_BuildValue("i",_result
);
1873 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1874 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1875 PyObject
* _resultobj
;
1877 wxCustomDataObject
* _arg0
;
1878 PyObject
* _argo0
= 0;
1879 char *_kwnames
[] = { "self", NULL
};
1882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1893 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1895 wxPyEndAllowThreads(__tstate
);
1896 if (PyErr_Occurred()) return NULL
;
1897 } _resultobj
= Py_BuildValue("i",_result
);
1901 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1902 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1904 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1905 PyObject
* _resultobj
;
1907 wxCustomDataObject
* _arg0
;
1908 PyObject
* _argo0
= 0;
1909 char *_kwnames
[] = { "self", NULL
};
1912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1923 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1925 wxPyEndAllowThreads(__tstate
);
1926 if (PyErr_Occurred()) return NULL
;
1928 _resultobj
= _result
;
1933 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1934 wxURLDataObject
*src
;
1935 wxDataObjectComposite
*dest
;
1936 src
= (wxURLDataObject
*) ptr
;
1937 dest
= (wxDataObjectComposite
*) src
;
1938 return (void *) dest
;
1941 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1942 wxURLDataObject
*src
;
1944 src
= (wxURLDataObject
*) ptr
;
1945 dest
= (wxDataObject
*) src
;
1946 return (void *) dest
;
1949 #define new_wxURLDataObject() (new wxURLDataObject())
1950 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1952 wxURLDataObject
* _result
;
1953 char *_kwnames
[] = { NULL
};
1957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1961 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1963 wxPyEndAllowThreads(__tstate
);
1964 if (PyErr_Occurred()) return NULL
;
1966 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1967 _resultobj
= Py_BuildValue("s",_ptemp
);
1970 _resultobj
= Py_None
;
1975 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1976 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1977 PyObject
* _resultobj
;
1979 wxURLDataObject
* _arg0
;
1980 PyObject
* _argo0
= 0;
1981 char *_kwnames
[] = { "self", NULL
};
1984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1995 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1997 wxPyEndAllowThreads(__tstate
);
1998 if (PyErr_Occurred()) return NULL
;
2001 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2003 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2012 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2013 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2014 PyObject
* _resultobj
;
2015 wxURLDataObject
* _arg0
;
2017 PyObject
* _argo0
= 0;
2018 PyObject
* _obj1
= 0;
2019 char *_kwnames
[] = { "self","url", NULL
};
2022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2025 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2026 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2032 _arg1
= wxString_in_helper(_obj1
);
2037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2038 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2040 wxPyEndAllowThreads(__tstate
);
2041 if (PyErr_Occurred()) return NULL
;
2042 } Py_INCREF(Py_None
);
2043 _resultobj
= Py_None
;
2051 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2052 wxMetafileDataObject
*src
;
2053 wxDataObjectSimple
*dest
;
2054 src
= (wxMetafileDataObject
*) ptr
;
2055 dest
= (wxDataObjectSimple
*) src
;
2056 return (void *) dest
;
2059 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2060 wxMetafileDataObject
*src
;
2062 src
= (wxMetafileDataObject
*) ptr
;
2063 dest
= (wxDataObject
*) src
;
2064 return (void *) dest
;
2067 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2068 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2069 PyObject
* _resultobj
;
2070 wxMetafileDataObject
* _result
;
2071 char *_kwnames
[] = { NULL
};
2075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2079 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2081 wxPyEndAllowThreads(__tstate
);
2082 if (PyErr_Occurred()) return NULL
;
2084 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2085 _resultobj
= Py_BuildValue("s",_ptemp
);
2088 _resultobj
= Py_None
;
2093 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2094 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2095 PyObject
* _resultobj
;
2096 wxMetafileDataObject
* _arg0
;
2098 PyObject
* _argo0
= 0;
2099 PyObject
* _argo1
= 0;
2100 char *_kwnames
[] = { "self","metafile", NULL
};
2103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2113 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) return NULL
;
2125 } Py_INCREF(Py_None
);
2126 _resultobj
= Py_None
;
2130 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2131 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2132 PyObject
* _resultobj
;
2133 wxMetafile
* _result
;
2134 wxMetafileDataObject
* _arg0
;
2135 PyObject
* _argo0
= 0;
2136 char *_kwnames
[] = { "self", NULL
};
2140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2151 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2153 wxPyEndAllowThreads(__tstate
);
2154 if (PyErr_Occurred()) return NULL
;
2155 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2156 _resultobj
= Py_BuildValue("s",_ptemp
);
2160 static void *SwigwxClipboardTowxObject(void *ptr
) {
2163 src
= (wxClipboard
*) ptr
;
2164 dest
= (wxObject
*) src
;
2165 return (void *) dest
;
2168 #define new_wxClipboard() (new wxClipboard())
2169 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
* _resultobj
;
2171 wxClipboard
* _result
;
2172 char *_kwnames
[] = { NULL
};
2176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2179 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2180 _result
= (wxClipboard
*)new_wxClipboard();
2182 wxPyEndAllowThreads(__tstate
);
2183 if (PyErr_Occurred()) return NULL
;
2185 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2186 _resultobj
= Py_BuildValue("s",_ptemp
);
2189 _resultobj
= Py_None
;
2194 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2195 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2196 PyObject
* _resultobj
;
2198 wxClipboard
* _arg0
;
2199 PyObject
* _argo0
= 0;
2200 char *_kwnames
[] = { "self", NULL
};
2203 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2206 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2207 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2208 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2213 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2214 _result
= (bool )wxClipboard_Open(_arg0
);
2216 wxPyEndAllowThreads(__tstate
);
2217 if (PyErr_Occurred()) return NULL
;
2218 } _resultobj
= Py_BuildValue("i",_result
);
2222 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2223 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2224 PyObject
* _resultobj
;
2225 wxClipboard
* _arg0
;
2226 PyObject
* _argo0
= 0;
2227 char *_kwnames
[] = { "self", NULL
};
2230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2241 wxClipboard_Close(_arg0
);
2243 wxPyEndAllowThreads(__tstate
);
2244 if (PyErr_Occurred()) return NULL
;
2245 } Py_INCREF(Py_None
);
2246 _resultobj
= Py_None
;
2250 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2251 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2252 PyObject
* _resultobj
;
2254 wxClipboard
* _arg0
;
2255 PyObject
* _argo0
= 0;
2256 char *_kwnames
[] = { "self", NULL
};
2259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2269 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2270 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2272 wxPyEndAllowThreads(__tstate
);
2273 if (PyErr_Occurred()) return NULL
;
2274 } _resultobj
= Py_BuildValue("i",_result
);
2278 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2279 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2280 PyObject
* _resultobj
;
2282 wxClipboard
* _arg0
;
2283 wxDataObject
* _arg1
;
2284 PyObject
* _argo0
= 0;
2285 PyObject
* _argo1
= 0;
2286 char *_kwnames
[] = { "self","data", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2299 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2300 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2307 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2309 wxPyEndAllowThreads(__tstate
);
2310 if (PyErr_Occurred()) return NULL
;
2311 } _resultobj
= Py_BuildValue("i",_result
);
2315 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2316 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2317 PyObject
* _resultobj
;
2319 wxClipboard
* _arg0
;
2320 wxDataObject
* _arg1
;
2321 PyObject
* _argo0
= 0;
2322 PyObject
* _argo1
= 0;
2323 char *_kwnames
[] = { "self","data", NULL
};
2326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2336 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2337 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2344 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2346 wxPyEndAllowThreads(__tstate
);
2347 if (PyErr_Occurred()) return NULL
;
2348 } _resultobj
= Py_BuildValue("i",_result
);
2352 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2353 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2354 PyObject
* _resultobj
;
2356 wxClipboard
* _arg0
;
2357 wxDataFormat
* _arg1
;
2358 PyObject
* _argo0
= 0;
2359 PyObject
* _argo1
= 0;
2360 char *_kwnames
[] = { "self","format", NULL
};
2363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2373 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2374 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2381 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2383 wxPyEndAllowThreads(__tstate
);
2384 if (PyErr_Occurred()) return NULL
;
2385 } _resultobj
= Py_BuildValue("i",_result
);
2389 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2390 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2391 PyObject
* _resultobj
;
2393 wxClipboard
* _arg0
;
2394 wxDataObject
* _arg1
;
2395 PyObject
* _argo0
= 0;
2396 PyObject
* _argo1
= 0;
2397 char *_kwnames
[] = { "self","data", NULL
};
2400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2410 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2411 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2418 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2420 wxPyEndAllowThreads(__tstate
);
2421 if (PyErr_Occurred()) return NULL
;
2422 } _resultobj
= Py_BuildValue("i",_result
);
2426 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2427 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2428 PyObject
* _resultobj
;
2429 wxClipboard
* _arg0
;
2430 PyObject
* _argo0
= 0;
2431 char *_kwnames
[] = { "self", NULL
};
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2445 wxClipboard_Clear(_arg0
);
2447 wxPyEndAllowThreads(__tstate
);
2448 if (PyErr_Occurred()) return NULL
;
2449 } Py_INCREF(Py_None
);
2450 _resultobj
= Py_None
;
2454 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2455 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2456 PyObject
* _resultobj
;
2458 wxClipboard
* _arg0
;
2459 PyObject
* _argo0
= 0;
2460 char *_kwnames
[] = { "self", NULL
};
2463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2474 _result
= (bool )wxClipboard_Flush(_arg0
);
2476 wxPyEndAllowThreads(__tstate
);
2477 if (PyErr_Occurred()) return NULL
;
2478 } _resultobj
= Py_BuildValue("i",_result
);
2482 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2483 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2484 PyObject
* _resultobj
;
2485 wxClipboard
* _arg0
;
2486 int _arg1
= (int ) FALSE
;
2487 PyObject
* _argo0
= 0;
2488 char *_kwnames
[] = { "self","primary", NULL
};
2491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) return NULL
;
2506 } Py_INCREF(Py_None
);
2507 _resultobj
= Py_None
;
2511 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2512 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2513 PyObject
* _resultobj
;
2514 wxPyDropSource
* _result
;
2515 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2516 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2517 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2518 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2519 PyObject
* _argo0
= 0;
2520 PyObject
* _argo1
= 0;
2521 PyObject
* _argo2
= 0;
2522 PyObject
* _argo3
= 0;
2523 char *_kwnames
[] = { "win","cursorCopy","cursorMove","cursorStop", NULL
};
2527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2544 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2545 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2551 if (_argo3
== Py_None
) { _arg3
= NULL
; }
2552 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2559 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2561 wxPyEndAllowThreads(__tstate
);
2562 if (PyErr_Occurred()) return NULL
;
2564 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2565 _resultobj
= Py_BuildValue("s",_ptemp
);
2568 _resultobj
= Py_None
;
2573 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2574 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2575 PyObject
* _resultobj
;
2576 wxPyDropSource
* _arg0
;
2580 PyObject
* _argo0
= 0;
2581 PyObject
* _obj1
= 0;
2582 PyObject
* _obj2
= 0;
2583 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2586 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2589 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2590 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2591 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2603 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2605 wxPyEndAllowThreads(__tstate
);
2606 if (PyErr_Occurred()) return NULL
;
2607 } Py_INCREF(Py_None
);
2608 _resultobj
= Py_None
;
2612 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2613 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2614 PyObject
* _resultobj
;
2615 wxPyDropSource
* _arg0
;
2616 PyObject
* _argo0
= 0;
2617 char *_kwnames
[] = { "self", NULL
};
2620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2631 delete_wxPyDropSource(_arg0
);
2633 wxPyEndAllowThreads(__tstate
);
2634 if (PyErr_Occurred()) return NULL
;
2635 } Py_INCREF(Py_None
);
2636 _resultobj
= Py_None
;
2640 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2641 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2642 PyObject
* _resultobj
;
2643 wxPyDropSource
* _arg0
;
2644 wxDataObject
* _arg1
;
2645 PyObject
* _argo0
= 0;
2646 PyObject
* _argo1
= 0;
2647 char *_kwnames
[] = { "self","data", NULL
};
2650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2660 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2661 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2668 wxDropSource_SetData(_arg0
,*_arg1
);
2670 wxPyEndAllowThreads(__tstate
);
2671 if (PyErr_Occurred()) return NULL
;
2672 } Py_INCREF(Py_None
);
2673 _resultobj
= Py_None
;
2677 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2678 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2680 wxDataObject
* _result
;
2681 wxPyDropSource
* _arg0
;
2682 PyObject
* _argo0
= 0;
2683 char *_kwnames
[] = { "self", NULL
};
2687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2698 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2700 wxPyEndAllowThreads(__tstate
);
2701 if (PyErr_Occurred()) return NULL
;
2703 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2704 _resultobj
= Py_BuildValue("s",_ptemp
);
2707 _resultobj
= Py_None
;
2712 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2713 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2714 PyObject
* _resultobj
;
2715 wxPyDropSource
* _arg0
;
2718 PyObject
* _argo0
= 0;
2719 PyObject
* _argo2
= 0;
2720 char *_kwnames
[] = { "self","res","cursor", NULL
};
2723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2733 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2734 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2741 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2743 wxPyEndAllowThreads(__tstate
);
2744 if (PyErr_Occurred()) return NULL
;
2745 } Py_INCREF(Py_None
);
2746 _resultobj
= Py_None
;
2750 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2751 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2752 PyObject
* _resultobj
;
2753 wxDragResult _result
;
2754 wxPyDropSource
* _arg0
;
2755 int _arg1
= (int ) (wxDrag_CopyOnly
);
2756 PyObject
* _argo0
= 0;
2757 char *_kwnames
[] = { "self","flags", NULL
};
2760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2771 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2773 wxPyEndAllowThreads(__tstate
);
2774 if (PyErr_Occurred()) return NULL
;
2775 } _resultobj
= Py_BuildValue("i",_result
);
2779 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2780 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2781 PyObject
* _resultobj
;
2783 wxPyDropSource
* _arg0
;
2785 PyObject
* _argo0
= 0;
2786 char *_kwnames
[] = { "self","effect", NULL
};
2789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2800 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2802 wxPyEndAllowThreads(__tstate
);
2803 if (PyErr_Occurred()) return NULL
;
2804 } _resultobj
= Py_BuildValue("i",_result
);
2808 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2809 wxPyDropTarget
*src
;
2811 src
= (wxPyDropTarget
*) ptr
;
2812 dest
= (wxDropTarget
*) src
;
2813 return (void *) dest
;
2816 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2817 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2818 PyObject
* _resultobj
;
2819 wxPyDropTarget
* _result
;
2820 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2821 PyObject
* _argo0
= 0;
2822 char *_kwnames
[] = { "dataObject", NULL
};
2826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2837 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2839 wxPyEndAllowThreads(__tstate
);
2840 if (PyErr_Occurred()) return NULL
;
2842 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2843 _resultobj
= Py_BuildValue("s",_ptemp
);
2846 _resultobj
= Py_None
;
2851 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2852 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2853 PyObject
* _resultobj
;
2854 wxPyDropTarget
* _arg0
;
2857 PyObject
* _argo0
= 0;
2858 PyObject
* _obj1
= 0;
2859 PyObject
* _obj2
= 0;
2860 char *_kwnames
[] = { "self","self","_class", NULL
};
2863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2880 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2882 wxPyEndAllowThreads(__tstate
);
2883 if (PyErr_Occurred()) return NULL
;
2884 } Py_INCREF(Py_None
);
2885 _resultobj
= Py_None
;
2889 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2890 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2891 PyObject
* _resultobj
;
2892 wxPyDropTarget
* _arg0
;
2893 PyObject
* _argo0
= 0;
2894 char *_kwnames
[] = { "self", NULL
};
2897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2908 delete_wxPyDropTarget(_arg0
);
2910 wxPyEndAllowThreads(__tstate
);
2911 if (PyErr_Occurred()) return NULL
;
2912 } Py_INCREF(Py_None
);
2913 _resultobj
= Py_None
;
2917 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2918 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2919 PyObject
* _resultobj
;
2920 wxDataObject
* _result
;
2921 wxPyDropTarget
* _arg0
;
2922 PyObject
* _argo0
= 0;
2923 char *_kwnames
[] = { "self", NULL
};
2927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2937 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2938 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2940 wxPyEndAllowThreads(__tstate
);
2941 if (PyErr_Occurred()) return NULL
;
2943 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2944 _resultobj
= Py_BuildValue("s",_ptemp
);
2947 _resultobj
= Py_None
;
2952 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2953 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2955 wxPyDropTarget
* _arg0
;
2956 wxDataObject
* _arg1
;
2957 PyObject
* _argo0
= 0;
2958 PyObject
* _argo1
= 0;
2959 char *_kwnames
[] = { "self","dataObject", NULL
};
2962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2972 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2973 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2980 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2982 wxPyEndAllowThreads(__tstate
);
2983 if (PyErr_Occurred()) return NULL
;
2984 } Py_INCREF(Py_None
);
2985 _resultobj
= Py_None
;
2989 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2990 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2991 PyObject
* _resultobj
;
2992 wxDragResult _result
;
2993 wxPyDropTarget
* _arg0
;
2997 PyObject
* _argo0
= 0;
2998 char *_kwnames
[] = { "self","x","y","def", NULL
};
3001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
3011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3012 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3014 wxPyEndAllowThreads(__tstate
);
3015 if (PyErr_Occurred()) return NULL
;
3016 } _resultobj
= Py_BuildValue("i",_result
);
3020 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3021 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3022 PyObject
* _resultobj
;
3023 wxDragResult _result
;
3024 wxPyDropTarget
* _arg0
;
3028 PyObject
* _argo0
= 0;
3029 char *_kwnames
[] = { "self","x","y","def", NULL
};
3032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
3042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3043 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3045 wxPyEndAllowThreads(__tstate
);
3046 if (PyErr_Occurred()) return NULL
;
3047 } _resultobj
= Py_BuildValue("i",_result
);
3051 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3052 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3053 PyObject
* _resultobj
;
3054 wxPyDropTarget
* _arg0
;
3055 PyObject
* _argo0
= 0;
3056 char *_kwnames
[] = { "self", NULL
};
3059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3070 wxPyDropTarget_base_OnLeave(_arg0
);
3072 wxPyEndAllowThreads(__tstate
);
3073 if (PyErr_Occurred()) return NULL
;
3074 } Py_INCREF(Py_None
);
3075 _resultobj
= Py_None
;
3079 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3080 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3081 PyObject
* _resultobj
;
3083 wxPyDropTarget
* _arg0
;
3086 PyObject
* _argo0
= 0;
3087 char *_kwnames
[] = { "self","x","y", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3101 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3103 wxPyEndAllowThreads(__tstate
);
3104 if (PyErr_Occurred()) return NULL
;
3105 } _resultobj
= Py_BuildValue("i",_result
);
3109 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3110 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3113 wxPyDropTarget
* _arg0
;
3114 PyObject
* _argo0
= 0;
3115 char *_kwnames
[] = { "self", NULL
};
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3129 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3131 wxPyEndAllowThreads(__tstate
);
3132 if (PyErr_Occurred()) return NULL
;
3133 } _resultobj
= Py_BuildValue("i",_result
);
3137 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3138 wxPyTextDropTarget
*src
;
3139 wxPyDropTarget
*dest
;
3140 src
= (wxPyTextDropTarget
*) ptr
;
3141 dest
= (wxPyDropTarget
*) src
;
3142 return (void *) dest
;
3145 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3146 wxPyTextDropTarget
*src
;
3148 src
= (wxPyTextDropTarget
*) ptr
;
3149 dest
= (wxDropTarget
*) src
;
3150 return (void *) dest
;
3153 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3154 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3156 wxPyTextDropTarget
* _result
;
3157 char *_kwnames
[] = { NULL
};
3161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3165 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3167 wxPyEndAllowThreads(__tstate
);
3168 if (PyErr_Occurred()) return NULL
;
3170 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3171 _resultobj
= Py_BuildValue("s",_ptemp
);
3174 _resultobj
= Py_None
;
3179 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3180 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3181 PyObject
* _resultobj
;
3182 wxPyTextDropTarget
* _arg0
;
3185 PyObject
* _argo0
= 0;
3186 PyObject
* _obj1
= 0;
3187 PyObject
* _obj2
= 0;
3188 char *_kwnames
[] = { "self","self","_class", NULL
};
3191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3208 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3210 wxPyEndAllowThreads(__tstate
);
3211 if (PyErr_Occurred()) return NULL
;
3212 } Py_INCREF(Py_None
);
3213 _resultobj
= Py_None
;
3217 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3218 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3219 PyObject
* _resultobj
;
3220 wxDragResult _result
;
3221 wxPyTextDropTarget
* _arg0
;
3225 PyObject
* _argo0
= 0;
3226 char *_kwnames
[] = { "self","x","y","def", NULL
};
3229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3240 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3242 wxPyEndAllowThreads(__tstate
);
3243 if (PyErr_Occurred()) return NULL
;
3244 } _resultobj
= Py_BuildValue("i",_result
);
3248 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3249 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3250 PyObject
* _resultobj
;
3251 wxDragResult _result
;
3252 wxPyTextDropTarget
* _arg0
;
3256 PyObject
* _argo0
= 0;
3257 char *_kwnames
[] = { "self","x","y","def", NULL
};
3260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3271 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3273 wxPyEndAllowThreads(__tstate
);
3274 if (PyErr_Occurred()) return NULL
;
3275 } _resultobj
= Py_BuildValue("i",_result
);
3279 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3280 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3281 PyObject
* _resultobj
;
3282 wxPyTextDropTarget
* _arg0
;
3283 PyObject
* _argo0
= 0;
3284 char *_kwnames
[] = { "self", NULL
};
3287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3298 wxTextDropTarget_base_OnLeave(_arg0
);
3300 wxPyEndAllowThreads(__tstate
);
3301 if (PyErr_Occurred()) return NULL
;
3302 } Py_INCREF(Py_None
);
3303 _resultobj
= Py_None
;
3307 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3308 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3309 PyObject
* _resultobj
;
3311 wxPyTextDropTarget
* _arg0
;
3314 PyObject
* _argo0
= 0;
3315 char *_kwnames
[] = { "self","x","y", NULL
};
3318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3329 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3331 wxPyEndAllowThreads(__tstate
);
3332 if (PyErr_Occurred()) return NULL
;
3333 } _resultobj
= Py_BuildValue("i",_result
);
3337 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3338 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3339 PyObject
* _resultobj
;
3340 wxDragResult _result
;
3341 wxPyTextDropTarget
* _arg0
;
3345 PyObject
* _argo0
= 0;
3346 char *_kwnames
[] = { "self","x","y","def", NULL
};
3349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3360 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3362 wxPyEndAllowThreads(__tstate
);
3363 if (PyErr_Occurred()) return NULL
;
3364 } _resultobj
= Py_BuildValue("i",_result
);
3368 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3369 wxPyFileDropTarget
*src
;
3370 wxPyDropTarget
*dest
;
3371 src
= (wxPyFileDropTarget
*) ptr
;
3372 dest
= (wxPyDropTarget
*) src
;
3373 return (void *) dest
;
3376 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3377 wxPyFileDropTarget
*src
;
3379 src
= (wxPyFileDropTarget
*) ptr
;
3380 dest
= (wxDropTarget
*) src
;
3381 return (void *) dest
;
3384 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3385 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3386 PyObject
* _resultobj
;
3387 wxPyFileDropTarget
* _result
;
3388 char *_kwnames
[] = { NULL
};
3392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3396 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3398 wxPyEndAllowThreads(__tstate
);
3399 if (PyErr_Occurred()) return NULL
;
3401 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3402 _resultobj
= Py_BuildValue("s",_ptemp
);
3405 _resultobj
= Py_None
;
3410 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3411 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3412 PyObject
* _resultobj
;
3413 wxPyFileDropTarget
* _arg0
;
3416 PyObject
* _argo0
= 0;
3417 PyObject
* _obj1
= 0;
3418 PyObject
* _obj2
= 0;
3419 char *_kwnames
[] = { "self","self","_class", NULL
};
3422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3438 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3439 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3441 wxPyEndAllowThreads(__tstate
);
3442 if (PyErr_Occurred()) return NULL
;
3443 } Py_INCREF(Py_None
);
3444 _resultobj
= Py_None
;
3448 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3449 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3450 PyObject
* _resultobj
;
3451 wxDragResult _result
;
3452 wxPyFileDropTarget
* _arg0
;
3456 PyObject
* _argo0
= 0;
3457 char *_kwnames
[] = { "self","x","y","def", NULL
};
3460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3471 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3473 wxPyEndAllowThreads(__tstate
);
3474 if (PyErr_Occurred()) return NULL
;
3475 } _resultobj
= Py_BuildValue("i",_result
);
3479 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3480 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3481 PyObject
* _resultobj
;
3482 wxDragResult _result
;
3483 wxPyFileDropTarget
* _arg0
;
3487 PyObject
* _argo0
= 0;
3488 char *_kwnames
[] = { "self","x","y","def", NULL
};
3491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3502 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3504 wxPyEndAllowThreads(__tstate
);
3505 if (PyErr_Occurred()) return NULL
;
3506 } _resultobj
= Py_BuildValue("i",_result
);
3510 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3511 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3512 PyObject
* _resultobj
;
3513 wxPyFileDropTarget
* _arg0
;
3514 PyObject
* _argo0
= 0;
3515 char *_kwnames
[] = { "self", NULL
};
3518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3529 wxFileDropTarget_base_OnLeave(_arg0
);
3531 wxPyEndAllowThreads(__tstate
);
3532 if (PyErr_Occurred()) return NULL
;
3533 } Py_INCREF(Py_None
);
3534 _resultobj
= Py_None
;
3538 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3539 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3540 PyObject
* _resultobj
;
3542 wxPyFileDropTarget
* _arg0
;
3545 PyObject
* _argo0
= 0;
3546 char *_kwnames
[] = { "self","x","y", NULL
};
3549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3559 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3560 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3562 wxPyEndAllowThreads(__tstate
);
3563 if (PyErr_Occurred()) return NULL
;
3564 } _resultobj
= Py_BuildValue("i",_result
);
3568 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3569 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3570 PyObject
* _resultobj
;
3571 wxDragResult _result
;
3572 wxPyFileDropTarget
* _arg0
;
3576 PyObject
* _argo0
= 0;
3577 char *_kwnames
[] = { "self","x","y","def", NULL
};
3580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3591 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3593 wxPyEndAllowThreads(__tstate
);
3594 if (PyErr_Occurred()) return NULL
;
3595 } _resultobj
= Py_BuildValue("i",_result
);
3599 static PyMethodDef clip_dndcMethods
[] = {
3600 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3675 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3676 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3677 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3678 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3679 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3680 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3681 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3682 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3683 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3684 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3685 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3686 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3687 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3688 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3689 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3690 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3697 * This table is used by the pointer type-checker
3699 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3700 { "_signed_long","_long",0},
3701 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3702 { "_wxPrintQuality","_wxCoord",0},
3703 { "_wxPrintQuality","_int",0},
3704 { "_wxPrintQuality","_signed_int",0},
3705 { "_wxPrintQuality","_unsigned_int",0},
3706 { "_wxPrintQuality","_wxWindowID",0},
3707 { "_wxPrintQuality","_uint",0},
3708 { "_wxPrintQuality","_EBool",0},
3709 { "_wxPrintQuality","_size_t",0},
3710 { "_wxPrintQuality","_time_t",0},
3711 { "_byte","_unsigned_char",0},
3712 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3713 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3714 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3715 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3716 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3717 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3718 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3719 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3720 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3721 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3722 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3723 { "_long","_unsigned_long",0},
3724 { "_long","_signed_long",0},
3725 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3726 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3727 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3728 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3729 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3730 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3731 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3732 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3733 { "_size_t","_wxCoord",0},
3734 { "_size_t","_wxPrintQuality",0},
3735 { "_size_t","_time_t",0},
3736 { "_size_t","_unsigned_int",0},
3737 { "_size_t","_int",0},
3738 { "_size_t","_wxWindowID",0},
3739 { "_size_t","_uint",0},
3740 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3741 { "_uint","_wxCoord",0},
3742 { "_uint","_wxPrintQuality",0},
3743 { "_uint","_time_t",0},
3744 { "_uint","_size_t",0},
3745 { "_uint","_unsigned_int",0},
3746 { "_uint","_int",0},
3747 { "_uint","_wxWindowID",0},
3748 { "_wxChar","_char",0},
3749 { "_char","_wxChar",0},
3750 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3751 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3752 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3753 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3754 { "_EBool","_wxCoord",0},
3755 { "_EBool","_wxPrintQuality",0},
3756 { "_EBool","_signed_int",0},
3757 { "_EBool","_int",0},
3758 { "_EBool","_wxWindowID",0},
3759 { "_unsigned_long","_long",0},
3760 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3761 { "_signed_int","_wxCoord",0},
3762 { "_signed_int","_wxPrintQuality",0},
3763 { "_signed_int","_EBool",0},
3764 { "_signed_int","_wxWindowID",0},
3765 { "_signed_int","_int",0},
3766 { "_WXTYPE","_short",0},
3767 { "_WXTYPE","_signed_short",0},
3768 { "_WXTYPE","_unsigned_short",0},
3769 { "_unsigned_short","_WXTYPE",0},
3770 { "_unsigned_short","_short",0},
3771 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3772 { "_signed_short","_WXTYPE",0},
3773 { "_signed_short","_short",0},
3774 { "_unsigned_char","_byte",0},
3775 { "_unsigned_int","_wxCoord",0},
3776 { "_unsigned_int","_wxPrintQuality",0},
3777 { "_unsigned_int","_time_t",0},
3778 { "_unsigned_int","_size_t",0},
3779 { "_unsigned_int","_uint",0},
3780 { "_unsigned_int","_wxWindowID",0},
3781 { "_unsigned_int","_int",0},
3782 { "_short","_WXTYPE",0},
3783 { "_short","_unsigned_short",0},
3784 { "_short","_signed_short",0},
3785 { "_wxWindowID","_wxCoord",0},
3786 { "_wxWindowID","_wxPrintQuality",0},
3787 { "_wxWindowID","_time_t",0},
3788 { "_wxWindowID","_size_t",0},
3789 { "_wxWindowID","_EBool",0},
3790 { "_wxWindowID","_uint",0},
3791 { "_wxWindowID","_int",0},
3792 { "_wxWindowID","_signed_int",0},
3793 { "_wxWindowID","_unsigned_int",0},
3794 { "_int","_wxCoord",0},
3795 { "_int","_wxPrintQuality",0},
3796 { "_int","_time_t",0},
3797 { "_int","_size_t",0},
3798 { "_int","_EBool",0},
3799 { "_int","_uint",0},
3800 { "_int","_wxWindowID",0},
3801 { "_int","_unsigned_int",0},
3802 { "_int","_signed_int",0},
3803 { "_time_t","_wxCoord",0},
3804 { "_time_t","_wxPrintQuality",0},
3805 { "_time_t","_unsigned_int",0},
3806 { "_time_t","_int",0},
3807 { "_time_t","_wxWindowID",0},
3808 { "_time_t","_uint",0},
3809 { "_time_t","_size_t",0},
3810 { "_wxCoord","_int",0},
3811 { "_wxCoord","_signed_int",0},
3812 { "_wxCoord","_unsigned_int",0},
3813 { "_wxCoord","_wxWindowID",0},
3814 { "_wxCoord","_uint",0},
3815 { "_wxCoord","_EBool",0},
3816 { "_wxCoord","_size_t",0},
3817 { "_wxCoord","_time_t",0},
3818 { "_wxCoord","_wxPrintQuality",0},
3819 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3820 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3821 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3824 static PyObject
*SWIG_globals
;
3828 SWIGEXPORT(void) initclip_dndc() {
3830 SWIG_globals
= SWIG_newvarlink();
3831 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3832 d
= PyModule_GetDict(m
);
3833 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3834 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3835 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3836 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3837 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3838 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3839 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3840 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3841 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3842 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3843 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3844 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3845 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3846 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3847 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3848 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3849 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3850 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3851 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3852 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3853 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3854 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3855 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3856 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3857 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3858 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3859 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3860 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3861 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3862 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3863 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3864 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3867 wxPyTheClipboard
= wxTheClipboard
;
3868 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3869 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3870 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3871 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3872 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3873 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3876 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3877 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);