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 PyObject
* bo
= wxPyConstructObject((void*)&bitmap
, "wxBitmap");
195 m_myInst
.callCallback(Py_BuildValue("(O)", bo
));
198 wxPyEndBlockThreads();
201 // See below in the init function...
202 wxClipboard
* wxPyTheClipboard
;
204 class wxPyDropSource
: public wxDropSource
{
207 wxPyDropSource(wxWindow
*win
= NULL
,
208 const wxCursor
&cursorCopy
= wxNullCursor
,
209 const wxCursor
&cursorMove
= wxNullCursor
,
210 const wxCursor
&cursorStop
= wxNullCursor
)
211 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
213 wxPyDropSource(wxWindow
*win
= NULL
,
214 const wxIcon
&go
= wxNullIcon
)
215 : wxDropSource(win
, go
) {}
217 ~wxPyDropSource() { }
219 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
223 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
226 class wxPyDropTarget
: public wxDropTarget
{
228 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
229 : wxDropTarget(dataObject
) {}
231 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
232 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
234 DEC_PYCALLBACK__(OnLeave
);
235 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
236 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
237 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
238 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
243 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
244 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
246 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
247 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
248 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
249 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
250 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
253 class wxPyTextDropTarget
: public wxTextDropTarget
{
255 wxPyTextDropTarget() {}
257 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
259 DEC_PYCALLBACK__(OnLeave
);
260 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
261 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
262 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
263 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
268 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
269 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
270 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
271 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
273 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
276 class wxPyFileDropTarget
: public wxFileDropTarget
{
278 wxPyFileDropTarget() {}
280 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
282 DEC_PYCALLBACK__(OnLeave
);
283 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
284 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
285 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
286 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
291 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
292 const wxArrayString
& filenames
) {
294 wxPyBeginBlockThreads();
295 if (m_myInst
.findCallback("OnDropFiles")) {
296 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
297 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
300 wxPyEndBlockThreads();
306 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
307 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
308 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
309 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
310 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
315 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
317 wxDataFormat
* _result
;
319 PyObject
* _obj0
= 0;
320 char *_kwnames
[] = { "id", NULL
};
324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
327 _arg0
= wxString_in_helper(_obj0
);
332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
333 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
335 wxPyEndAllowThreads(__tstate
);
336 if (PyErr_Occurred()) return NULL
;
338 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
339 _resultobj
= Py_BuildValue("s",_ptemp
);
342 _resultobj
= Py_None
;
351 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
353 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
357 static PyObject
*_wrap_wxPyFormatInvalid_get() {
361 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
362 pyobj
= PyString_FromString(ptemp
);
366 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
368 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
372 static PyObject
*_wrap_wxPyTheClipboard_get() {
376 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
377 pyobj
= PyString_FromString(ptemp
);
381 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
382 PyObject
* _resultobj
;
385 char *_kwnames
[] = { "res", NULL
};
388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
392 _result
= (bool )wxIsDragResultOk(_arg0
);
394 wxPyEndAllowThreads(__tstate
);
395 if (PyErr_Occurred()) return NULL
;
396 } _resultobj
= Py_BuildValue("i",_result
);
400 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
401 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
402 PyObject
* _resultobj
;
403 wxDataFormat
* _result
;
404 wxDataFormatId _arg0
;
405 char *_kwnames
[] = { "type", NULL
};
409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
412 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
413 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
415 wxPyEndAllowThreads(__tstate
);
416 if (PyErr_Occurred()) return NULL
;
418 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
419 _resultobj
= Py_BuildValue("s",_ptemp
);
422 _resultobj
= Py_None
;
427 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
428 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
430 wxDataFormat
* _arg0
;
431 PyObject
* _argo0
= 0;
432 char *_kwnames
[] = { "self", NULL
};
435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
445 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
446 delete_wxDataFormat(_arg0
);
448 wxPyEndAllowThreads(__tstate
);
449 if (PyErr_Occurred()) return NULL
;
450 } Py_INCREF(Py_None
);
451 _resultobj
= Py_None
;
455 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
456 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
458 wxDataFormat
* _arg0
;
459 wxDataFormatId _arg1
;
460 PyObject
* _argo0
= 0;
461 char *_kwnames
[] = { "self","format", NULL
};
464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
475 wxDataFormat_SetType(_arg0
,_arg1
);
477 wxPyEndAllowThreads(__tstate
);
478 if (PyErr_Occurred()) return NULL
;
479 } Py_INCREF(Py_None
);
480 _resultobj
= Py_None
;
484 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
485 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
486 PyObject
* _resultobj
;
487 wxDataFormatId _result
;
488 wxDataFormat
* _arg0
;
489 PyObject
* _argo0
= 0;
490 char *_kwnames
[] = { "self", NULL
};
493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
504 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
506 wxPyEndAllowThreads(__tstate
);
507 if (PyErr_Occurred()) return NULL
;
508 } _resultobj
= Py_BuildValue("i",_result
);
512 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
513 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
514 PyObject
* _resultobj
;
516 wxDataFormat
* _arg0
;
517 PyObject
* _argo0
= 0;
518 char *_kwnames
[] = { "self", NULL
};
521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
532 _result
= new wxString (wxDataFormat_GetId(_arg0
));
534 wxPyEndAllowThreads(__tstate
);
535 if (PyErr_Occurred()) return NULL
;
538 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
540 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
549 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
550 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
551 PyObject
* _resultobj
;
552 wxDataFormat
* _arg0
;
554 PyObject
* _argo0
= 0;
555 PyObject
* _obj1
= 0;
556 char *_kwnames
[] = { "self","format", NULL
};
559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
569 _arg1
= wxString_in_helper(_obj1
);
574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
575 wxDataFormat_SetId(_arg0
,*_arg1
);
577 wxPyEndAllowThreads(__tstate
);
578 if (PyErr_Occurred()) return NULL
;
579 } Py_INCREF(Py_None
);
580 _resultobj
= Py_None
;
588 #define delete_wxDataObject(_swigobj) (delete _swigobj)
589 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
590 PyObject
* _resultobj
;
591 wxDataObject
* _arg0
;
592 PyObject
* _argo0
= 0;
593 char *_kwnames
[] = { "self", NULL
};
596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
606 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
607 delete_wxDataObject(_arg0
);
609 wxPyEndAllowThreads(__tstate
);
610 if (PyErr_Occurred()) return NULL
;
611 } Py_INCREF(Py_None
);
612 _resultobj
= Py_None
;
616 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
617 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
618 PyObject
* _resultobj
;
619 wxDataFormat
* _result
;
620 wxDataObject
* _arg0
;
621 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
622 PyObject
* _argo0
= 0;
623 char *_kwnames
[] = { "self","dir", NULL
};
627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
638 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
640 wxPyEndAllowThreads(__tstate
);
641 if (PyErr_Occurred()) return NULL
;
642 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
643 _resultobj
= Py_BuildValue("s",_ptemp
);
647 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
648 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
651 wxDataObject
* _arg0
;
652 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
653 PyObject
* _argo0
= 0;
654 char *_kwnames
[] = { "self","dir", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
667 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
668 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
670 wxPyEndAllowThreads(__tstate
);
671 if (PyErr_Occurred()) return NULL
;
672 } _resultobj
= Py_BuildValue("i",_result
);
676 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
677 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
679 wxDataObject
* _arg0
;
680 wxDataFormat
* _arg1
;
681 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
682 PyObject
* _argo0
= 0;
683 PyObject
* _argo1
= 0;
684 char *_kwnames
[] = { "self","formats","dir", NULL
};
687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
697 if (_argo1
== Py_None
) { _arg1
= NULL
; }
698 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
704 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
705 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
707 wxPyEndAllowThreads(__tstate
);
708 if (PyErr_Occurred()) return NULL
;
709 } Py_INCREF(Py_None
);
710 _resultobj
= Py_None
;
714 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
715 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
716 PyObject
* _resultobj
;
718 wxDataObject
* _arg0
;
719 wxDataFormat
* _arg1
;
720 PyObject
* _argo0
= 0;
721 PyObject
* _argo1
= 0;
722 char *_kwnames
[] = { "self","format", NULL
};
725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
735 if (_argo1
== Py_None
) { _arg1
= NULL
; }
736 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
743 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
745 wxPyEndAllowThreads(__tstate
);
746 if (PyErr_Occurred()) return NULL
;
747 } _resultobj
= Py_BuildValue("i",_result
);
751 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
752 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
753 PyObject
* _resultobj
;
755 wxDataObject
* _arg0
;
756 wxDataFormat
* _arg1
;
758 PyObject
* _argo0
= 0;
759 PyObject
* _argo1
= 0;
760 PyObject
* _argo2
= 0;
761 char *_kwnames
[] = { "self","format","buf", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
774 if (_argo1
== Py_None
) { _arg1
= NULL
; }
775 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
781 if (_argo2
== Py_None
) { _arg2
= NULL
; }
782 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
789 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
791 wxPyEndAllowThreads(__tstate
);
792 if (PyErr_Occurred()) return NULL
;
793 } _resultobj
= Py_BuildValue("i",_result
);
797 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
798 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
799 PyObject
* _resultobj
;
801 wxDataObject
* _arg0
;
802 wxDataFormat
* _arg1
;
805 PyObject
* _argo0
= 0;
806 PyObject
* _argo1
= 0;
807 PyObject
* _argo3
= 0;
808 char *_kwnames
[] = { "self","format","len","buf", NULL
};
811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
821 if (_argo1
== Py_None
) { _arg1
= NULL
; }
822 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
828 if (_argo3
== Py_None
) { _arg3
= NULL
; }
829 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
835 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
836 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
838 wxPyEndAllowThreads(__tstate
);
839 if (PyErr_Occurred()) return NULL
;
840 } _resultobj
= Py_BuildValue("i",_result
);
844 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
845 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
846 PyObject
* _resultobj
;
848 wxDataObject
* _arg0
;
849 wxDataFormat
* _arg1
;
850 PyObject
* _argo0
= 0;
851 PyObject
* _argo1
= 0;
852 char *_kwnames
[] = { "self","format", NULL
};
855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
865 if (_argo1
== Py_None
) { _arg1
= NULL
; }
866 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
872 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
873 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
875 wxPyEndAllowThreads(__tstate
);
876 if (PyErr_Occurred()) return NULL
;
877 } _resultobj
= Py_BuildValue("i",_result
);
881 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
882 wxDataObjectSimple
*src
;
884 src
= (wxDataObjectSimple
*) ptr
;
885 dest
= (wxDataObject
*) src
;
886 return (void *) dest
;
889 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
890 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
891 PyObject
* _resultobj
;
892 wxDataObjectSimple
* _result
;
893 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
894 PyObject
* _argo0
= 0;
895 char *_kwnames
[] = { "format", NULL
};
899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
909 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
910 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
912 wxPyEndAllowThreads(__tstate
);
913 if (PyErr_Occurred()) return NULL
;
915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
916 _resultobj
= Py_BuildValue("s",_ptemp
);
919 _resultobj
= Py_None
;
924 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
925 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
926 PyObject
* _resultobj
;
927 wxDataFormat
* _result
;
928 wxDataObjectSimple
* _arg0
;
929 PyObject
* _argo0
= 0;
930 char *_kwnames
[] = { "self", NULL
};
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
944 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
945 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
946 _result
= (wxDataFormat
*) &_result_ref
;
948 wxPyEndAllowThreads(__tstate
);
949 if (PyErr_Occurred()) return NULL
;
951 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
952 _resultobj
= Py_BuildValue("s",_ptemp
);
955 _resultobj
= Py_None
;
960 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
961 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
963 wxDataObjectSimple
* _arg0
;
964 wxDataFormat
* _arg1
;
965 PyObject
* _argo0
= 0;
966 PyObject
* _argo1
= 0;
967 char *_kwnames
[] = { "self","format", NULL
};
970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
980 if (_argo1
== Py_None
) { _arg1
= NULL
; }
981 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
988 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
990 wxPyEndAllowThreads(__tstate
);
991 if (PyErr_Occurred()) return NULL
;
992 } Py_INCREF(Py_None
);
993 _resultobj
= Py_None
;
997 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
998 wxPyDataObjectSimple
*src
;
999 wxDataObjectSimple
*dest
;
1000 src
= (wxPyDataObjectSimple
*) ptr
;
1001 dest
= (wxDataObjectSimple
*) src
;
1002 return (void *) dest
;
1005 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1006 wxPyDataObjectSimple
*src
;
1008 src
= (wxPyDataObjectSimple
*) ptr
;
1009 dest
= (wxDataObject
*) src
;
1010 return (void *) dest
;
1013 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1014 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1015 PyObject
* _resultobj
;
1016 wxPyDataObjectSimple
* _result
;
1017 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1018 PyObject
* _argo0
= 0;
1019 char *_kwnames
[] = { "format", NULL
};
1023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1034 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1036 wxPyEndAllowThreads(__tstate
);
1037 if (PyErr_Occurred()) return NULL
;
1039 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1040 _resultobj
= Py_BuildValue("s",_ptemp
);
1043 _resultobj
= Py_None
;
1048 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1049 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
* _resultobj
;
1051 wxPyDataObjectSimple
* _arg0
;
1054 PyObject
* _argo0
= 0;
1055 PyObject
* _obj1
= 0;
1056 PyObject
* _obj2
= 0;
1057 char *_kwnames
[] = { "self","self","_class", NULL
};
1060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1077 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1079 wxPyEndAllowThreads(__tstate
);
1080 if (PyErr_Occurred()) return NULL
;
1081 } Py_INCREF(Py_None
);
1082 _resultobj
= Py_None
;
1086 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1087 wxDataObjectComposite
*src
;
1089 src
= (wxDataObjectComposite
*) ptr
;
1090 dest
= (wxDataObject
*) src
;
1091 return (void *) dest
;
1094 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1095 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1096 PyObject
* _resultobj
;
1097 wxDataObjectComposite
* _result
;
1098 char *_kwnames
[] = { NULL
};
1102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1106 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1108 wxPyEndAllowThreads(__tstate
);
1109 if (PyErr_Occurred()) return NULL
;
1111 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1112 _resultobj
= Py_BuildValue("s",_ptemp
);
1115 _resultobj
= Py_None
;
1120 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1121 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1122 PyObject
* _resultobj
;
1123 wxDataObjectComposite
* _arg0
;
1124 wxDataObjectSimple
* _arg1
;
1125 int _arg2
= (int ) FALSE
;
1126 PyObject
* _argo0
= 0;
1127 PyObject
* _argo1
= 0;
1128 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1141 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1142 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1149 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1151 wxPyEndAllowThreads(__tstate
);
1152 if (PyErr_Occurred()) return NULL
;
1153 } Py_INCREF(Py_None
);
1154 _resultobj
= Py_None
;
1158 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1159 wxTextDataObject
*src
;
1160 wxDataObjectSimple
*dest
;
1161 src
= (wxTextDataObject
*) ptr
;
1162 dest
= (wxDataObjectSimple
*) src
;
1163 return (void *) dest
;
1166 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1167 wxTextDataObject
*src
;
1169 src
= (wxTextDataObject
*) ptr
;
1170 dest
= (wxDataObject
*) src
;
1171 return (void *) dest
;
1174 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1175 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1176 PyObject
* _resultobj
;
1177 wxTextDataObject
* _result
;
1178 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1179 PyObject
* _obj0
= 0;
1180 char *_kwnames
[] = { "text", NULL
};
1184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1188 _arg0
= wxString_in_helper(_obj0
);
1193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1194 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1196 wxPyEndAllowThreads(__tstate
);
1197 if (PyErr_Occurred()) return NULL
;
1199 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1200 _resultobj
= Py_BuildValue("s",_ptemp
);
1203 _resultobj
= Py_None
;
1212 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1213 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1214 PyObject
* _resultobj
;
1216 wxTextDataObject
* _arg0
;
1217 PyObject
* _argo0
= 0;
1218 char *_kwnames
[] = { "self", NULL
};
1221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1232 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1234 wxPyEndAllowThreads(__tstate
);
1235 if (PyErr_Occurred()) return NULL
;
1236 } _resultobj
= Py_BuildValue("i",_result
);
1240 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1241 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1242 PyObject
* _resultobj
;
1244 wxTextDataObject
* _arg0
;
1245 PyObject
* _argo0
= 0;
1246 char *_kwnames
[] = { "self", NULL
};
1249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1260 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1262 wxPyEndAllowThreads(__tstate
);
1263 if (PyErr_Occurred()) return NULL
;
1266 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1268 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1277 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1278 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1279 PyObject
* _resultobj
;
1280 wxTextDataObject
* _arg0
;
1282 PyObject
* _argo0
= 0;
1283 PyObject
* _obj1
= 0;
1284 char *_kwnames
[] = { "self","text", NULL
};
1287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1297 _arg1
= wxString_in_helper(_obj1
);
1302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1303 wxTextDataObject_SetText(_arg0
,*_arg1
);
1305 wxPyEndAllowThreads(__tstate
);
1306 if (PyErr_Occurred()) return NULL
;
1307 } Py_INCREF(Py_None
);
1308 _resultobj
= Py_None
;
1316 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1317 wxPyTextDataObject
*src
;
1318 wxTextDataObject
*dest
;
1319 src
= (wxPyTextDataObject
*) ptr
;
1320 dest
= (wxTextDataObject
*) src
;
1321 return (void *) dest
;
1324 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1325 wxPyTextDataObject
*src
;
1326 wxDataObjectSimple
*dest
;
1327 src
= (wxPyTextDataObject
*) ptr
;
1328 dest
= (wxDataObjectSimple
*) src
;
1329 return (void *) dest
;
1332 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1333 wxPyTextDataObject
*src
;
1335 src
= (wxPyTextDataObject
*) ptr
;
1336 dest
= (wxDataObject
*) src
;
1337 return (void *) dest
;
1340 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1341 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1342 PyObject
* _resultobj
;
1343 wxPyTextDataObject
* _result
;
1344 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1345 PyObject
* _obj0
= 0;
1346 char *_kwnames
[] = { "text", NULL
};
1350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1354 _arg0
= wxString_in_helper(_obj0
);
1359 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1360 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1362 wxPyEndAllowThreads(__tstate
);
1363 if (PyErr_Occurred()) return NULL
;
1365 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1366 _resultobj
= Py_BuildValue("s",_ptemp
);
1369 _resultobj
= Py_None
;
1378 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1379 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1380 PyObject
* _resultobj
;
1381 wxPyTextDataObject
* _arg0
;
1384 PyObject
* _argo0
= 0;
1385 PyObject
* _obj1
= 0;
1386 PyObject
* _obj2
= 0;
1387 char *_kwnames
[] = { "self","self","_class", NULL
};
1390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1407 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1409 wxPyEndAllowThreads(__tstate
);
1410 if (PyErr_Occurred()) return NULL
;
1411 } Py_INCREF(Py_None
);
1412 _resultobj
= Py_None
;
1416 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1417 wxBitmapDataObject
*src
;
1418 wxDataObjectSimple
*dest
;
1419 src
= (wxBitmapDataObject
*) ptr
;
1420 dest
= (wxDataObjectSimple
*) src
;
1421 return (void *) dest
;
1424 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1425 wxBitmapDataObject
*src
;
1427 src
= (wxBitmapDataObject
*) ptr
;
1428 dest
= (wxDataObject
*) src
;
1429 return (void *) dest
;
1432 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1433 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1434 PyObject
* _resultobj
;
1435 wxBitmapDataObject
* _result
;
1436 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1437 PyObject
* _argo0
= 0;
1438 char *_kwnames
[] = { "bitmap", NULL
};
1442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1453 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1455 wxPyEndAllowThreads(__tstate
);
1456 if (PyErr_Occurred()) return NULL
;
1458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1459 _resultobj
= Py_BuildValue("s",_ptemp
);
1462 _resultobj
= Py_None
;
1467 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1468 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1469 PyObject
* _resultobj
;
1471 wxBitmapDataObject
* _arg0
;
1472 PyObject
* _argo0
= 0;
1473 char *_kwnames
[] = { "self", NULL
};
1477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1488 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1490 wxPyEndAllowThreads(__tstate
);
1491 if (PyErr_Occurred()) return NULL
;
1492 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1493 _resultobj
= Py_BuildValue("s",_ptemp
);
1497 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1498 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1499 PyObject
* _resultobj
;
1500 wxBitmapDataObject
* _arg0
;
1502 PyObject
* _argo0
= 0;
1503 PyObject
* _argo1
= 0;
1504 char *_kwnames
[] = { "self","bitmap", NULL
};
1507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1517 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1525 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1527 wxPyEndAllowThreads(__tstate
);
1528 if (PyErr_Occurred()) return NULL
;
1529 } Py_INCREF(Py_None
);
1530 _resultobj
= Py_None
;
1534 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1535 wxPyBitmapDataObject
*src
;
1536 wxBitmapDataObject
*dest
;
1537 src
= (wxPyBitmapDataObject
*) ptr
;
1538 dest
= (wxBitmapDataObject
*) src
;
1539 return (void *) dest
;
1542 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1543 wxPyBitmapDataObject
*src
;
1544 wxDataObjectSimple
*dest
;
1545 src
= (wxPyBitmapDataObject
*) ptr
;
1546 dest
= (wxDataObjectSimple
*) src
;
1547 return (void *) dest
;
1550 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1551 wxPyBitmapDataObject
*src
;
1553 src
= (wxPyBitmapDataObject
*) ptr
;
1554 dest
= (wxDataObject
*) src
;
1555 return (void *) dest
;
1558 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1559 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1560 PyObject
* _resultobj
;
1561 wxPyBitmapDataObject
* _result
;
1562 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1563 PyObject
* _argo0
= 0;
1564 char *_kwnames
[] = { "bitmap", NULL
};
1568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1578 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1579 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1581 wxPyEndAllowThreads(__tstate
);
1582 if (PyErr_Occurred()) return NULL
;
1584 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1585 _resultobj
= Py_BuildValue("s",_ptemp
);
1588 _resultobj
= Py_None
;
1593 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1594 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1595 PyObject
* _resultobj
;
1596 wxPyBitmapDataObject
* _arg0
;
1599 PyObject
* _argo0
= 0;
1600 PyObject
* _obj1
= 0;
1601 PyObject
* _obj2
= 0;
1602 char *_kwnames
[] = { "self","self","_class", NULL
};
1605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1621 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1622 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1624 wxPyEndAllowThreads(__tstate
);
1625 if (PyErr_Occurred()) return NULL
;
1626 } Py_INCREF(Py_None
);
1627 _resultobj
= Py_None
;
1631 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1632 wxFileDataObject
*src
;
1633 wxDataObjectSimple
*dest
;
1634 src
= (wxFileDataObject
*) ptr
;
1635 dest
= (wxDataObjectSimple
*) src
;
1636 return (void *) dest
;
1639 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1640 wxFileDataObject
*src
;
1642 src
= (wxFileDataObject
*) ptr
;
1643 dest
= (wxDataObject
*) src
;
1644 return (void *) dest
;
1647 #define new_wxFileDataObject() (new wxFileDataObject())
1648 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1649 PyObject
* _resultobj
;
1650 wxFileDataObject
* _result
;
1651 char *_kwnames
[] = { NULL
};
1655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1659 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1661 wxPyEndAllowThreads(__tstate
);
1662 if (PyErr_Occurred()) return NULL
;
1664 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1665 _resultobj
= Py_BuildValue("s",_ptemp
);
1668 _resultobj
= Py_None
;
1673 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1674 const wxArrayString
& strings
= self
->GetFilenames();
1675 return wxArrayString2PyList_helper(strings
);
1677 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1678 PyObject
* _resultobj
;
1680 wxFileDataObject
* _arg0
;
1681 PyObject
* _argo0
= 0;
1682 char *_kwnames
[] = { "self", NULL
};
1685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1696 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1698 wxPyEndAllowThreads(__tstate
);
1699 if (PyErr_Occurred()) return NULL
;
1701 _resultobj
= _result
;
1706 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1707 wxCustomDataObject
*src
;
1708 wxDataObjectSimple
*dest
;
1709 src
= (wxCustomDataObject
*) ptr
;
1710 dest
= (wxDataObjectSimple
*) src
;
1711 return (void *) dest
;
1714 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1715 wxCustomDataObject
*src
;
1717 src
= (wxCustomDataObject
*) ptr
;
1718 dest
= (wxDataObject
*) src
;
1719 return (void *) dest
;
1722 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1723 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1724 PyObject
* _resultobj
;
1725 wxCustomDataObject
* _result
;
1726 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1727 PyObject
* _argo0
= 0;
1728 char *_kwnames
[] = { "format", NULL
};
1732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1742 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1743 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1745 wxPyEndAllowThreads(__tstate
);
1746 if (PyErr_Occurred()) return NULL
;
1748 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1749 _resultobj
= Py_BuildValue("s",_ptemp
);
1752 _resultobj
= Py_None
;
1757 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1758 if (PyString_Check(data
)) {
1759 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1762 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1763 PyObject
* _resultobj
;
1764 wxCustomDataObject
* _arg0
;
1766 PyObject
* _argo0
= 0;
1767 PyObject
* _obj1
= 0;
1768 char *_kwnames
[] = { "self","data", NULL
};
1771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1785 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1787 wxPyEndAllowThreads(__tstate
);
1788 if (PyErr_Occurred()) return NULL
;
1789 } Py_INCREF(Py_None
);
1790 _resultobj
= Py_None
;
1794 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1795 if (PyString_Check(data
)) {
1796 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1800 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1801 PyObject
* _resultobj
;
1803 wxCustomDataObject
* _arg0
;
1805 PyObject
* _argo0
= 0;
1806 PyObject
* _obj1
= 0;
1807 char *_kwnames
[] = { "self","data", NULL
};
1810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1824 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1826 wxPyEndAllowThreads(__tstate
);
1827 if (PyErr_Occurred()) return NULL
;
1828 } _resultobj
= Py_BuildValue("i",_result
);
1832 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1833 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1834 PyObject
* _resultobj
;
1836 wxCustomDataObject
* _arg0
;
1837 PyObject
* _argo0
= 0;
1838 char *_kwnames
[] = { "self", NULL
};
1841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1851 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1852 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1854 wxPyEndAllowThreads(__tstate
);
1855 if (PyErr_Occurred()) return NULL
;
1856 } _resultobj
= Py_BuildValue("i",_result
);
1860 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1861 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1863 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1864 PyObject
* _resultobj
;
1866 wxCustomDataObject
* _arg0
;
1867 PyObject
* _argo0
= 0;
1868 char *_kwnames
[] = { "self", NULL
};
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1882 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1884 wxPyEndAllowThreads(__tstate
);
1885 if (PyErr_Occurred()) return NULL
;
1887 _resultobj
= _result
;
1892 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1893 wxURLDataObject
*src
;
1894 wxDataObjectComposite
*dest
;
1895 src
= (wxURLDataObject
*) ptr
;
1896 dest
= (wxDataObjectComposite
*) src
;
1897 return (void *) dest
;
1900 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1901 wxURLDataObject
*src
;
1903 src
= (wxURLDataObject
*) ptr
;
1904 dest
= (wxDataObject
*) src
;
1905 return (void *) dest
;
1908 #define new_wxURLDataObject() (new wxURLDataObject())
1909 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1910 PyObject
* _resultobj
;
1911 wxURLDataObject
* _result
;
1912 char *_kwnames
[] = { NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1920 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1922 wxPyEndAllowThreads(__tstate
);
1923 if (PyErr_Occurred()) return NULL
;
1925 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1926 _resultobj
= Py_BuildValue("s",_ptemp
);
1929 _resultobj
= Py_None
;
1934 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1935 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1936 PyObject
* _resultobj
;
1938 wxURLDataObject
* _arg0
;
1939 PyObject
* _argo0
= 0;
1940 char *_kwnames
[] = { "self", NULL
};
1943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1953 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1954 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1956 wxPyEndAllowThreads(__tstate
);
1957 if (PyErr_Occurred()) return NULL
;
1960 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1962 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1971 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1972 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1973 PyObject
* _resultobj
;
1974 wxURLDataObject
* _arg0
;
1976 PyObject
* _argo0
= 0;
1977 PyObject
* _obj1
= 0;
1978 char *_kwnames
[] = { "self","url", NULL
};
1981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1991 _arg1
= wxString_in_helper(_obj1
);
1996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1997 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1999 wxPyEndAllowThreads(__tstate
);
2000 if (PyErr_Occurred()) return NULL
;
2001 } Py_INCREF(Py_None
);
2002 _resultobj
= Py_None
;
2010 static void *SwigwxClipboardTowxObject(void *ptr
) {
2013 src
= (wxClipboard
*) ptr
;
2014 dest
= (wxObject
*) src
;
2015 return (void *) dest
;
2018 #define new_wxClipboard() (new wxClipboard())
2019 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2020 PyObject
* _resultobj
;
2021 wxClipboard
* _result
;
2022 char *_kwnames
[] = { NULL
};
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2030 _result
= (wxClipboard
*)new_wxClipboard();
2032 wxPyEndAllowThreads(__tstate
);
2033 if (PyErr_Occurred()) return NULL
;
2035 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2036 _resultobj
= Py_BuildValue("s",_ptemp
);
2039 _resultobj
= Py_None
;
2044 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2045 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2048 wxClipboard
* _arg0
;
2049 PyObject
* _argo0
= 0;
2050 char *_kwnames
[] = { "self", NULL
};
2053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2064 _result
= (bool )wxClipboard_Open(_arg0
);
2066 wxPyEndAllowThreads(__tstate
);
2067 if (PyErr_Occurred()) return NULL
;
2068 } _resultobj
= Py_BuildValue("i",_result
);
2072 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2073 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2074 PyObject
* _resultobj
;
2075 wxClipboard
* _arg0
;
2076 PyObject
* _argo0
= 0;
2077 char *_kwnames
[] = { "self", NULL
};
2080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2091 wxClipboard_Close(_arg0
);
2093 wxPyEndAllowThreads(__tstate
);
2094 if (PyErr_Occurred()) return NULL
;
2095 } Py_INCREF(Py_None
);
2096 _resultobj
= Py_None
;
2100 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2101 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2102 PyObject
* _resultobj
;
2104 wxClipboard
* _arg0
;
2105 PyObject
* _argo0
= 0;
2106 char *_kwnames
[] = { "self", NULL
};
2109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2120 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2122 wxPyEndAllowThreads(__tstate
);
2123 if (PyErr_Occurred()) return NULL
;
2124 } _resultobj
= Py_BuildValue("i",_result
);
2128 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2129 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2130 PyObject
* _resultobj
;
2132 wxClipboard
* _arg0
;
2133 wxDataObject
* _arg1
;
2134 PyObject
* _argo0
= 0;
2135 PyObject
* _argo1
= 0;
2136 char *_kwnames
[] = { "self","data", NULL
};
2139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2149 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2150 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2157 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2159 wxPyEndAllowThreads(__tstate
);
2160 if (PyErr_Occurred()) return NULL
;
2161 } _resultobj
= Py_BuildValue("i",_result
);
2165 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2166 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2167 PyObject
* _resultobj
;
2169 wxClipboard
* _arg0
;
2170 wxDataObject
* _arg1
;
2171 PyObject
* _argo0
= 0;
2172 PyObject
* _argo1
= 0;
2173 char *_kwnames
[] = { "self","data", NULL
};
2176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2186 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2187 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2193 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2194 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2196 wxPyEndAllowThreads(__tstate
);
2197 if (PyErr_Occurred()) return NULL
;
2198 } _resultobj
= Py_BuildValue("i",_result
);
2202 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2203 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
* _resultobj
;
2206 wxClipboard
* _arg0
;
2207 wxDataFormat
* _arg1
;
2208 PyObject
* _argo0
= 0;
2209 PyObject
* _argo1
= 0;
2210 char *_kwnames
[] = { "self","format", NULL
};
2213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2223 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } _resultobj
= Py_BuildValue("i",_result
);
2239 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2240 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2243 wxClipboard
* _arg0
;
2244 wxDataObject
* _arg1
;
2245 PyObject
* _argo0
= 0;
2246 PyObject
* _argo1
= 0;
2247 char *_kwnames
[] = { "self","data", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2260 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2261 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2267 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2268 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2270 wxPyEndAllowThreads(__tstate
);
2271 if (PyErr_Occurred()) return NULL
;
2272 } _resultobj
= Py_BuildValue("i",_result
);
2276 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2277 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2278 PyObject
* _resultobj
;
2279 wxClipboard
* _arg0
;
2280 PyObject
* _argo0
= 0;
2281 char *_kwnames
[] = { "self", NULL
};
2284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2295 wxClipboard_Clear(_arg0
);
2297 wxPyEndAllowThreads(__tstate
);
2298 if (PyErr_Occurred()) return NULL
;
2299 } Py_INCREF(Py_None
);
2300 _resultobj
= Py_None
;
2304 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2305 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2308 wxClipboard
* _arg0
;
2309 PyObject
* _argo0
= 0;
2310 char *_kwnames
[] = { "self", NULL
};
2313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2324 _result
= (bool )wxClipboard_Flush(_arg0
);
2326 wxPyEndAllowThreads(__tstate
);
2327 if (PyErr_Occurred()) return NULL
;
2328 } _resultobj
= Py_BuildValue("i",_result
);
2332 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2333 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2334 PyObject
* _resultobj
;
2335 wxClipboard
* _arg0
;
2336 int _arg1
= (int ) FALSE
;
2337 PyObject
* _argo0
= 0;
2338 char *_kwnames
[] = { "self","primary", NULL
};
2341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2352 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2354 wxPyEndAllowThreads(__tstate
);
2355 if (PyErr_Occurred()) return NULL
;
2356 } Py_INCREF(Py_None
);
2357 _resultobj
= Py_None
;
2361 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2362 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2363 PyObject
* _resultobj
;
2364 wxPyDropSource
* _result
;
2365 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2366 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2367 PyObject
* _argo0
= 0;
2368 PyObject
* _argo1
= 0;
2369 char *_kwnames
[] = { "win","go", NULL
};
2373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2383 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2384 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2391 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2393 wxPyEndAllowThreads(__tstate
);
2394 if (PyErr_Occurred()) return NULL
;
2396 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2397 _resultobj
= Py_BuildValue("s",_ptemp
);
2400 _resultobj
= Py_None
;
2405 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2406 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2407 PyObject
* _resultobj
;
2408 wxPyDropSource
* _arg0
;
2412 PyObject
* _argo0
= 0;
2413 PyObject
* _obj1
= 0;
2414 PyObject
* _obj2
= 0;
2415 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2434 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2435 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2437 wxPyEndAllowThreads(__tstate
);
2438 if (PyErr_Occurred()) return NULL
;
2439 } Py_INCREF(Py_None
);
2440 _resultobj
= Py_None
;
2444 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2445 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2446 PyObject
* _resultobj
;
2447 wxPyDropSource
* _arg0
;
2448 PyObject
* _argo0
= 0;
2449 char *_kwnames
[] = { "self", NULL
};
2452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 delete_wxPyDropSource(_arg0
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) return NULL
;
2467 } Py_INCREF(Py_None
);
2468 _resultobj
= Py_None
;
2472 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2473 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2474 PyObject
* _resultobj
;
2475 wxPyDropSource
* _arg0
;
2476 wxDataObject
* _arg1
;
2477 PyObject
* _argo0
= 0;
2478 PyObject
* _argo1
= 0;
2479 char *_kwnames
[] = { "self","data", NULL
};
2482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2492 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2493 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2499 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2500 wxDropSource_SetData(_arg0
,*_arg1
);
2502 wxPyEndAllowThreads(__tstate
);
2503 if (PyErr_Occurred()) return NULL
;
2504 } Py_INCREF(Py_None
);
2505 _resultobj
= Py_None
;
2509 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2510 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2511 PyObject
* _resultobj
;
2512 wxDataObject
* _result
;
2513 wxPyDropSource
* _arg0
;
2514 PyObject
* _argo0
= 0;
2515 char *_kwnames
[] = { "self", NULL
};
2519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2529 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2530 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2532 wxPyEndAllowThreads(__tstate
);
2533 if (PyErr_Occurred()) return NULL
;
2535 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2536 _resultobj
= Py_BuildValue("s",_ptemp
);
2539 _resultobj
= Py_None
;
2544 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2545 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2546 PyObject
* _resultobj
;
2547 wxPyDropSource
* _arg0
;
2550 PyObject
* _argo0
= 0;
2551 PyObject
* _argo2
= 0;
2552 char *_kwnames
[] = { "self","res","cursor", NULL
};
2555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2565 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2566 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2572 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2573 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2575 wxPyEndAllowThreads(__tstate
);
2576 if (PyErr_Occurred()) return NULL
;
2577 } Py_INCREF(Py_None
);
2578 _resultobj
= Py_None
;
2582 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2583 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2585 wxDragResult _result
;
2586 wxPyDropSource
* _arg0
;
2587 int _arg1
= (int ) (wxDrag_CopyOnly
);
2588 PyObject
* _argo0
= 0;
2589 char *_kwnames
[] = { "self","flags", NULL
};
2592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2603 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2605 wxPyEndAllowThreads(__tstate
);
2606 if (PyErr_Occurred()) return NULL
;
2607 } _resultobj
= Py_BuildValue("i",_result
);
2611 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2612 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2613 PyObject
* _resultobj
;
2615 wxPyDropSource
* _arg0
;
2617 PyObject
* _argo0
= 0;
2618 char *_kwnames
[] = { "self","effect", NULL
};
2621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2632 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2634 wxPyEndAllowThreads(__tstate
);
2635 if (PyErr_Occurred()) return NULL
;
2636 } _resultobj
= Py_BuildValue("i",_result
);
2640 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2641 wxPyDropTarget
*src
;
2643 src
= (wxPyDropTarget
*) ptr
;
2644 dest
= (wxDropTarget
*) src
;
2645 return (void *) dest
;
2648 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2649 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2650 PyObject
* _resultobj
;
2651 wxPyDropTarget
* _result
;
2652 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2653 PyObject
* _argo0
= 0;
2654 char *_kwnames
[] = { "dataObject", NULL
};
2658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2669 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2671 wxPyEndAllowThreads(__tstate
);
2672 if (PyErr_Occurred()) return NULL
;
2674 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2675 _resultobj
= Py_BuildValue("s",_ptemp
);
2678 _resultobj
= Py_None
;
2683 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2684 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2685 PyObject
* _resultobj
;
2686 wxPyDropTarget
* _arg0
;
2689 PyObject
* _argo0
= 0;
2690 PyObject
* _obj1
= 0;
2691 PyObject
* _obj2
= 0;
2692 char *_kwnames
[] = { "self","self","_class", NULL
};
2695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2711 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2712 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2714 wxPyEndAllowThreads(__tstate
);
2715 if (PyErr_Occurred()) return NULL
;
2716 } Py_INCREF(Py_None
);
2717 _resultobj
= Py_None
;
2721 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2722 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2723 PyObject
* _resultobj
;
2724 wxPyDropTarget
* _arg0
;
2725 PyObject
* _argo0
= 0;
2726 char *_kwnames
[] = { "self", NULL
};
2729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2739 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2740 delete_wxPyDropTarget(_arg0
);
2742 wxPyEndAllowThreads(__tstate
);
2743 if (PyErr_Occurred()) return NULL
;
2744 } Py_INCREF(Py_None
);
2745 _resultobj
= Py_None
;
2749 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2750 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2751 PyObject
* _resultobj
;
2752 wxDataObject
* _result
;
2753 wxPyDropTarget
* _arg0
;
2754 PyObject
* _argo0
= 0;
2755 char *_kwnames
[] = { "self", NULL
};
2759 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2762 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2763 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2764 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2769 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2770 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2772 wxPyEndAllowThreads(__tstate
);
2773 if (PyErr_Occurred()) return NULL
;
2775 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2776 _resultobj
= Py_BuildValue("s",_ptemp
);
2779 _resultobj
= Py_None
;
2784 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2785 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2787 wxPyDropTarget
* _arg0
;
2788 wxDataObject
* _arg1
;
2789 PyObject
* _argo0
= 0;
2790 PyObject
* _argo1
= 0;
2791 char *_kwnames
[] = { "self","dataObject", NULL
};
2794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2804 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2805 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2811 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2812 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2814 wxPyEndAllowThreads(__tstate
);
2815 if (PyErr_Occurred()) return NULL
;
2816 } Py_INCREF(Py_None
);
2817 _resultobj
= Py_None
;
2821 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2822 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2823 PyObject
* _resultobj
;
2824 wxDragResult _result
;
2825 wxPyDropTarget
* _arg0
;
2829 PyObject
* _argo0
= 0;
2830 char *_kwnames
[] = { "self","x","y","def", NULL
};
2833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2843 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2844 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2846 wxPyEndAllowThreads(__tstate
);
2847 if (PyErr_Occurred()) return NULL
;
2848 } _resultobj
= Py_BuildValue("i",_result
);
2852 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2853 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2854 PyObject
* _resultobj
;
2855 wxDragResult _result
;
2856 wxPyDropTarget
* _arg0
;
2860 PyObject
* _argo0
= 0;
2861 char *_kwnames
[] = { "self","x","y","def", NULL
};
2864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2875 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2877 wxPyEndAllowThreads(__tstate
);
2878 if (PyErr_Occurred()) return NULL
;
2879 } _resultobj
= Py_BuildValue("i",_result
);
2883 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2884 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2885 PyObject
* _resultobj
;
2886 wxPyDropTarget
* _arg0
;
2887 PyObject
* _argo0
= 0;
2888 char *_kwnames
[] = { "self", NULL
};
2891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2901 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2902 wxPyDropTarget_base_OnLeave(_arg0
);
2904 wxPyEndAllowThreads(__tstate
);
2905 if (PyErr_Occurred()) return NULL
;
2906 } Py_INCREF(Py_None
);
2907 _resultobj
= Py_None
;
2911 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2912 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2913 PyObject
* _resultobj
;
2915 wxPyDropTarget
* _arg0
;
2918 PyObject
* _argo0
= 0;
2919 char *_kwnames
[] = { "self","x","y", NULL
};
2922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2933 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2935 wxPyEndAllowThreads(__tstate
);
2936 if (PyErr_Occurred()) return NULL
;
2937 } _resultobj
= Py_BuildValue("i",_result
);
2941 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2942 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2943 PyObject
* _resultobj
;
2945 wxPyDropTarget
* _arg0
;
2946 PyObject
* _argo0
= 0;
2947 char *_kwnames
[] = { "self", NULL
};
2950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2961 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
2963 wxPyEndAllowThreads(__tstate
);
2964 if (PyErr_Occurred()) return NULL
;
2965 } _resultobj
= Py_BuildValue("i",_result
);
2969 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
2970 wxPyTextDropTarget
*src
;
2971 wxPyDropTarget
*dest
;
2972 src
= (wxPyTextDropTarget
*) ptr
;
2973 dest
= (wxPyDropTarget
*) src
;
2974 return (void *) dest
;
2977 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
2978 wxPyTextDropTarget
*src
;
2980 src
= (wxPyTextDropTarget
*) ptr
;
2981 dest
= (wxDropTarget
*) src
;
2982 return (void *) dest
;
2985 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2986 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2987 PyObject
* _resultobj
;
2988 wxPyTextDropTarget
* _result
;
2989 char *_kwnames
[] = { NULL
};
2993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
2996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2997 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
2999 wxPyEndAllowThreads(__tstate
);
3000 if (PyErr_Occurred()) return NULL
;
3002 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3003 _resultobj
= Py_BuildValue("s",_ptemp
);
3006 _resultobj
= Py_None
;
3011 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3012 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3013 PyObject
* _resultobj
;
3014 wxPyTextDropTarget
* _arg0
;
3017 PyObject
* _argo0
= 0;
3018 PyObject
* _obj1
= 0;
3019 PyObject
* _obj2
= 0;
3020 char *_kwnames
[] = { "self","self","_class", NULL
};
3023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3040 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3042 wxPyEndAllowThreads(__tstate
);
3043 if (PyErr_Occurred()) return NULL
;
3044 } Py_INCREF(Py_None
);
3045 _resultobj
= Py_None
;
3049 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3050 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3051 PyObject
* _resultobj
;
3052 wxDragResult _result
;
3053 wxPyTextDropTarget
* _arg0
;
3057 PyObject
* _argo0
= 0;
3058 char *_kwnames
[] = { "self","x","y","def", NULL
};
3061 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3064 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3065 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3066 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3071 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3072 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3074 wxPyEndAllowThreads(__tstate
);
3075 if (PyErr_Occurred()) return NULL
;
3076 } _resultobj
= Py_BuildValue("i",_result
);
3080 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3081 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3082 PyObject
* _resultobj
;
3083 wxDragResult _result
;
3084 wxPyTextDropTarget
* _arg0
;
3088 PyObject
* _argo0
= 0;
3089 char *_kwnames
[] = { "self","x","y","def", NULL
};
3092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3103 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3105 wxPyEndAllowThreads(__tstate
);
3106 if (PyErr_Occurred()) return NULL
;
3107 } _resultobj
= Py_BuildValue("i",_result
);
3111 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3112 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3113 PyObject
* _resultobj
;
3114 wxPyTextDropTarget
* _arg0
;
3115 PyObject
* _argo0
= 0;
3116 char *_kwnames
[] = { "self", NULL
};
3119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3129 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3130 wxTextDropTarget_base_OnLeave(_arg0
);
3132 wxPyEndAllowThreads(__tstate
);
3133 if (PyErr_Occurred()) return NULL
;
3134 } Py_INCREF(Py_None
);
3135 _resultobj
= Py_None
;
3139 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3140 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3141 PyObject
* _resultobj
;
3143 wxPyTextDropTarget
* _arg0
;
3146 PyObject
* _argo0
= 0;
3147 char *_kwnames
[] = { "self","x","y", NULL
};
3150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3161 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3163 wxPyEndAllowThreads(__tstate
);
3164 if (PyErr_Occurred()) return NULL
;
3165 } _resultobj
= Py_BuildValue("i",_result
);
3169 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3170 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3171 PyObject
* _resultobj
;
3172 wxDragResult _result
;
3173 wxPyTextDropTarget
* _arg0
;
3177 PyObject
* _argo0
= 0;
3178 char *_kwnames
[] = { "self","x","y","def", NULL
};
3181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3192 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3194 wxPyEndAllowThreads(__tstate
);
3195 if (PyErr_Occurred()) return NULL
;
3196 } _resultobj
= Py_BuildValue("i",_result
);
3200 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3201 wxPyFileDropTarget
*src
;
3202 wxPyDropTarget
*dest
;
3203 src
= (wxPyFileDropTarget
*) ptr
;
3204 dest
= (wxPyDropTarget
*) src
;
3205 return (void *) dest
;
3208 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3209 wxPyFileDropTarget
*src
;
3211 src
= (wxPyFileDropTarget
*) ptr
;
3212 dest
= (wxDropTarget
*) src
;
3213 return (void *) dest
;
3216 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3217 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3218 PyObject
* _resultobj
;
3219 wxPyFileDropTarget
* _result
;
3220 char *_kwnames
[] = { NULL
};
3224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3227 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3228 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3230 wxPyEndAllowThreads(__tstate
);
3231 if (PyErr_Occurred()) return NULL
;
3233 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3234 _resultobj
= Py_BuildValue("s",_ptemp
);
3237 _resultobj
= Py_None
;
3242 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3243 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3244 PyObject
* _resultobj
;
3245 wxPyFileDropTarget
* _arg0
;
3248 PyObject
* _argo0
= 0;
3249 PyObject
* _obj1
= 0;
3250 PyObject
* _obj2
= 0;
3251 char *_kwnames
[] = { "self","self","_class", NULL
};
3254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3271 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3273 wxPyEndAllowThreads(__tstate
);
3274 if (PyErr_Occurred()) return NULL
;
3275 } Py_INCREF(Py_None
);
3276 _resultobj
= Py_None
;
3280 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3281 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3282 PyObject
* _resultobj
;
3283 wxDragResult _result
;
3284 wxPyFileDropTarget
* _arg0
;
3288 PyObject
* _argo0
= 0;
3289 char *_kwnames
[] = { "self","x","y","def", NULL
};
3292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3303 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3305 wxPyEndAllowThreads(__tstate
);
3306 if (PyErr_Occurred()) return NULL
;
3307 } _resultobj
= Py_BuildValue("i",_result
);
3311 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3312 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3313 PyObject
* _resultobj
;
3314 wxDragResult _result
;
3315 wxPyFileDropTarget
* _arg0
;
3319 PyObject
* _argo0
= 0;
3320 char *_kwnames
[] = { "self","x","y","def", NULL
};
3323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3333 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3334 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3336 wxPyEndAllowThreads(__tstate
);
3337 if (PyErr_Occurred()) return NULL
;
3338 } _resultobj
= Py_BuildValue("i",_result
);
3342 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3343 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3344 PyObject
* _resultobj
;
3345 wxPyFileDropTarget
* _arg0
;
3346 PyObject
* _argo0
= 0;
3347 char *_kwnames
[] = { "self", NULL
};
3350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3361 wxFileDropTarget_base_OnLeave(_arg0
);
3363 wxPyEndAllowThreads(__tstate
);
3364 if (PyErr_Occurred()) return NULL
;
3365 } Py_INCREF(Py_None
);
3366 _resultobj
= Py_None
;
3370 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3371 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3372 PyObject
* _resultobj
;
3374 wxPyFileDropTarget
* _arg0
;
3377 PyObject
* _argo0
= 0;
3378 char *_kwnames
[] = { "self","x","y", NULL
};
3381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3391 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3392 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3394 wxPyEndAllowThreads(__tstate
);
3395 if (PyErr_Occurred()) return NULL
;
3396 } _resultobj
= Py_BuildValue("i",_result
);
3400 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3401 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3402 PyObject
* _resultobj
;
3403 wxDragResult _result
;
3404 wxPyFileDropTarget
* _arg0
;
3408 PyObject
* _argo0
= 0;
3409 char *_kwnames
[] = { "self","x","y","def", NULL
};
3412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3423 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3425 wxPyEndAllowThreads(__tstate
);
3426 if (PyErr_Occurred()) return NULL
;
3427 } _resultobj
= Py_BuildValue("i",_result
);
3431 static PyMethodDef clip_dndcMethods
[] = {
3432 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3525 * This table is used by the pointer type-checker
3527 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3528 { "_signed_long","_long",0},
3529 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3530 { "_wxPrintQuality","_wxCoord",0},
3531 { "_wxPrintQuality","_int",0},
3532 { "_wxPrintQuality","_signed_int",0},
3533 { "_wxPrintQuality","_unsigned_int",0},
3534 { "_wxPrintQuality","_wxWindowID",0},
3535 { "_wxPrintQuality","_uint",0},
3536 { "_wxPrintQuality","_EBool",0},
3537 { "_wxPrintQuality","_size_t",0},
3538 { "_wxPrintQuality","_time_t",0},
3539 { "_byte","_unsigned_char",0},
3540 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3541 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3542 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3543 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3544 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3545 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3546 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3547 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3548 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3549 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3550 { "_long","_unsigned_long",0},
3551 { "_long","_signed_long",0},
3552 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3553 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3554 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3555 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3556 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3557 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3558 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3559 { "_size_t","_wxCoord",0},
3560 { "_size_t","_wxPrintQuality",0},
3561 { "_size_t","_time_t",0},
3562 { "_size_t","_unsigned_int",0},
3563 { "_size_t","_int",0},
3564 { "_size_t","_wxWindowID",0},
3565 { "_size_t","_uint",0},
3566 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3567 { "_uint","_wxCoord",0},
3568 { "_uint","_wxPrintQuality",0},
3569 { "_uint","_time_t",0},
3570 { "_uint","_size_t",0},
3571 { "_uint","_unsigned_int",0},
3572 { "_uint","_int",0},
3573 { "_uint","_wxWindowID",0},
3574 { "_wxChar","_char",0},
3575 { "_char","_wxChar",0},
3576 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3577 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3578 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3579 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3580 { "_EBool","_wxCoord",0},
3581 { "_EBool","_wxPrintQuality",0},
3582 { "_EBool","_signed_int",0},
3583 { "_EBool","_int",0},
3584 { "_EBool","_wxWindowID",0},
3585 { "_unsigned_long","_long",0},
3586 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3587 { "_signed_int","_wxCoord",0},
3588 { "_signed_int","_wxPrintQuality",0},
3589 { "_signed_int","_EBool",0},
3590 { "_signed_int","_wxWindowID",0},
3591 { "_signed_int","_int",0},
3592 { "_WXTYPE","_short",0},
3593 { "_WXTYPE","_signed_short",0},
3594 { "_WXTYPE","_unsigned_short",0},
3595 { "_unsigned_short","_WXTYPE",0},
3596 { "_unsigned_short","_short",0},
3597 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3598 { "_signed_short","_WXTYPE",0},
3599 { "_signed_short","_short",0},
3600 { "_unsigned_char","_byte",0},
3601 { "_unsigned_int","_wxCoord",0},
3602 { "_unsigned_int","_wxPrintQuality",0},
3603 { "_unsigned_int","_time_t",0},
3604 { "_unsigned_int","_size_t",0},
3605 { "_unsigned_int","_uint",0},
3606 { "_unsigned_int","_wxWindowID",0},
3607 { "_unsigned_int","_int",0},
3608 { "_short","_WXTYPE",0},
3609 { "_short","_unsigned_short",0},
3610 { "_short","_signed_short",0},
3611 { "_wxWindowID","_wxCoord",0},
3612 { "_wxWindowID","_wxPrintQuality",0},
3613 { "_wxWindowID","_time_t",0},
3614 { "_wxWindowID","_size_t",0},
3615 { "_wxWindowID","_EBool",0},
3616 { "_wxWindowID","_uint",0},
3617 { "_wxWindowID","_int",0},
3618 { "_wxWindowID","_signed_int",0},
3619 { "_wxWindowID","_unsigned_int",0},
3620 { "_int","_wxCoord",0},
3621 { "_int","_wxPrintQuality",0},
3622 { "_int","_time_t",0},
3623 { "_int","_size_t",0},
3624 { "_int","_EBool",0},
3625 { "_int","_uint",0},
3626 { "_int","_wxWindowID",0},
3627 { "_int","_unsigned_int",0},
3628 { "_int","_signed_int",0},
3629 { "_time_t","_wxCoord",0},
3630 { "_time_t","_wxPrintQuality",0},
3631 { "_time_t","_unsigned_int",0},
3632 { "_time_t","_int",0},
3633 { "_time_t","_wxWindowID",0},
3634 { "_time_t","_uint",0},
3635 { "_time_t","_size_t",0},
3636 { "_wxCoord","_int",0},
3637 { "_wxCoord","_signed_int",0},
3638 { "_wxCoord","_unsigned_int",0},
3639 { "_wxCoord","_wxWindowID",0},
3640 { "_wxCoord","_uint",0},
3641 { "_wxCoord","_EBool",0},
3642 { "_wxCoord","_size_t",0},
3643 { "_wxCoord","_time_t",0},
3644 { "_wxCoord","_wxPrintQuality",0},
3645 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3646 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3647 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3650 static PyObject
*SWIG_globals
;
3654 SWIGEXPORT(void) initclip_dndc() {
3656 SWIG_globals
= SWIG_newvarlink();
3657 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3658 d
= PyModule_GetDict(m
);
3659 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3660 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3661 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3662 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3663 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3664 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3665 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3666 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3667 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3668 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3669 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3670 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3671 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3672 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3673 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3674 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3675 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3676 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3677 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3678 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3679 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3680 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3681 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3682 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3683 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3684 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3685 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3686 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3687 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3688 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3689 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3690 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3693 wxPyTheClipboard
= wxTheClipboard
;
3694 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3695 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3696 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3697 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3698 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3699 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3702 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3703 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);