2 * FILE : src/gtk/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
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 m_myInst
.callCallback(Py_BuildValue("(O)",
195 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
197 wxPyEndBlockThreads();
200 // See below in the init function...
201 wxClipboard
* wxPyTheClipboard
;
203 class wxPyDropSource
: public wxDropSource
{
206 wxPyDropSource(wxWindow
*win
= NULL
,
207 const wxCursor
&cursorCopy
= wxNullCursor
,
208 const wxCursor
&cursorMove
= wxNullCursor
,
209 const wxCursor
&cursorStop
= wxNullCursor
)
210 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
212 wxPyDropSource(wxWindow
*win
= NULL
,
213 const wxIcon
&go
= wxNullIcon
)
214 : wxDropSource(win
, go
) {}
216 ~wxPyDropSource() { }
218 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
222 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
225 class wxPyDropTarget
: public wxDropTarget
{
227 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
228 : wxDropTarget(dataObject
) {}
230 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
231 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
233 DEC_PYCALLBACK__(OnLeave
);
234 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
235 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
236 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
237 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
242 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
243 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
245 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
246 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
247 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
248 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
249 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
252 class wxPyTextDropTarget
: public wxTextDropTarget
{
254 wxPyTextDropTarget() {}
256 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
258 DEC_PYCALLBACK__(OnLeave
);
259 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
260 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
261 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
262 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
267 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
268 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
269 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
270 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
271 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
272 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
275 class wxPyFileDropTarget
: public wxFileDropTarget
{
277 wxPyFileDropTarget() {}
279 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
281 DEC_PYCALLBACK__(OnLeave
);
282 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
283 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
284 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
285 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
290 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
291 const wxArrayString
& filenames
) {
293 wxPyBeginBlockThreads();
294 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
295 if (m_myInst
.findCallback("OnDropFiles"))
296 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
298 wxPyEndBlockThreads();
304 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
305 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
306 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
307 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
308 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
313 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
314 PyObject
* _resultobj
;
315 wxDataFormat
* _result
;
317 PyObject
* _obj0
= 0;
318 char *_kwnames
[] = { "id", NULL
};
322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
325 _arg0
= wxString_in_helper(_obj0
);
330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
331 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
333 wxPyEndAllowThreads(__tstate
);
334 if (PyErr_Occurred()) return NULL
;
336 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
337 _resultobj
= Py_BuildValue("s",_ptemp
);
340 _resultobj
= Py_None
;
349 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
351 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
355 static PyObject
*_wrap_wxPyFormatInvalid_get() {
359 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
360 pyobj
= PyString_FromString(ptemp
);
364 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
366 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
370 static PyObject
*_wrap_wxPyTheClipboard_get() {
374 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
375 pyobj
= PyString_FromString(ptemp
);
379 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
380 PyObject
* _resultobj
;
383 char *_kwnames
[] = { "res", NULL
};
386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
390 _result
= (bool )wxIsDragResultOk(_arg0
);
392 wxPyEndAllowThreads(__tstate
);
393 if (PyErr_Occurred()) return NULL
;
394 } _resultobj
= Py_BuildValue("i",_result
);
398 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
399 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
400 PyObject
* _resultobj
;
401 wxDataFormat
* _result
;
402 wxDataFormatId _arg0
;
403 char *_kwnames
[] = { "type", NULL
};
407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
410 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
411 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
413 wxPyEndAllowThreads(__tstate
);
414 if (PyErr_Occurred()) return NULL
;
416 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
417 _resultobj
= Py_BuildValue("s",_ptemp
);
420 _resultobj
= Py_None
;
425 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
426 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
427 PyObject
* _resultobj
;
428 wxDataFormat
* _arg0
;
429 PyObject
* _argo0
= 0;
430 char *_kwnames
[] = { "self", NULL
};
433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
444 delete_wxDataFormat(_arg0
);
446 wxPyEndAllowThreads(__tstate
);
447 if (PyErr_Occurred()) return NULL
;
448 } Py_INCREF(Py_None
);
449 _resultobj
= Py_None
;
453 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
454 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
455 PyObject
* _resultobj
;
456 wxDataFormat
* _arg0
;
457 wxDataFormatId _arg1
;
458 PyObject
* _argo0
= 0;
459 char *_kwnames
[] = { "self","format", NULL
};
462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
473 wxDataFormat_SetType(_arg0
,_arg1
);
475 wxPyEndAllowThreads(__tstate
);
476 if (PyErr_Occurred()) return NULL
;
477 } Py_INCREF(Py_None
);
478 _resultobj
= Py_None
;
482 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
483 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
484 PyObject
* _resultobj
;
485 wxDataFormatId _result
;
486 wxDataFormat
* _arg0
;
487 PyObject
* _argo0
= 0;
488 char *_kwnames
[] = { "self", NULL
};
491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 } _resultobj
= Py_BuildValue("i",_result
);
510 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
511 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
512 PyObject
* _resultobj
;
514 wxDataFormat
* _arg0
;
515 PyObject
* _argo0
= 0;
516 char *_kwnames
[] = { "self", NULL
};
519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
530 _result
= new wxString (wxDataFormat_GetId(_arg0
));
532 wxPyEndAllowThreads(__tstate
);
533 if (PyErr_Occurred()) return NULL
;
536 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
538 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
547 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
548 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
549 PyObject
* _resultobj
;
550 wxDataFormat
* _arg0
;
552 PyObject
* _argo0
= 0;
553 PyObject
* _obj1
= 0;
554 char *_kwnames
[] = { "self","format", NULL
};
557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
567 _arg1
= wxString_in_helper(_obj1
);
572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
573 wxDataFormat_SetId(_arg0
,*_arg1
);
575 wxPyEndAllowThreads(__tstate
);
576 if (PyErr_Occurred()) return NULL
;
577 } Py_INCREF(Py_None
);
578 _resultobj
= Py_None
;
586 #define delete_wxDataObject(_swigobj) (delete _swigobj)
587 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
588 PyObject
* _resultobj
;
589 wxDataObject
* _arg0
;
590 PyObject
* _argo0
= 0;
591 char *_kwnames
[] = { "self", NULL
};
594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
604 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
605 delete_wxDataObject(_arg0
);
607 wxPyEndAllowThreads(__tstate
);
608 if (PyErr_Occurred()) return NULL
;
609 } Py_INCREF(Py_None
);
610 _resultobj
= Py_None
;
614 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
615 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
616 PyObject
* _resultobj
;
617 wxDataFormat
* _result
;
618 wxDataObject
* _arg0
;
619 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
620 PyObject
* _argo0
= 0;
621 char *_kwnames
[] = { "self","dir", NULL
};
625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
636 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
638 wxPyEndAllowThreads(__tstate
);
639 if (PyErr_Occurred()) return NULL
;
640 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
641 _resultobj
= Py_BuildValue("s",_ptemp
);
645 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
646 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
647 PyObject
* _resultobj
;
649 wxDataObject
* _arg0
;
650 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
651 PyObject
* _argo0
= 0;
652 char *_kwnames
[] = { "self","dir", NULL
};
655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
666 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
668 wxPyEndAllowThreads(__tstate
);
669 if (PyErr_Occurred()) return NULL
;
670 } _resultobj
= Py_BuildValue("i",_result
);
674 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
675 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
676 PyObject
* _resultobj
;
677 wxDataObject
* _arg0
;
678 wxDataFormat
* _arg1
;
679 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
680 PyObject
* _argo0
= 0;
681 PyObject
* _argo1
= 0;
682 char *_kwnames
[] = { "self","formats","dir", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
695 if (_argo1
== Py_None
) { _arg1
= NULL
; }
696 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
703 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
705 wxPyEndAllowThreads(__tstate
);
706 if (PyErr_Occurred()) return NULL
;
707 } Py_INCREF(Py_None
);
708 _resultobj
= Py_None
;
712 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
713 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
714 PyObject
* _resultobj
;
716 wxDataObject
* _arg0
;
717 wxDataFormat
* _arg1
;
718 PyObject
* _argo0
= 0;
719 PyObject
* _argo1
= 0;
720 char *_kwnames
[] = { "self","format", NULL
};
723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
733 if (_argo1
== Py_None
) { _arg1
= NULL
; }
734 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
741 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
743 wxPyEndAllowThreads(__tstate
);
744 if (PyErr_Occurred()) return NULL
;
745 } _resultobj
= Py_BuildValue("i",_result
);
749 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
750 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
751 PyObject
* _resultobj
;
753 wxDataObject
* _arg0
;
754 wxDataFormat
* _arg1
;
756 PyObject
* _argo0
= 0;
757 PyObject
* _argo1
= 0;
758 PyObject
* _argo2
= 0;
759 char *_kwnames
[] = { "self","format","buf", NULL
};
762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
772 if (_argo1
== Py_None
) { _arg1
= NULL
; }
773 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
779 if (_argo2
== Py_None
) { _arg2
= NULL
; }
780 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
786 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
787 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
789 wxPyEndAllowThreads(__tstate
);
790 if (PyErr_Occurred()) return NULL
;
791 } _resultobj
= Py_BuildValue("i",_result
);
795 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
796 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
797 PyObject
* _resultobj
;
799 wxDataObject
* _arg0
;
800 wxDataFormat
* _arg1
;
803 PyObject
* _argo0
= 0;
804 PyObject
* _argo1
= 0;
805 PyObject
* _argo3
= 0;
806 char *_kwnames
[] = { "self","format","len","buf", NULL
};
809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
819 if (_argo1
== Py_None
) { _arg1
= NULL
; }
820 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
826 if (_argo3
== Py_None
) { _arg3
= NULL
; }
827 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
834 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
836 wxPyEndAllowThreads(__tstate
);
837 if (PyErr_Occurred()) return NULL
;
838 } _resultobj
= Py_BuildValue("i",_result
);
842 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
843 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
844 PyObject
* _resultobj
;
846 wxDataObject
* _arg0
;
847 wxDataFormat
* _arg1
;
848 PyObject
* _argo0
= 0;
849 PyObject
* _argo1
= 0;
850 char *_kwnames
[] = { "self","format", NULL
};
853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
863 if (_argo1
== Py_None
) { _arg1
= NULL
; }
864 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
871 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
873 wxPyEndAllowThreads(__tstate
);
874 if (PyErr_Occurred()) return NULL
;
875 } _resultobj
= Py_BuildValue("i",_result
);
879 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
880 wxDataObjectSimple
*src
;
882 src
= (wxDataObjectSimple
*) ptr
;
883 dest
= (wxDataObject
*) src
;
884 return (void *) dest
;
887 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
888 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
889 PyObject
* _resultobj
;
890 wxDataObjectSimple
* _result
;
891 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
892 PyObject
* _argo0
= 0;
893 char *_kwnames
[] = { "format", NULL
};
897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
923 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
925 wxDataFormat
* _result
;
926 wxDataObjectSimple
* _arg0
;
927 PyObject
* _argo0
= 0;
928 char *_kwnames
[] = { "self", NULL
};
932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
943 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
944 _result
= (wxDataFormat
*) &_result_ref
;
946 wxPyEndAllowThreads(__tstate
);
947 if (PyErr_Occurred()) return NULL
;
949 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
950 _resultobj
= Py_BuildValue("s",_ptemp
);
953 _resultobj
= Py_None
;
958 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
959 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
960 PyObject
* _resultobj
;
961 wxDataObjectSimple
* _arg0
;
962 wxDataFormat
* _arg1
;
963 PyObject
* _argo0
= 0;
964 PyObject
* _argo1
= 0;
965 char *_kwnames
[] = { "self","format", NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
986 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
988 wxPyEndAllowThreads(__tstate
);
989 if (PyErr_Occurred()) return NULL
;
990 } Py_INCREF(Py_None
);
991 _resultobj
= Py_None
;
995 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
996 wxPyDataObjectSimple
*src
;
997 wxDataObjectSimple
*dest
;
998 src
= (wxPyDataObjectSimple
*) ptr
;
999 dest
= (wxDataObjectSimple
*) src
;
1000 return (void *) dest
;
1003 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1004 wxPyDataObjectSimple
*src
;
1006 src
= (wxPyDataObjectSimple
*) ptr
;
1007 dest
= (wxDataObject
*) src
;
1008 return (void *) dest
;
1011 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1012 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1013 PyObject
* _resultobj
;
1014 wxPyDataObjectSimple
* _result
;
1015 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1016 PyObject
* _argo0
= 0;
1017 char *_kwnames
[] = { "format", NULL
};
1021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1032 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1034 wxPyEndAllowThreads(__tstate
);
1035 if (PyErr_Occurred()) return NULL
;
1037 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1038 _resultobj
= Py_BuildValue("s",_ptemp
);
1041 _resultobj
= Py_None
;
1046 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1047 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1048 PyObject
* _resultobj
;
1049 wxPyDataObjectSimple
* _arg0
;
1052 PyObject
* _argo0
= 0;
1053 PyObject
* _obj1
= 0;
1054 PyObject
* _obj2
= 0;
1055 char *_kwnames
[] = { "self","self","_class", NULL
};
1058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1075 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1077 wxPyEndAllowThreads(__tstate
);
1078 if (PyErr_Occurred()) return NULL
;
1079 } Py_INCREF(Py_None
);
1080 _resultobj
= Py_None
;
1084 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1085 wxDataObjectComposite
*src
;
1087 src
= (wxDataObjectComposite
*) ptr
;
1088 dest
= (wxDataObject
*) src
;
1089 return (void *) dest
;
1092 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1093 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1094 PyObject
* _resultobj
;
1095 wxDataObjectComposite
* _result
;
1096 char *_kwnames
[] = { NULL
};
1100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1104 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1106 wxPyEndAllowThreads(__tstate
);
1107 if (PyErr_Occurred()) return NULL
;
1109 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1110 _resultobj
= Py_BuildValue("s",_ptemp
);
1113 _resultobj
= Py_None
;
1118 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1119 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1120 PyObject
* _resultobj
;
1121 wxDataObjectComposite
* _arg0
;
1122 wxDataObjectSimple
* _arg1
;
1123 int _arg2
= (int ) FALSE
;
1124 PyObject
* _argo0
= 0;
1125 PyObject
* _argo1
= 0;
1126 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1139 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1140 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1147 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1149 wxPyEndAllowThreads(__tstate
);
1150 if (PyErr_Occurred()) return NULL
;
1151 } Py_INCREF(Py_None
);
1152 _resultobj
= Py_None
;
1156 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1157 wxTextDataObject
*src
;
1158 wxDataObjectSimple
*dest
;
1159 src
= (wxTextDataObject
*) ptr
;
1160 dest
= (wxDataObjectSimple
*) src
;
1161 return (void *) dest
;
1164 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1165 wxTextDataObject
*src
;
1167 src
= (wxTextDataObject
*) ptr
;
1168 dest
= (wxDataObject
*) src
;
1169 return (void *) dest
;
1172 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1173 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1174 PyObject
* _resultobj
;
1175 wxTextDataObject
* _result
;
1176 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1177 PyObject
* _obj0
= 0;
1178 char *_kwnames
[] = { "text", NULL
};
1182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1186 _arg0
= wxString_in_helper(_obj0
);
1191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1192 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1194 wxPyEndAllowThreads(__tstate
);
1195 if (PyErr_Occurred()) return NULL
;
1197 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1198 _resultobj
= Py_BuildValue("s",_ptemp
);
1201 _resultobj
= Py_None
;
1210 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1211 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1212 PyObject
* _resultobj
;
1214 wxTextDataObject
* _arg0
;
1215 PyObject
* _argo0
= 0;
1216 char *_kwnames
[] = { "self", NULL
};
1219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1230 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1232 wxPyEndAllowThreads(__tstate
);
1233 if (PyErr_Occurred()) return NULL
;
1234 } _resultobj
= Py_BuildValue("i",_result
);
1238 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1239 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1240 PyObject
* _resultobj
;
1242 wxTextDataObject
* _arg0
;
1243 PyObject
* _argo0
= 0;
1244 char *_kwnames
[] = { "self", NULL
};
1247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1258 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1260 wxPyEndAllowThreads(__tstate
);
1261 if (PyErr_Occurred()) return NULL
;
1264 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1266 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1275 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1276 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1278 wxTextDataObject
* _arg0
;
1280 PyObject
* _argo0
= 0;
1281 PyObject
* _obj1
= 0;
1282 char *_kwnames
[] = { "self","text", NULL
};
1285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1295 _arg1
= wxString_in_helper(_obj1
);
1300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1301 wxTextDataObject_SetText(_arg0
,*_arg1
);
1303 wxPyEndAllowThreads(__tstate
);
1304 if (PyErr_Occurred()) return NULL
;
1305 } Py_INCREF(Py_None
);
1306 _resultobj
= Py_None
;
1314 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1315 wxPyTextDataObject
*src
;
1316 wxTextDataObject
*dest
;
1317 src
= (wxPyTextDataObject
*) ptr
;
1318 dest
= (wxTextDataObject
*) src
;
1319 return (void *) dest
;
1322 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1323 wxPyTextDataObject
*src
;
1324 wxDataObjectSimple
*dest
;
1325 src
= (wxPyTextDataObject
*) ptr
;
1326 dest
= (wxDataObjectSimple
*) src
;
1327 return (void *) dest
;
1330 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1331 wxPyTextDataObject
*src
;
1333 src
= (wxPyTextDataObject
*) ptr
;
1334 dest
= (wxDataObject
*) src
;
1335 return (void *) dest
;
1338 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1339 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 wxPyTextDataObject
* _result
;
1342 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1343 PyObject
* _obj0
= 0;
1344 char *_kwnames
[] = { "text", NULL
};
1348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1352 _arg0
= wxString_in_helper(_obj0
);
1357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1358 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1360 wxPyEndAllowThreads(__tstate
);
1361 if (PyErr_Occurred()) return NULL
;
1363 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1364 _resultobj
= Py_BuildValue("s",_ptemp
);
1367 _resultobj
= Py_None
;
1376 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1377 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1378 PyObject
* _resultobj
;
1379 wxPyTextDataObject
* _arg0
;
1382 PyObject
* _argo0
= 0;
1383 PyObject
* _obj1
= 0;
1384 PyObject
* _obj2
= 0;
1385 char *_kwnames
[] = { "self","self","_class", NULL
};
1388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1405 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1407 wxPyEndAllowThreads(__tstate
);
1408 if (PyErr_Occurred()) return NULL
;
1409 } Py_INCREF(Py_None
);
1410 _resultobj
= Py_None
;
1414 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1415 wxBitmapDataObject
*src
;
1416 wxDataObjectSimple
*dest
;
1417 src
= (wxBitmapDataObject
*) ptr
;
1418 dest
= (wxDataObjectSimple
*) src
;
1419 return (void *) dest
;
1422 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1423 wxBitmapDataObject
*src
;
1425 src
= (wxBitmapDataObject
*) ptr
;
1426 dest
= (wxDataObject
*) src
;
1427 return (void *) dest
;
1430 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1431 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
* _resultobj
;
1433 wxBitmapDataObject
* _result
;
1434 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1435 PyObject
* _argo0
= 0;
1436 char *_kwnames
[] = { "bitmap", NULL
};
1440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1451 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1453 wxPyEndAllowThreads(__tstate
);
1454 if (PyErr_Occurred()) return NULL
;
1456 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1457 _resultobj
= Py_BuildValue("s",_ptemp
);
1460 _resultobj
= Py_None
;
1465 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1466 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1467 PyObject
* _resultobj
;
1469 wxBitmapDataObject
* _arg0
;
1470 PyObject
* _argo0
= 0;
1471 char *_kwnames
[] = { "self", NULL
};
1475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1486 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1488 wxPyEndAllowThreads(__tstate
);
1489 if (PyErr_Occurred()) return NULL
;
1490 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1491 _resultobj
= Py_BuildValue("s",_ptemp
);
1495 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1496 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1497 PyObject
* _resultobj
;
1498 wxBitmapDataObject
* _arg0
;
1500 PyObject
* _argo0
= 0;
1501 PyObject
* _argo1
= 0;
1502 char *_kwnames
[] = { "self","bitmap", NULL
};
1505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1515 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1516 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1522 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1523 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1525 wxPyEndAllowThreads(__tstate
);
1526 if (PyErr_Occurred()) return NULL
;
1527 } Py_INCREF(Py_None
);
1528 _resultobj
= Py_None
;
1532 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1533 wxPyBitmapDataObject
*src
;
1534 wxBitmapDataObject
*dest
;
1535 src
= (wxPyBitmapDataObject
*) ptr
;
1536 dest
= (wxBitmapDataObject
*) src
;
1537 return (void *) dest
;
1540 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1541 wxPyBitmapDataObject
*src
;
1542 wxDataObjectSimple
*dest
;
1543 src
= (wxPyBitmapDataObject
*) ptr
;
1544 dest
= (wxDataObjectSimple
*) src
;
1545 return (void *) dest
;
1548 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1549 wxPyBitmapDataObject
*src
;
1551 src
= (wxPyBitmapDataObject
*) ptr
;
1552 dest
= (wxDataObject
*) src
;
1553 return (void *) dest
;
1556 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1557 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1558 PyObject
* _resultobj
;
1559 wxPyBitmapDataObject
* _result
;
1560 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1561 PyObject
* _argo0
= 0;
1562 char *_kwnames
[] = { "bitmap", NULL
};
1566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1576 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1577 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1579 wxPyEndAllowThreads(__tstate
);
1580 if (PyErr_Occurred()) return NULL
;
1582 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1583 _resultobj
= Py_BuildValue("s",_ptemp
);
1586 _resultobj
= Py_None
;
1591 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1592 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1593 PyObject
* _resultobj
;
1594 wxPyBitmapDataObject
* _arg0
;
1597 PyObject
* _argo0
= 0;
1598 PyObject
* _obj1
= 0;
1599 PyObject
* _obj2
= 0;
1600 char *_kwnames
[] = { "self","self","_class", NULL
};
1603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1619 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1620 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1622 wxPyEndAllowThreads(__tstate
);
1623 if (PyErr_Occurred()) return NULL
;
1624 } Py_INCREF(Py_None
);
1625 _resultobj
= Py_None
;
1629 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1630 wxFileDataObject
*src
;
1631 wxDataObjectSimple
*dest
;
1632 src
= (wxFileDataObject
*) ptr
;
1633 dest
= (wxDataObjectSimple
*) src
;
1634 return (void *) dest
;
1637 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1638 wxFileDataObject
*src
;
1640 src
= (wxFileDataObject
*) ptr
;
1641 dest
= (wxDataObject
*) src
;
1642 return (void *) dest
;
1645 #define new_wxFileDataObject() (new wxFileDataObject())
1646 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1647 PyObject
* _resultobj
;
1648 wxFileDataObject
* _result
;
1649 char *_kwnames
[] = { NULL
};
1653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1657 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1659 wxPyEndAllowThreads(__tstate
);
1660 if (PyErr_Occurred()) return NULL
;
1662 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1663 _resultobj
= Py_BuildValue("s",_ptemp
);
1666 _resultobj
= Py_None
;
1671 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1672 const wxArrayString
& strings
= self
->GetFilenames();
1673 return wxArrayString2PyList_helper(strings
);
1675 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1676 PyObject
* _resultobj
;
1678 wxFileDataObject
* _arg0
;
1679 PyObject
* _argo0
= 0;
1680 char *_kwnames
[] = { "self", NULL
};
1683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1694 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1696 wxPyEndAllowThreads(__tstate
);
1697 if (PyErr_Occurred()) return NULL
;
1699 _resultobj
= _result
;
1704 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1705 wxCustomDataObject
*src
;
1706 wxDataObjectSimple
*dest
;
1707 src
= (wxCustomDataObject
*) ptr
;
1708 dest
= (wxDataObjectSimple
*) src
;
1709 return (void *) dest
;
1712 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1713 wxCustomDataObject
*src
;
1715 src
= (wxCustomDataObject
*) ptr
;
1716 dest
= (wxDataObject
*) src
;
1717 return (void *) dest
;
1720 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1721 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1722 PyObject
* _resultobj
;
1723 wxCustomDataObject
* _result
;
1724 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1725 PyObject
* _argo0
= 0;
1726 char *_kwnames
[] = { "format", NULL
};
1730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1741 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1743 wxPyEndAllowThreads(__tstate
);
1744 if (PyErr_Occurred()) return NULL
;
1746 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1747 _resultobj
= Py_BuildValue("s",_ptemp
);
1750 _resultobj
= Py_None
;
1755 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1756 if (PyString_Check(data
)) {
1757 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1760 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1761 PyObject
* _resultobj
;
1762 wxCustomDataObject
* _arg0
;
1764 PyObject
* _argo0
= 0;
1765 PyObject
* _obj1
= 0;
1766 char *_kwnames
[] = { "self","data", NULL
};
1769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1772 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1773 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1782 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1783 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1785 wxPyEndAllowThreads(__tstate
);
1786 if (PyErr_Occurred()) return NULL
;
1787 } Py_INCREF(Py_None
);
1788 _resultobj
= Py_None
;
1792 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1793 if (PyString_Check(data
)) {
1794 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1798 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1799 PyObject
* _resultobj
;
1801 wxCustomDataObject
* _arg0
;
1803 PyObject
* _argo0
= 0;
1804 PyObject
* _obj1
= 0;
1805 char *_kwnames
[] = { "self","data", NULL
};
1808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1822 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1824 wxPyEndAllowThreads(__tstate
);
1825 if (PyErr_Occurred()) return NULL
;
1826 } _resultobj
= Py_BuildValue("i",_result
);
1830 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1831 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
* _resultobj
;
1834 wxCustomDataObject
* _arg0
;
1835 PyObject
* _argo0
= 0;
1836 char *_kwnames
[] = { "self", NULL
};
1839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1850 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1852 wxPyEndAllowThreads(__tstate
);
1853 if (PyErr_Occurred()) return NULL
;
1854 } _resultobj
= Py_BuildValue("i",_result
);
1858 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1859 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1861 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1862 PyObject
* _resultobj
;
1864 wxCustomDataObject
* _arg0
;
1865 PyObject
* _argo0
= 0;
1866 char *_kwnames
[] = { "self", NULL
};
1869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1880 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1882 wxPyEndAllowThreads(__tstate
);
1883 if (PyErr_Occurred()) return NULL
;
1885 _resultobj
= _result
;
1890 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1891 wxURLDataObject
*src
;
1892 wxDataObjectComposite
*dest
;
1893 src
= (wxURLDataObject
*) ptr
;
1894 dest
= (wxDataObjectComposite
*) src
;
1895 return (void *) dest
;
1898 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1899 wxURLDataObject
*src
;
1901 src
= (wxURLDataObject
*) ptr
;
1902 dest
= (wxDataObject
*) src
;
1903 return (void *) dest
;
1906 #define new_wxURLDataObject() (new wxURLDataObject())
1907 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1908 PyObject
* _resultobj
;
1909 wxURLDataObject
* _result
;
1910 char *_kwnames
[] = { NULL
};
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1917 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1918 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1920 wxPyEndAllowThreads(__tstate
);
1921 if (PyErr_Occurred()) return NULL
;
1923 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1924 _resultobj
= Py_BuildValue("s",_ptemp
);
1927 _resultobj
= Py_None
;
1932 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1933 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1934 PyObject
* _resultobj
;
1936 wxURLDataObject
* _arg0
;
1937 PyObject
* _argo0
= 0;
1938 char *_kwnames
[] = { "self", NULL
};
1941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1952 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1954 wxPyEndAllowThreads(__tstate
);
1955 if (PyErr_Occurred()) return NULL
;
1958 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1960 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1969 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1970 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1971 PyObject
* _resultobj
;
1972 wxURLDataObject
* _arg0
;
1974 PyObject
* _argo0
= 0;
1975 PyObject
* _obj1
= 0;
1976 char *_kwnames
[] = { "self","url", NULL
};
1979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1989 _arg1
= wxString_in_helper(_obj1
);
1994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1995 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1997 wxPyEndAllowThreads(__tstate
);
1998 if (PyErr_Occurred()) return NULL
;
1999 } Py_INCREF(Py_None
);
2000 _resultobj
= Py_None
;
2008 static void *SwigwxClipboardTowxObject(void *ptr
) {
2011 src
= (wxClipboard
*) ptr
;
2012 dest
= (wxObject
*) src
;
2013 return (void *) dest
;
2016 #define new_wxClipboard() (new wxClipboard())
2017 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2019 wxClipboard
* _result
;
2020 char *_kwnames
[] = { NULL
};
2024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2028 _result
= (wxClipboard
*)new_wxClipboard();
2030 wxPyEndAllowThreads(__tstate
);
2031 if (PyErr_Occurred()) return NULL
;
2033 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2034 _resultobj
= Py_BuildValue("s",_ptemp
);
2037 _resultobj
= Py_None
;
2042 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2043 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2044 PyObject
* _resultobj
;
2046 wxClipboard
* _arg0
;
2047 PyObject
* _argo0
= 0;
2048 char *_kwnames
[] = { "self", NULL
};
2051 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2054 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2055 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2061 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2062 _result
= (bool )wxClipboard_Open(_arg0
);
2064 wxPyEndAllowThreads(__tstate
);
2065 if (PyErr_Occurred()) return NULL
;
2066 } _resultobj
= Py_BuildValue("i",_result
);
2070 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2071 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2072 PyObject
* _resultobj
;
2073 wxClipboard
* _arg0
;
2074 PyObject
* _argo0
= 0;
2075 char *_kwnames
[] = { "self", NULL
};
2078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2089 wxClipboard_Close(_arg0
);
2091 wxPyEndAllowThreads(__tstate
);
2092 if (PyErr_Occurred()) return NULL
;
2093 } Py_INCREF(Py_None
);
2094 _resultobj
= Py_None
;
2098 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2099 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2100 PyObject
* _resultobj
;
2102 wxClipboard
* _arg0
;
2103 PyObject
* _argo0
= 0;
2104 char *_kwnames
[] = { "self", NULL
};
2107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2117 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2118 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2120 wxPyEndAllowThreads(__tstate
);
2121 if (PyErr_Occurred()) return NULL
;
2122 } _resultobj
= Py_BuildValue("i",_result
);
2126 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2127 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2128 PyObject
* _resultobj
;
2130 wxClipboard
* _arg0
;
2131 wxDataObject
* _arg1
;
2132 PyObject
* _argo0
= 0;
2133 PyObject
* _argo1
= 0;
2134 char *_kwnames
[] = { "self","data", NULL
};
2137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2147 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2148 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2155 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2157 wxPyEndAllowThreads(__tstate
);
2158 if (PyErr_Occurred()) return NULL
;
2159 } _resultobj
= Py_BuildValue("i",_result
);
2163 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2164 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2165 PyObject
* _resultobj
;
2167 wxClipboard
* _arg0
;
2168 wxDataObject
* _arg1
;
2169 PyObject
* _argo0
= 0;
2170 PyObject
* _argo1
= 0;
2171 char *_kwnames
[] = { "self","data", NULL
};
2174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2184 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2185 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2192 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2194 wxPyEndAllowThreads(__tstate
);
2195 if (PyErr_Occurred()) return NULL
;
2196 } _resultobj
= Py_BuildValue("i",_result
);
2200 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2201 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2202 PyObject
* _resultobj
;
2204 wxClipboard
* _arg0
;
2205 wxDataFormat
* _arg1
;
2206 PyObject
* _argo0
= 0;
2207 PyObject
* _argo1
= 0;
2208 char *_kwnames
[] = { "self","format", NULL
};
2211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2221 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2222 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2228 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2229 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2231 wxPyEndAllowThreads(__tstate
);
2232 if (PyErr_Occurred()) return NULL
;
2233 } _resultobj
= Py_BuildValue("i",_result
);
2237 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2238 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2241 wxClipboard
* _arg0
;
2242 wxDataObject
* _arg1
;
2243 PyObject
* _argo0
= 0;
2244 PyObject
* _argo1
= 0;
2245 char *_kwnames
[] = { "self","data", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2258 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2259 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2265 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2266 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2268 wxPyEndAllowThreads(__tstate
);
2269 if (PyErr_Occurred()) return NULL
;
2270 } _resultobj
= Py_BuildValue("i",_result
);
2274 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2275 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2276 PyObject
* _resultobj
;
2277 wxClipboard
* _arg0
;
2278 PyObject
* _argo0
= 0;
2279 char *_kwnames
[] = { "self", NULL
};
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2292 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2293 wxClipboard_Clear(_arg0
);
2295 wxPyEndAllowThreads(__tstate
);
2296 if (PyErr_Occurred()) return NULL
;
2297 } Py_INCREF(Py_None
);
2298 _resultobj
= Py_None
;
2302 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2303 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2304 PyObject
* _resultobj
;
2306 wxClipboard
* _arg0
;
2307 PyObject
* _argo0
= 0;
2308 char *_kwnames
[] = { "self", NULL
};
2311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2321 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2322 _result
= (bool )wxClipboard_Flush(_arg0
);
2324 wxPyEndAllowThreads(__tstate
);
2325 if (PyErr_Occurred()) return NULL
;
2326 } _resultobj
= Py_BuildValue("i",_result
);
2330 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2331 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2332 PyObject
* _resultobj
;
2333 wxClipboard
* _arg0
;
2334 int _arg1
= (int ) FALSE
;
2335 PyObject
* _argo0
= 0;
2336 char *_kwnames
[] = { "self","primary", NULL
};
2339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2349 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2350 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2352 wxPyEndAllowThreads(__tstate
);
2353 if (PyErr_Occurred()) return NULL
;
2354 } Py_INCREF(Py_None
);
2355 _resultobj
= Py_None
;
2359 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2360 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2361 PyObject
* _resultobj
;
2362 wxPyDropSource
* _result
;
2363 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2364 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2365 PyObject
* _argo0
= 0;
2366 PyObject
* _argo1
= 0;
2367 char *_kwnames
[] = { "win","go", NULL
};
2371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2381 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2382 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2389 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2391 wxPyEndAllowThreads(__tstate
);
2392 if (PyErr_Occurred()) return NULL
;
2394 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2395 _resultobj
= Py_BuildValue("s",_ptemp
);
2398 _resultobj
= Py_None
;
2403 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2404 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2405 PyObject
* _resultobj
;
2406 wxPyDropSource
* _arg0
;
2410 PyObject
* _argo0
= 0;
2411 PyObject
* _obj1
= 0;
2412 PyObject
* _obj2
= 0;
2413 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2433 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2435 wxPyEndAllowThreads(__tstate
);
2436 if (PyErr_Occurred()) return NULL
;
2437 } Py_INCREF(Py_None
);
2438 _resultobj
= Py_None
;
2442 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2443 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2444 PyObject
* _resultobj
;
2445 wxPyDropSource
* _arg0
;
2446 PyObject
* _argo0
= 0;
2447 char *_kwnames
[] = { "self", NULL
};
2450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2461 delete_wxPyDropSource(_arg0
);
2463 wxPyEndAllowThreads(__tstate
);
2464 if (PyErr_Occurred()) return NULL
;
2465 } Py_INCREF(Py_None
);
2466 _resultobj
= Py_None
;
2470 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2471 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2472 PyObject
* _resultobj
;
2473 wxPyDropSource
* _arg0
;
2474 wxDataObject
* _arg1
;
2475 PyObject
* _argo0
= 0;
2476 PyObject
* _argo1
= 0;
2477 char *_kwnames
[] = { "self","data", NULL
};
2480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2490 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2491 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2498 wxDropSource_SetData(_arg0
,*_arg1
);
2500 wxPyEndAllowThreads(__tstate
);
2501 if (PyErr_Occurred()) return NULL
;
2502 } Py_INCREF(Py_None
);
2503 _resultobj
= Py_None
;
2507 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2508 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2509 PyObject
* _resultobj
;
2510 wxDataObject
* _result
;
2511 wxPyDropSource
* _arg0
;
2512 PyObject
* _argo0
= 0;
2513 char *_kwnames
[] = { "self", NULL
};
2517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2528 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2530 wxPyEndAllowThreads(__tstate
);
2531 if (PyErr_Occurred()) return NULL
;
2533 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2534 _resultobj
= Py_BuildValue("s",_ptemp
);
2537 _resultobj
= Py_None
;
2542 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2543 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2544 PyObject
* _resultobj
;
2545 wxPyDropSource
* _arg0
;
2548 PyObject
* _argo0
= 0;
2549 PyObject
* _argo2
= 0;
2550 char *_kwnames
[] = { "self","res","cursor", NULL
};
2553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2563 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2564 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2571 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2573 wxPyEndAllowThreads(__tstate
);
2574 if (PyErr_Occurred()) return NULL
;
2575 } Py_INCREF(Py_None
);
2576 _resultobj
= Py_None
;
2580 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2581 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2583 wxDragResult _result
;
2584 wxPyDropSource
* _arg0
;
2585 int _arg1
= (int ) FALSE
;
2586 PyObject
* _argo0
= 0;
2587 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2601 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2603 wxPyEndAllowThreads(__tstate
);
2604 if (PyErr_Occurred()) return NULL
;
2605 } _resultobj
= Py_BuildValue("i",_result
);
2609 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2610 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
* _resultobj
;
2613 wxPyDropSource
* _arg0
;
2615 PyObject
* _argo0
= 0;
2616 char *_kwnames
[] = { "self","effect", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2630 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2632 wxPyEndAllowThreads(__tstate
);
2633 if (PyErr_Occurred()) return NULL
;
2634 } _resultobj
= Py_BuildValue("i",_result
);
2638 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2639 wxPyDropTarget
*src
;
2641 src
= (wxPyDropTarget
*) ptr
;
2642 dest
= (wxDropTarget
*) src
;
2643 return (void *) dest
;
2646 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2647 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2648 PyObject
* _resultobj
;
2649 wxPyDropTarget
* _result
;
2650 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2651 PyObject
* _argo0
= 0;
2652 char *_kwnames
[] = { "dataObject", NULL
};
2656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2667 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2669 wxPyEndAllowThreads(__tstate
);
2670 if (PyErr_Occurred()) return NULL
;
2672 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2673 _resultobj
= Py_BuildValue("s",_ptemp
);
2676 _resultobj
= Py_None
;
2681 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2682 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2683 PyObject
* _resultobj
;
2684 wxPyDropTarget
* _arg0
;
2687 PyObject
* _argo0
= 0;
2688 PyObject
* _obj1
= 0;
2689 PyObject
* _obj2
= 0;
2690 char *_kwnames
[] = { "self","self","_class", NULL
};
2693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2710 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2712 wxPyEndAllowThreads(__tstate
);
2713 if (PyErr_Occurred()) return NULL
;
2714 } Py_INCREF(Py_None
);
2715 _resultobj
= Py_None
;
2719 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2720 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2721 PyObject
* _resultobj
;
2722 wxPyDropTarget
* _arg0
;
2723 PyObject
* _argo0
= 0;
2724 char *_kwnames
[] = { "self", NULL
};
2727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2738 delete_wxPyDropTarget(_arg0
);
2740 wxPyEndAllowThreads(__tstate
);
2741 if (PyErr_Occurred()) return NULL
;
2742 } Py_INCREF(Py_None
);
2743 _resultobj
= Py_None
;
2747 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2748 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2749 PyObject
* _resultobj
;
2750 wxDataObject
* _result
;
2751 wxPyDropTarget
* _arg0
;
2752 PyObject
* _argo0
= 0;
2753 char *_kwnames
[] = { "self", NULL
};
2757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2768 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2770 wxPyEndAllowThreads(__tstate
);
2771 if (PyErr_Occurred()) return NULL
;
2773 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2774 _resultobj
= Py_BuildValue("s",_ptemp
);
2777 _resultobj
= Py_None
;
2782 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2783 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2784 PyObject
* _resultobj
;
2785 wxPyDropTarget
* _arg0
;
2786 wxDataObject
* _arg1
;
2787 PyObject
* _argo0
= 0;
2788 PyObject
* _argo1
= 0;
2789 char *_kwnames
[] = { "self","dataObject", NULL
};
2792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2802 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2803 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2809 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2810 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2812 wxPyEndAllowThreads(__tstate
);
2813 if (PyErr_Occurred()) return NULL
;
2814 } Py_INCREF(Py_None
);
2815 _resultobj
= Py_None
;
2819 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2820 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2821 PyObject
* _resultobj
;
2822 wxDragResult _result
;
2823 wxPyDropTarget
* _arg0
;
2827 PyObject
* _argo0
= 0;
2828 char *_kwnames
[] = { "self","x","y","def", NULL
};
2831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2841 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2842 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2844 wxPyEndAllowThreads(__tstate
);
2845 if (PyErr_Occurred()) return NULL
;
2846 } _resultobj
= Py_BuildValue("i",_result
);
2850 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2851 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2852 PyObject
* _resultobj
;
2853 wxDragResult _result
;
2854 wxPyDropTarget
* _arg0
;
2858 PyObject
* _argo0
= 0;
2859 char *_kwnames
[] = { "self","x","y","def", NULL
};
2862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2873 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2875 wxPyEndAllowThreads(__tstate
);
2876 if (PyErr_Occurred()) return NULL
;
2877 } _resultobj
= Py_BuildValue("i",_result
);
2881 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2882 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2883 PyObject
* _resultobj
;
2884 wxPyDropTarget
* _arg0
;
2885 PyObject
* _argo0
= 0;
2886 char *_kwnames
[] = { "self", NULL
};
2889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2899 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2900 wxPyDropTarget_base_OnLeave(_arg0
);
2902 wxPyEndAllowThreads(__tstate
);
2903 if (PyErr_Occurred()) return NULL
;
2904 } Py_INCREF(Py_None
);
2905 _resultobj
= Py_None
;
2909 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2910 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2911 PyObject
* _resultobj
;
2913 wxPyDropTarget
* _arg0
;
2916 PyObject
* _argo0
= 0;
2917 char *_kwnames
[] = { "self","x","y", NULL
};
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2931 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2933 wxPyEndAllowThreads(__tstate
);
2934 if (PyErr_Occurred()) return NULL
;
2935 } _resultobj
= Py_BuildValue("i",_result
);
2939 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2940 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2941 PyObject
* _resultobj
;
2943 wxPyDropTarget
* _arg0
;
2944 PyObject
* _argo0
= 0;
2945 char *_kwnames
[] = { "self", NULL
};
2948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2959 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
2961 wxPyEndAllowThreads(__tstate
);
2962 if (PyErr_Occurred()) return NULL
;
2963 } _resultobj
= Py_BuildValue("i",_result
);
2967 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
2968 wxPyTextDropTarget
*src
;
2969 wxPyDropTarget
*dest
;
2970 src
= (wxPyTextDropTarget
*) ptr
;
2971 dest
= (wxPyDropTarget
*) src
;
2972 return (void *) dest
;
2975 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
2976 wxPyTextDropTarget
*src
;
2978 src
= (wxPyTextDropTarget
*) ptr
;
2979 dest
= (wxDropTarget
*) src
;
2980 return (void *) dest
;
2983 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2984 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2985 PyObject
* _resultobj
;
2986 wxPyTextDropTarget
* _result
;
2987 char *_kwnames
[] = { NULL
};
2991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
2994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2995 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
2997 wxPyEndAllowThreads(__tstate
);
2998 if (PyErr_Occurred()) return NULL
;
3000 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3001 _resultobj
= Py_BuildValue("s",_ptemp
);
3004 _resultobj
= Py_None
;
3009 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3010 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3011 PyObject
* _resultobj
;
3012 wxPyTextDropTarget
* _arg0
;
3015 PyObject
* _argo0
= 0;
3016 PyObject
* _obj1
= 0;
3017 PyObject
* _obj2
= 0;
3018 char *_kwnames
[] = { "self","self","_class", NULL
};
3021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3037 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3038 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3040 wxPyEndAllowThreads(__tstate
);
3041 if (PyErr_Occurred()) return NULL
;
3042 } Py_INCREF(Py_None
);
3043 _resultobj
= Py_None
;
3047 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3048 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3049 PyObject
* _resultobj
;
3050 wxDragResult _result
;
3051 wxPyTextDropTarget
* _arg0
;
3055 PyObject
* _argo0
= 0;
3056 char *_kwnames
[] = { "self","x","y","def", NULL
};
3059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3070 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3072 wxPyEndAllowThreads(__tstate
);
3073 if (PyErr_Occurred()) return NULL
;
3074 } _resultobj
= Py_BuildValue("i",_result
);
3078 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3079 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3080 PyObject
* _resultobj
;
3081 wxDragResult _result
;
3082 wxPyTextDropTarget
* _arg0
;
3086 PyObject
* _argo0
= 0;
3087 char *_kwnames
[] = { "self","x","y","def", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3100 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3101 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3103 wxPyEndAllowThreads(__tstate
);
3104 if (PyErr_Occurred()) return NULL
;
3105 } _resultobj
= Py_BuildValue("i",_result
);
3109 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3110 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3112 wxPyTextDropTarget
* _arg0
;
3113 PyObject
* _argo0
= 0;
3114 char *_kwnames
[] = { "self", NULL
};
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3127 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3128 wxTextDropTarget_base_OnLeave(_arg0
);
3130 wxPyEndAllowThreads(__tstate
);
3131 if (PyErr_Occurred()) return NULL
;
3132 } Py_INCREF(Py_None
);
3133 _resultobj
= Py_None
;
3137 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3138 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3139 PyObject
* _resultobj
;
3141 wxPyTextDropTarget
* _arg0
;
3144 PyObject
* _argo0
= 0;
3145 char *_kwnames
[] = { "self","x","y", NULL
};
3148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3159 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3161 wxPyEndAllowThreads(__tstate
);
3162 if (PyErr_Occurred()) return NULL
;
3163 } _resultobj
= Py_BuildValue("i",_result
);
3167 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3168 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3169 PyObject
* _resultobj
;
3170 wxDragResult _result
;
3171 wxPyTextDropTarget
* _arg0
;
3175 PyObject
* _argo0
= 0;
3176 char *_kwnames
[] = { "self","x","y","def", NULL
};
3179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3190 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3192 wxPyEndAllowThreads(__tstate
);
3193 if (PyErr_Occurred()) return NULL
;
3194 } _resultobj
= Py_BuildValue("i",_result
);
3198 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3199 wxPyFileDropTarget
*src
;
3200 wxPyDropTarget
*dest
;
3201 src
= (wxPyFileDropTarget
*) ptr
;
3202 dest
= (wxPyDropTarget
*) src
;
3203 return (void *) dest
;
3206 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3207 wxPyFileDropTarget
*src
;
3209 src
= (wxPyFileDropTarget
*) ptr
;
3210 dest
= (wxDropTarget
*) src
;
3211 return (void *) dest
;
3214 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3215 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3216 PyObject
* _resultobj
;
3217 wxPyFileDropTarget
* _result
;
3218 char *_kwnames
[] = { NULL
};
3222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3226 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3228 wxPyEndAllowThreads(__tstate
);
3229 if (PyErr_Occurred()) return NULL
;
3231 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3232 _resultobj
= Py_BuildValue("s",_ptemp
);
3235 _resultobj
= Py_None
;
3240 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3241 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3242 PyObject
* _resultobj
;
3243 wxPyFileDropTarget
* _arg0
;
3246 PyObject
* _argo0
= 0;
3247 PyObject
* _obj1
= 0;
3248 PyObject
* _obj2
= 0;
3249 char *_kwnames
[] = { "self","self","_class", NULL
};
3252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3269 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3271 wxPyEndAllowThreads(__tstate
);
3272 if (PyErr_Occurred()) return NULL
;
3273 } Py_INCREF(Py_None
);
3274 _resultobj
= Py_None
;
3278 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3279 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3280 PyObject
* _resultobj
;
3281 wxDragResult _result
;
3282 wxPyFileDropTarget
* _arg0
;
3286 PyObject
* _argo0
= 0;
3287 char *_kwnames
[] = { "self","x","y","def", NULL
};
3290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3301 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3303 wxPyEndAllowThreads(__tstate
);
3304 if (PyErr_Occurred()) return NULL
;
3305 } _resultobj
= Py_BuildValue("i",_result
);
3309 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3310 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3311 PyObject
* _resultobj
;
3312 wxDragResult _result
;
3313 wxPyFileDropTarget
* _arg0
;
3317 PyObject
* _argo0
= 0;
3318 char *_kwnames
[] = { "self","x","y","def", NULL
};
3321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3332 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3334 wxPyEndAllowThreads(__tstate
);
3335 if (PyErr_Occurred()) return NULL
;
3336 } _resultobj
= Py_BuildValue("i",_result
);
3340 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3341 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3342 PyObject
* _resultobj
;
3343 wxPyFileDropTarget
* _arg0
;
3344 PyObject
* _argo0
= 0;
3345 char *_kwnames
[] = { "self", NULL
};
3348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3359 wxFileDropTarget_base_OnLeave(_arg0
);
3361 wxPyEndAllowThreads(__tstate
);
3362 if (PyErr_Occurred()) return NULL
;
3363 } Py_INCREF(Py_None
);
3364 _resultobj
= Py_None
;
3368 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3369 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3370 PyObject
* _resultobj
;
3372 wxPyFileDropTarget
* _arg0
;
3375 PyObject
* _argo0
= 0;
3376 char *_kwnames
[] = { "self","x","y", NULL
};
3379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3389 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3390 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3392 wxPyEndAllowThreads(__tstate
);
3393 if (PyErr_Occurred()) return NULL
;
3394 } _resultobj
= Py_BuildValue("i",_result
);
3398 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3399 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3400 PyObject
* _resultobj
;
3401 wxDragResult _result
;
3402 wxPyFileDropTarget
* _arg0
;
3406 PyObject
* _argo0
= 0;
3407 char *_kwnames
[] = { "self","x","y","def", NULL
};
3410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3421 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3423 wxPyEndAllowThreads(__tstate
);
3424 if (PyErr_Occurred()) return NULL
;
3425 } _resultobj
= Py_BuildValue("i",_result
);
3429 static PyMethodDef clip_dndcMethods
[] = {
3430 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3523 * This table is used by the pointer type-checker
3525 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3526 { "_signed_long","_long",0},
3527 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3528 { "_wxPrintQuality","_wxCoord",0},
3529 { "_wxPrintQuality","_int",0},
3530 { "_wxPrintQuality","_signed_int",0},
3531 { "_wxPrintQuality","_unsigned_int",0},
3532 { "_wxPrintQuality","_wxWindowID",0},
3533 { "_wxPrintQuality","_uint",0},
3534 { "_wxPrintQuality","_EBool",0},
3535 { "_wxPrintQuality","_size_t",0},
3536 { "_wxPrintQuality","_time_t",0},
3537 { "_byte","_unsigned_char",0},
3538 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3539 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3540 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3541 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3542 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3543 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3544 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3545 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3546 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3547 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3548 { "_long","_unsigned_long",0},
3549 { "_long","_signed_long",0},
3550 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3551 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3552 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3553 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3554 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3555 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3556 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3557 { "_size_t","_wxCoord",0},
3558 { "_size_t","_wxPrintQuality",0},
3559 { "_size_t","_time_t",0},
3560 { "_size_t","_unsigned_int",0},
3561 { "_size_t","_int",0},
3562 { "_size_t","_wxWindowID",0},
3563 { "_size_t","_uint",0},
3564 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3565 { "_uint","_wxCoord",0},
3566 { "_uint","_wxPrintQuality",0},
3567 { "_uint","_time_t",0},
3568 { "_uint","_size_t",0},
3569 { "_uint","_unsigned_int",0},
3570 { "_uint","_int",0},
3571 { "_uint","_wxWindowID",0},
3572 { "_wxChar","_char",0},
3573 { "_char","_wxChar",0},
3574 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3575 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3576 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3577 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3578 { "_EBool","_wxCoord",0},
3579 { "_EBool","_wxPrintQuality",0},
3580 { "_EBool","_signed_int",0},
3581 { "_EBool","_int",0},
3582 { "_EBool","_wxWindowID",0},
3583 { "_unsigned_long","_long",0},
3584 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3585 { "_signed_int","_wxCoord",0},
3586 { "_signed_int","_wxPrintQuality",0},
3587 { "_signed_int","_EBool",0},
3588 { "_signed_int","_wxWindowID",0},
3589 { "_signed_int","_int",0},
3590 { "_WXTYPE","_short",0},
3591 { "_WXTYPE","_signed_short",0},
3592 { "_WXTYPE","_unsigned_short",0},
3593 { "_unsigned_short","_WXTYPE",0},
3594 { "_unsigned_short","_short",0},
3595 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3596 { "_signed_short","_WXTYPE",0},
3597 { "_signed_short","_short",0},
3598 { "_unsigned_char","_byte",0},
3599 { "_unsigned_int","_wxCoord",0},
3600 { "_unsigned_int","_wxPrintQuality",0},
3601 { "_unsigned_int","_time_t",0},
3602 { "_unsigned_int","_size_t",0},
3603 { "_unsigned_int","_uint",0},
3604 { "_unsigned_int","_wxWindowID",0},
3605 { "_unsigned_int","_int",0},
3606 { "_short","_WXTYPE",0},
3607 { "_short","_unsigned_short",0},
3608 { "_short","_signed_short",0},
3609 { "_wxWindowID","_wxCoord",0},
3610 { "_wxWindowID","_wxPrintQuality",0},
3611 { "_wxWindowID","_time_t",0},
3612 { "_wxWindowID","_size_t",0},
3613 { "_wxWindowID","_EBool",0},
3614 { "_wxWindowID","_uint",0},
3615 { "_wxWindowID","_int",0},
3616 { "_wxWindowID","_signed_int",0},
3617 { "_wxWindowID","_unsigned_int",0},
3618 { "_int","_wxCoord",0},
3619 { "_int","_wxPrintQuality",0},
3620 { "_int","_time_t",0},
3621 { "_int","_size_t",0},
3622 { "_int","_EBool",0},
3623 { "_int","_uint",0},
3624 { "_int","_wxWindowID",0},
3625 { "_int","_unsigned_int",0},
3626 { "_int","_signed_int",0},
3627 { "_time_t","_wxCoord",0},
3628 { "_time_t","_wxPrintQuality",0},
3629 { "_time_t","_unsigned_int",0},
3630 { "_time_t","_int",0},
3631 { "_time_t","_wxWindowID",0},
3632 { "_time_t","_uint",0},
3633 { "_time_t","_size_t",0},
3634 { "_wxCoord","_int",0},
3635 { "_wxCoord","_signed_int",0},
3636 { "_wxCoord","_unsigned_int",0},
3637 { "_wxCoord","_wxWindowID",0},
3638 { "_wxCoord","_uint",0},
3639 { "_wxCoord","_EBool",0},
3640 { "_wxCoord","_size_t",0},
3641 { "_wxCoord","_time_t",0},
3642 { "_wxCoord","_wxPrintQuality",0},
3643 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3644 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3645 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3648 static PyObject
*SWIG_globals
;
3652 SWIGEXPORT(void) initclip_dndc() {
3654 SWIG_globals
= SWIG_newvarlink();
3655 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3656 d
= PyModule_GetDict(m
);
3657 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3658 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3659 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3660 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3661 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3662 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3663 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3664 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3665 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3666 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3667 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3668 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3669 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3670 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3671 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3672 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3673 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3674 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3675 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3676 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3677 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3678 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3679 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3680 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3681 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3682 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3683 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3684 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3687 wxPyTheClipboard
= wxTheClipboard
;
3688 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3689 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3690 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3691 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3692 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3693 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3696 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3697 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);