2 * FILE : src/mac/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
34 # define SWIGEXPORT(a) a
38 # define SWIGEXPORT(a) a
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
48 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
49 extern PyObject
*SWIG_newvarlink(void);
53 #define SWIG_init initclip_dndc
55 #define SWIG_name "clip_dndc"
58 #include <wx/dataobj.h>
59 #include <wx/clipbrd.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 // Put some wx default wxChar* values into wxStrings.
90 static const wxString
wxPyEmptyString(wxT(""));
91 // An alternate constructor...
92 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
93 return new wxDataFormat(id
);
96 wxDataFormat wxPyFormatInvalid
;
97 // Create a new class for wxPython to use
98 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
100 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
101 : wxDataObjectSimple(format
) {}
103 DEC_PYCALLBACK_SIZET_(GetDataSize
);
104 bool GetDataHere(void *buf
);
105 bool SetData(size_t len
, const void *buf
);
109 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
111 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
112 // We need to get the data for this object and write it to buf. I think
113 // the best way to do this for wxPython is to have the Python method
114 // return either a string or None and then act appropriately with the
118 wxPyBeginBlockThreads();
119 if (m_myInst
.findCallback("GetDataHere")) {
121 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
123 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
125 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
129 wxPyEndBlockThreads();
133 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
134 // For this one we simply need to make a string from buf and len
135 // and send it to the Python method.
137 wxPyBeginBlockThreads();
138 if (m_myInst
.findCallback("SetData")) {
139 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
140 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
143 wxPyEndBlockThreads();
146 // Create a new class for wxPython to use
147 class wxPyTextDataObject
: public wxTextDataObject
{
149 wxPyTextDataObject(const wxString
& text
= wxPyEmptyString
)
150 : wxTextDataObject(text
) {}
152 DEC_PYCALLBACK_SIZET_(GetTextLength
);
153 DEC_PYCALLBACK_STRING_(GetText
);
154 DEC_PYCALLBACK__STRING(SetText
);
158 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
159 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
160 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
162 // Create a new class for wxPython to use
163 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
165 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
166 : wxBitmapDataObject(bitmap
) {}
168 wxBitmap
GetBitmap();
169 void SetBitmap(const wxBitmap
& bitmap
);
173 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
174 wxBitmap
* rval
= &wxNullBitmap
;
175 wxPyBeginBlockThreads();
176 if (m_myInst
.findCallback("GetBitmap")) {
179 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
181 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
186 wxPyEndBlockThreads();
190 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
191 wxPyBeginBlockThreads();
192 if (m_myInst
.findCallback("SetBitmap")) {
193 PyObject
* bo
= wxPyConstructObject((void*)&bitmap
, wxT("wxBitmap"));
194 m_myInst
.callCallback(Py_BuildValue("(O)", bo
));
197 wxPyEndBlockThreads();
200 #include <wx/metafile.h>
203 extern wxClipboard
* wxTheClipboard
;
207 class wxPyDropSource
: public wxDropSource
{
210 wxPyDropSource(wxWindow
*win
= NULL
,
211 const wxCursor
©
= wxNullCursor
,
212 const wxCursor
&move
= wxNullCursor
,
213 const wxCursor
&none
= wxNullCursor
)
214 : wxDropSource(win
, copy
, move
, none
) {}
216 wxPyDropSource(wxWindow
*win
= NULL
,
217 const wxIcon
& copy
= wxNullIcon
,
218 const wxIcon
& move
= wxNullIcon
,
219 const wxIcon
& none
= wxNullIcon
)
220 : wxDropSource(win
, copy
, move
, none
) {}
222 ~wxPyDropSource() { }
224 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
228 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
231 class wxPyDropTarget
: public wxDropTarget
{
233 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
234 : wxDropTarget(dataObject
) {}
236 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
237 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
239 DEC_PYCALLBACK__(OnLeave
);
240 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
241 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
242 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
243 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
248 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
249 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
251 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
252 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
253 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
254 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
255 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
258 class wxPyTextDropTarget
: public wxTextDropTarget
{
260 wxPyTextDropTarget() {}
262 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
264 DEC_PYCALLBACK__(OnLeave
);
265 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
266 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
267 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
268 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
273 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
274 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
275 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
276 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
277 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
278 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
281 class wxPyFileDropTarget
: public wxFileDropTarget
{
283 wxPyFileDropTarget() {}
285 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
287 DEC_PYCALLBACK__(OnLeave
);
288 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
289 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
290 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
291 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
296 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
297 const wxArrayString
& filenames
) {
299 wxPyBeginBlockThreads();
300 if (m_myInst
.findCallback("OnDropFiles")) {
301 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
302 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
305 wxPyEndBlockThreads();
311 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
312 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
313 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
314 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
315 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
320 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
321 PyObject
* _resultobj
;
322 wxDataFormat
* _result
;
324 PyObject
* _obj0
= 0;
325 char *_kwnames
[] = { "id", NULL
};
329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
332 _arg0
= wxString_in_helper(_obj0
);
337 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
338 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
340 wxPyEndAllowThreads(__tstate
);
341 if (PyErr_Occurred()) return NULL
;
343 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
344 _resultobj
= Py_BuildValue("s",_ptemp
);
347 _resultobj
= Py_None
;
356 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
358 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
362 static PyObject
*_wrap_wxPyFormatInvalid_get() {
366 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
367 pyobj
= PyString_FromString(ptemp
);
371 static int _wrap_wxTheClipboard_set(PyObject
*val
) {
373 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
377 static PyObject
*_wrap_wxTheClipboard_get() {
381 SWIG_MakePtr(ptemp
, (char *) wxTheClipboard
,"_wxClipboard_p");
382 pyobj
= PyString_FromString(ptemp
);
386 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
387 PyObject
* _resultobj
;
390 char *_kwnames
[] = { "res", NULL
};
393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
397 _result
= (bool )wxIsDragResultOk(_arg0
);
399 wxPyEndAllowThreads(__tstate
);
400 if (PyErr_Occurred()) return NULL
;
401 } _resultobj
= Py_BuildValue("i",_result
);
405 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
406 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
407 PyObject
* _resultobj
;
408 wxDataFormat
* _result
;
409 wxDataFormatId _arg0
;
410 char *_kwnames
[] = { "type", NULL
};
414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
418 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
420 wxPyEndAllowThreads(__tstate
);
421 if (PyErr_Occurred()) return NULL
;
423 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
424 _resultobj
= Py_BuildValue("s",_ptemp
);
427 _resultobj
= Py_None
;
432 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
433 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
435 wxDataFormat
* _arg0
;
436 PyObject
* _argo0
= 0;
437 char *_kwnames
[] = { "self", NULL
};
440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
450 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
451 delete_wxDataFormat(_arg0
);
453 wxPyEndAllowThreads(__tstate
);
454 if (PyErr_Occurred()) return NULL
;
455 } Py_INCREF(Py_None
);
456 _resultobj
= Py_None
;
460 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
461 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
462 PyObject
* _resultobj
;
463 wxDataFormat
* _arg0
;
464 wxDataFormatId _arg1
;
465 PyObject
* _argo0
= 0;
466 char *_kwnames
[] = { "self","format", NULL
};
469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
479 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
480 wxDataFormat_SetType(_arg0
,_arg1
);
482 wxPyEndAllowThreads(__tstate
);
483 if (PyErr_Occurred()) return NULL
;
484 } Py_INCREF(Py_None
);
485 _resultobj
= Py_None
;
489 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
490 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
491 PyObject
* _resultobj
;
492 wxDataFormatId _result
;
493 wxDataFormat
* _arg0
;
494 PyObject
* _argo0
= 0;
495 char *_kwnames
[] = { "self", NULL
};
498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
508 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
509 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
511 wxPyEndAllowThreads(__tstate
);
512 if (PyErr_Occurred()) return NULL
;
513 } _resultobj
= Py_BuildValue("i",_result
);
517 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
518 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
519 PyObject
* _resultobj
;
521 wxDataFormat
* _arg0
;
522 PyObject
* _argo0
= 0;
523 char *_kwnames
[] = { "self", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
537 _result
= new wxString (wxDataFormat_GetId(_arg0
));
539 wxPyEndAllowThreads(__tstate
);
540 if (PyErr_Occurred()) return NULL
;
543 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
545 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
554 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
555 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
557 wxDataFormat
* _arg0
;
559 PyObject
* _argo0
= 0;
560 PyObject
* _obj1
= 0;
561 char *_kwnames
[] = { "self","format", NULL
};
564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataFormat_SetId",_kwnames
,&_argo0
,&_obj1
))
567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
574 _arg1
= wxString_in_helper(_obj1
);
579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
580 wxDataFormat_SetId(_arg0
,*_arg1
);
582 wxPyEndAllowThreads(__tstate
);
583 if (PyErr_Occurred()) return NULL
;
584 } Py_INCREF(Py_None
);
585 _resultobj
= Py_None
;
593 #define delete_wxDataObject(_swigobj) (delete _swigobj)
594 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
595 PyObject
* _resultobj
;
596 wxDataObject
* _arg0
;
597 PyObject
* _argo0
= 0;
598 char *_kwnames
[] = { "self", NULL
};
601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
612 delete_wxDataObject(_arg0
);
614 wxPyEndAllowThreads(__tstate
);
615 if (PyErr_Occurred()) return NULL
;
616 } Py_INCREF(Py_None
);
617 _resultobj
= Py_None
;
621 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
622 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
623 PyObject
* _resultobj
;
624 wxDataFormat
* _result
;
625 wxDataObject
* _arg0
;
626 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
627 PyObject
* _argo0
= 0;
628 char *_kwnames
[] = { "self","dir", NULL
};
632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
643 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
645 wxPyEndAllowThreads(__tstate
);
646 if (PyErr_Occurred()) return NULL
;
647 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
648 _resultobj
= Py_BuildValue("s",_ptemp
);
652 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
653 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
654 PyObject
* _resultobj
;
656 wxDataObject
* _arg0
;
657 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
658 PyObject
* _argo0
= 0;
659 char *_kwnames
[] = { "self","dir", NULL
};
662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
672 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
673 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
675 wxPyEndAllowThreads(__tstate
);
676 if (PyErr_Occurred()) return NULL
;
677 } _resultobj
= Py_BuildValue("i",_result
);
681 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
682 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
683 PyObject
* _resultobj
;
684 wxDataObject
* _arg0
;
685 wxDataFormat
* _arg1
;
686 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
687 PyObject
* _argo0
= 0;
688 PyObject
* _argo1
= 0;
689 char *_kwnames
[] = { "self","formats","dir", NULL
};
692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
702 if (_argo1
== Py_None
) { _arg1
= NULL
; }
703 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
710 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
712 wxPyEndAllowThreads(__tstate
);
713 if (PyErr_Occurred()) return NULL
;
714 } Py_INCREF(Py_None
);
715 _resultobj
= Py_None
;
719 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
720 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
721 PyObject
* _resultobj
;
723 wxDataObject
* _arg0
;
724 wxDataFormat
* _arg1
;
726 PyObject
* _argo0
= 0;
727 PyObject
* _argo1
= 0;
728 PyObject
* _argo2
= 0;
729 char *_kwnames
[] = { "self","format","buf", NULL
};
732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
742 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
748 if (_argo2
== Py_None
) { _arg2
= NULL
; }
749 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
756 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
758 wxPyEndAllowThreads(__tstate
);
759 if (PyErr_Occurred()) return NULL
;
760 } _resultobj
= Py_BuildValue("i",_result
);
764 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
765 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
766 PyObject
* _resultobj
;
768 wxDataObject
* _arg0
;
769 wxDataFormat
* _arg1
;
770 PyObject
* _argo0
= 0;
771 PyObject
* _argo1
= 0;
772 char *_kwnames
[] = { "self","format", NULL
};
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
785 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
791 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
792 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
794 wxPyEndAllowThreads(__tstate
);
795 if (PyErr_Occurred()) return NULL
;
796 } _resultobj
= Py_BuildValue("i",_result
);
800 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
801 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
802 PyObject
* _resultobj
;
804 wxDataObject
* _arg0
;
805 wxDataFormat
* _arg1
;
808 PyObject
* _argo0
= 0;
809 PyObject
* _argo1
= 0;
810 PyObject
* _argo3
= 0;
811 char *_kwnames
[] = { "self","format","len","buf", NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
824 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
830 if (_argo3
== Py_None
) { _arg3
= NULL
; }
831 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
838 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
840 wxPyEndAllowThreads(__tstate
);
841 if (PyErr_Occurred()) return NULL
;
842 } _resultobj
= Py_BuildValue("i",_result
);
846 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
847 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
848 PyObject
* _resultobj
;
850 wxDataObject
* _arg0
;
851 wxDataFormat
* _arg1
;
852 PyObject
* _argo0
= 0;
853 PyObject
* _argo1
= 0;
854 char *_kwnames
[] = { "self","format", NULL
};
857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
867 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
874 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
876 wxPyEndAllowThreads(__tstate
);
877 if (PyErr_Occurred()) return NULL
;
878 } _resultobj
= Py_BuildValue("i",_result
);
882 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
883 wxDataObjectSimple
*src
;
885 src
= (wxDataObjectSimple
*) ptr
;
886 dest
= (wxDataObject
*) src
;
887 return (void *) dest
;
890 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
891 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
892 PyObject
* _resultobj
;
893 wxDataObjectSimple
* _result
;
894 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
895 PyObject
* _argo0
= 0;
896 char *_kwnames
[] = { "format", NULL
};
900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
903 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 (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
987 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
989 wxPyEndAllowThreads(__tstate
);
990 if (PyErr_Occurred()) return NULL
;
991 } Py_INCREF(Py_None
);
992 _resultobj
= Py_None
;
996 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
997 wxPyDataObjectSimple
*src
;
998 wxDataObjectSimple
*dest
;
999 src
= (wxPyDataObjectSimple
*) ptr
;
1000 dest
= (wxDataObjectSimple
*) src
;
1001 return (void *) dest
;
1004 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1005 wxPyDataObjectSimple
*src
;
1007 src
= (wxPyDataObjectSimple
*) ptr
;
1008 dest
= (wxDataObject
*) src
;
1009 return (void *) dest
;
1012 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1013 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1014 PyObject
* _resultobj
;
1015 wxPyDataObjectSimple
* _result
;
1016 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1017 PyObject
* _argo0
= 0;
1018 char *_kwnames
[] = { "format", NULL
};
1022 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1025 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1032 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1034 wxPyEndAllowThreads(__tstate
);
1035 if (PyErr_Occurred()) return NULL
;
1037 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1038 _resultobj
= Py_BuildValue("s",_ptemp
);
1041 _resultobj
= Py_None
;
1046 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1047 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1048 PyObject
* _resultobj
;
1049 wxPyDataObjectSimple
* _arg0
;
1052 PyObject
* _argo0
= 0;
1053 PyObject
* _obj1
= 0;
1054 PyObject
* _obj2
= 0;
1055 char *_kwnames
[] = { "self","self","_class", NULL
};
1058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1075 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1077 wxPyEndAllowThreads(__tstate
);
1078 if (PyErr_Occurred()) return NULL
;
1079 } Py_INCREF(Py_None
);
1080 _resultobj
= Py_None
;
1084 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1085 wxDataObjectComposite
*src
;
1087 src
= (wxDataObjectComposite
*) ptr
;
1088 dest
= (wxDataObject
*) src
;
1089 return (void *) dest
;
1092 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1093 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1094 PyObject
* _resultobj
;
1095 wxDataObjectComposite
* _result
;
1096 char *_kwnames
[] = { NULL
};
1100 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1104 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1106 wxPyEndAllowThreads(__tstate
);
1107 if (PyErr_Occurred()) return NULL
;
1109 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1110 _resultobj
= Py_BuildValue("s",_ptemp
);
1113 _resultobj
= Py_None
;
1118 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1119 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1120 PyObject
* _resultobj
;
1121 wxDataObjectComposite
* _arg0
;
1122 wxDataObjectSimple
* _arg1
;
1123 int _arg2
= (int ) FALSE
;
1124 PyObject
* _argo0
= 0;
1125 PyObject
* _argo1
= 0;
1126 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1139 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1140 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1147 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1149 wxPyEndAllowThreads(__tstate
);
1150 if (PyErr_Occurred()) return NULL
;
1151 } Py_INCREF(Py_None
);
1152 _resultobj
= Py_None
;
1156 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1157 wxTextDataObject
*src
;
1158 wxDataObjectSimple
*dest
;
1159 src
= (wxTextDataObject
*) ptr
;
1160 dest
= (wxDataObjectSimple
*) src
;
1161 return (void *) dest
;
1164 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1165 wxTextDataObject
*src
;
1167 src
= (wxTextDataObject
*) ptr
;
1168 dest
= (wxDataObject
*) src
;
1169 return (void *) dest
;
1172 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1173 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1174 PyObject
* _resultobj
;
1175 wxTextDataObject
* _result
;
1176 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1177 PyObject
* _obj0
= 0;
1178 char *_kwnames
[] = { "text", NULL
};
1182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1186 _arg0
= wxString_in_helper(_obj0
);
1191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1192 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1194 wxPyEndAllowThreads(__tstate
);
1195 if (PyErr_Occurred()) return NULL
;
1197 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1198 _resultobj
= Py_BuildValue("s",_ptemp
);
1201 _resultobj
= Py_None
;
1210 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1211 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1212 PyObject
* _resultobj
;
1214 wxTextDataObject
* _arg0
;
1215 PyObject
* _argo0
= 0;
1216 char *_kwnames
[] = { "self", NULL
};
1219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1229 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1230 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1232 wxPyEndAllowThreads(__tstate
);
1233 if (PyErr_Occurred()) return NULL
;
1234 } _resultobj
= Py_BuildValue("i",_result
);
1238 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1239 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1240 PyObject
* _resultobj
;
1242 wxTextDataObject
* _arg0
;
1243 PyObject
* _argo0
= 0;
1244 char *_kwnames
[] = { "self", NULL
};
1247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1258 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1260 wxPyEndAllowThreads(__tstate
);
1261 if (PyErr_Occurred()) return NULL
;
1264 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1266 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1275 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1276 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1278 wxTextDataObject
* _arg0
;
1280 PyObject
* _argo0
= 0;
1281 PyObject
* _obj1
= 0;
1282 char *_kwnames
[] = { "self","text", NULL
};
1285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1295 _arg1
= wxString_in_helper(_obj1
);
1300 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1301 wxTextDataObject_SetText(_arg0
,*_arg1
);
1303 wxPyEndAllowThreads(__tstate
);
1304 if (PyErr_Occurred()) return NULL
;
1305 } Py_INCREF(Py_None
);
1306 _resultobj
= Py_None
;
1314 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1315 wxPyTextDataObject
*src
;
1316 wxTextDataObject
*dest
;
1317 src
= (wxPyTextDataObject
*) ptr
;
1318 dest
= (wxTextDataObject
*) src
;
1319 return (void *) dest
;
1322 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1323 wxPyTextDataObject
*src
;
1324 wxDataObjectSimple
*dest
;
1325 src
= (wxPyTextDataObject
*) ptr
;
1326 dest
= (wxDataObjectSimple
*) src
;
1327 return (void *) dest
;
1330 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1331 wxPyTextDataObject
*src
;
1333 src
= (wxPyTextDataObject
*) ptr
;
1334 dest
= (wxDataObject
*) src
;
1335 return (void *) dest
;
1338 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1339 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1340 PyObject
* _resultobj
;
1341 wxPyTextDataObject
* _result
;
1342 wxString
* _arg0
= (wxString
*) &wxPyEmptyString
;
1343 PyObject
* _obj0
= 0;
1344 char *_kwnames
[] = { "text", NULL
};
1348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1352 _arg0
= wxString_in_helper(_obj0
);
1357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1358 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1360 wxPyEndAllowThreads(__tstate
);
1361 if (PyErr_Occurred()) return NULL
;
1363 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1364 _resultobj
= Py_BuildValue("s",_ptemp
);
1367 _resultobj
= Py_None
;
1376 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1377 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1378 PyObject
* _resultobj
;
1379 wxPyTextDataObject
* _arg0
;
1382 PyObject
* _argo0
= 0;
1383 PyObject
* _obj1
= 0;
1384 PyObject
* _obj2
= 0;
1385 char *_kwnames
[] = { "self","self","_class", NULL
};
1388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1405 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1407 wxPyEndAllowThreads(__tstate
);
1408 if (PyErr_Occurred()) return NULL
;
1409 } Py_INCREF(Py_None
);
1410 _resultobj
= Py_None
;
1414 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1415 wxBitmapDataObject
*src
;
1416 wxDataObjectSimple
*dest
;
1417 src
= (wxBitmapDataObject
*) ptr
;
1418 dest
= (wxDataObjectSimple
*) src
;
1419 return (void *) dest
;
1422 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1423 wxBitmapDataObject
*src
;
1425 src
= (wxBitmapDataObject
*) ptr
;
1426 dest
= (wxDataObject
*) src
;
1427 return (void *) dest
;
1430 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1431 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
* _resultobj
;
1433 wxBitmapDataObject
* _result
;
1434 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1435 PyObject
* _argo0
= 0;
1436 char *_kwnames
[] = { "bitmap", NULL
};
1440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1443 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1449 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1450 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1452 wxPyEndAllowThreads(__tstate
);
1453 if (PyErr_Occurred()) return NULL
;
1455 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1456 _resultobj
= Py_BuildValue("s",_ptemp
);
1459 _resultobj
= Py_None
;
1464 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1465 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1466 PyObject
* _resultobj
;
1468 wxBitmapDataObject
* _arg0
;
1469 PyObject
* _argo0
= 0;
1470 char *_kwnames
[] = { "self", NULL
};
1474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1484 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1485 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1487 wxPyEndAllowThreads(__tstate
);
1488 if (PyErr_Occurred()) return NULL
;
1489 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1490 _resultobj
= Py_BuildValue("s",_ptemp
);
1494 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1495 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1496 PyObject
* _resultobj
;
1497 wxBitmapDataObject
* _arg0
;
1499 PyObject
* _argo0
= 0;
1500 PyObject
* _argo1
= 0;
1501 char *_kwnames
[] = { "self","bitmap", NULL
};
1504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1514 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1521 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1523 wxPyEndAllowThreads(__tstate
);
1524 if (PyErr_Occurred()) return NULL
;
1525 } Py_INCREF(Py_None
);
1526 _resultobj
= Py_None
;
1530 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1531 wxPyBitmapDataObject
*src
;
1532 wxBitmapDataObject
*dest
;
1533 src
= (wxPyBitmapDataObject
*) ptr
;
1534 dest
= (wxBitmapDataObject
*) src
;
1535 return (void *) dest
;
1538 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1539 wxPyBitmapDataObject
*src
;
1540 wxDataObjectSimple
*dest
;
1541 src
= (wxPyBitmapDataObject
*) ptr
;
1542 dest
= (wxDataObjectSimple
*) src
;
1543 return (void *) dest
;
1546 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1547 wxPyBitmapDataObject
*src
;
1549 src
= (wxPyBitmapDataObject
*) ptr
;
1550 dest
= (wxDataObject
*) src
;
1551 return (void *) dest
;
1554 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1555 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1556 PyObject
* _resultobj
;
1557 wxPyBitmapDataObject
* _result
;
1558 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1559 PyObject
* _argo0
= 0;
1560 char *_kwnames
[] = { "bitmap", NULL
};
1564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1567 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1574 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1576 wxPyEndAllowThreads(__tstate
);
1577 if (PyErr_Occurred()) return NULL
;
1579 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1580 _resultobj
= Py_BuildValue("s",_ptemp
);
1583 _resultobj
= Py_None
;
1588 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1589 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1590 PyObject
* _resultobj
;
1591 wxPyBitmapDataObject
* _arg0
;
1594 PyObject
* _argo0
= 0;
1595 PyObject
* _obj1
= 0;
1596 PyObject
* _obj2
= 0;
1597 char *_kwnames
[] = { "self","self","_class", NULL
};
1600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1617 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1619 wxPyEndAllowThreads(__tstate
);
1620 if (PyErr_Occurred()) return NULL
;
1621 } Py_INCREF(Py_None
);
1622 _resultobj
= Py_None
;
1626 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1627 wxFileDataObject
*src
;
1628 wxDataObjectSimple
*dest
;
1629 src
= (wxFileDataObject
*) ptr
;
1630 dest
= (wxDataObjectSimple
*) src
;
1631 return (void *) dest
;
1634 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1635 wxFileDataObject
*src
;
1637 src
= (wxFileDataObject
*) ptr
;
1638 dest
= (wxDataObject
*) src
;
1639 return (void *) dest
;
1642 #define new_wxFileDataObject() (new wxFileDataObject())
1643 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1644 PyObject
* _resultobj
;
1645 wxFileDataObject
* _result
;
1646 char *_kwnames
[] = { NULL
};
1650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1654 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1656 wxPyEndAllowThreads(__tstate
);
1657 if (PyErr_Occurred()) return NULL
;
1659 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1660 _resultobj
= Py_BuildValue("s",_ptemp
);
1663 _resultobj
= Py_None
;
1668 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1669 const wxArrayString
& strings
= self
->GetFilenames();
1670 return wxArrayString2PyList_helper(strings
);
1672 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
* _resultobj
;
1675 wxFileDataObject
* _arg0
;
1676 PyObject
* _argo0
= 0;
1677 char *_kwnames
[] = { "self", NULL
};
1680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1691 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1693 wxPyEndAllowThreads(__tstate
);
1694 if (PyErr_Occurred()) return NULL
;
1696 _resultobj
= _result
;
1701 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1702 wxCustomDataObject
*src
;
1703 wxDataObjectSimple
*dest
;
1704 src
= (wxCustomDataObject
*) ptr
;
1705 dest
= (wxDataObjectSimple
*) src
;
1706 return (void *) dest
;
1709 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1710 wxCustomDataObject
*src
;
1712 src
= (wxCustomDataObject
*) ptr
;
1713 dest
= (wxDataObject
*) src
;
1714 return (void *) dest
;
1717 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1718 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1719 PyObject
* _resultobj
;
1720 wxCustomDataObject
* _result
;
1721 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1722 PyObject
* _argo0
= 0;
1723 char *_kwnames
[] = { "format", NULL
};
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1730 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1737 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1739 wxPyEndAllowThreads(__tstate
);
1740 if (PyErr_Occurred()) return NULL
;
1742 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1743 _resultobj
= Py_BuildValue("s",_ptemp
);
1746 _resultobj
= Py_None
;
1751 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1752 if (PyString_Check(data
)) {
1753 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1756 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1757 PyObject
* _resultobj
;
1758 wxCustomDataObject
* _arg0
;
1760 PyObject
* _argo0
= 0;
1761 PyObject
* _obj1
= 0;
1762 char *_kwnames
[] = { "self","data", NULL
};
1765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1779 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1781 wxPyEndAllowThreads(__tstate
);
1782 if (PyErr_Occurred()) return NULL
;
1783 } Py_INCREF(Py_None
);
1784 _resultobj
= Py_None
;
1788 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1789 if (PyString_Check(data
)) {
1790 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1794 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1795 PyObject
* _resultobj
;
1797 wxCustomDataObject
* _arg0
;
1799 PyObject
* _argo0
= 0;
1800 PyObject
* _obj1
= 0;
1801 char *_kwnames
[] = { "self","data", NULL
};
1804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1818 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1820 wxPyEndAllowThreads(__tstate
);
1821 if (PyErr_Occurred()) return NULL
;
1822 } _resultobj
= Py_BuildValue("i",_result
);
1826 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1827 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1828 PyObject
* _resultobj
;
1830 wxCustomDataObject
* _arg0
;
1831 PyObject
* _argo0
= 0;
1832 char *_kwnames
[] = { "self", NULL
};
1835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1846 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1848 wxPyEndAllowThreads(__tstate
);
1849 if (PyErr_Occurred()) return NULL
;
1850 } _resultobj
= Py_BuildValue("i",_result
);
1854 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1855 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1857 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1858 PyObject
* _resultobj
;
1860 wxCustomDataObject
* _arg0
;
1861 PyObject
* _argo0
= 0;
1862 char *_kwnames
[] = { "self", NULL
};
1865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1876 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1878 wxPyEndAllowThreads(__tstate
);
1879 if (PyErr_Occurred()) return NULL
;
1881 _resultobj
= _result
;
1886 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1887 wxURLDataObject
*src
;
1888 wxDataObjectComposite
*dest
;
1889 src
= (wxURLDataObject
*) ptr
;
1890 dest
= (wxDataObjectComposite
*) src
;
1891 return (void *) dest
;
1894 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1895 wxURLDataObject
*src
;
1897 src
= (wxURLDataObject
*) ptr
;
1898 dest
= (wxDataObject
*) src
;
1899 return (void *) dest
;
1902 #define new_wxURLDataObject() (new wxURLDataObject())
1903 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1904 PyObject
* _resultobj
;
1905 wxURLDataObject
* _result
;
1906 char *_kwnames
[] = { NULL
};
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1913 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1914 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1916 wxPyEndAllowThreads(__tstate
);
1917 if (PyErr_Occurred()) return NULL
;
1919 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1920 _resultobj
= Py_BuildValue("s",_ptemp
);
1923 _resultobj
= Py_None
;
1928 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1929 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1930 PyObject
* _resultobj
;
1932 wxURLDataObject
* _arg0
;
1933 PyObject
* _argo0
= 0;
1934 char *_kwnames
[] = { "self", NULL
};
1937 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1940 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1941 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1947 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1948 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1950 wxPyEndAllowThreads(__tstate
);
1951 if (PyErr_Occurred()) return NULL
;
1954 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1956 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1965 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1966 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1967 PyObject
* _resultobj
;
1968 wxURLDataObject
* _arg0
;
1970 PyObject
* _argo0
= 0;
1971 PyObject
* _obj1
= 0;
1972 char *_kwnames
[] = { "self","url", NULL
};
1975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
1978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
1985 _arg1
= wxString_in_helper(_obj1
);
1990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1991 wxURLDataObject_SetURL(_arg0
,*_arg1
);
1993 wxPyEndAllowThreads(__tstate
);
1994 if (PyErr_Occurred()) return NULL
;
1995 } Py_INCREF(Py_None
);
1996 _resultobj
= Py_None
;
2004 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2005 wxMetafileDataObject
*src
;
2006 wxDataObjectSimple
*dest
;
2007 src
= (wxMetafileDataObject
*) ptr
;
2008 dest
= (wxDataObjectSimple
*) src
;
2009 return (void *) dest
;
2012 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2013 wxMetafileDataObject
*src
;
2015 src
= (wxMetafileDataObject
*) ptr
;
2016 dest
= (wxDataObject
*) src
;
2017 return (void *) dest
;
2020 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2021 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2022 PyObject
* _resultobj
;
2023 wxMetafileDataObject
* _result
;
2024 char *_kwnames
[] = { NULL
};
2028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2032 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2034 wxPyEndAllowThreads(__tstate
);
2035 if (PyErr_Occurred()) return NULL
;
2037 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2038 _resultobj
= Py_BuildValue("s",_ptemp
);
2041 _resultobj
= Py_None
;
2046 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2047 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2048 PyObject
* _resultobj
;
2049 wxMetafileDataObject
* _arg0
;
2051 PyObject
* _argo0
= 0;
2052 PyObject
* _argo1
= 0;
2053 char *_kwnames
[] = { "self","metafile", NULL
};
2056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2066 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2072 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2073 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2075 wxPyEndAllowThreads(__tstate
);
2076 if (PyErr_Occurred()) return NULL
;
2077 } Py_INCREF(Py_None
);
2078 _resultobj
= Py_None
;
2082 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2083 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2084 PyObject
* _resultobj
;
2085 wxMetafile
* _result
;
2086 wxMetafileDataObject
* _arg0
;
2087 PyObject
* _argo0
= 0;
2088 char *_kwnames
[] = { "self", NULL
};
2092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2103 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2105 wxPyEndAllowThreads(__tstate
);
2106 if (PyErr_Occurred()) return NULL
;
2107 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2108 _resultobj
= Py_BuildValue("s",_ptemp
);
2112 static void *SwigwxClipboardTowxObject(void *ptr
) {
2115 src
= (wxClipboard
*) ptr
;
2116 dest
= (wxObject
*) src
;
2117 return (void *) dest
;
2120 #define new_wxClipboard() (new wxClipboard())
2121 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2122 PyObject
* _resultobj
;
2123 wxClipboard
* _result
;
2124 char *_kwnames
[] = { NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2132 _result
= (wxClipboard
*)new_wxClipboard();
2134 wxPyEndAllowThreads(__tstate
);
2135 if (PyErr_Occurred()) return NULL
;
2137 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2138 _resultobj
= Py_BuildValue("s",_ptemp
);
2141 _resultobj
= Py_None
;
2146 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2147 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2148 PyObject
* _resultobj
;
2150 wxClipboard
* _arg0
;
2151 PyObject
* _argo0
= 0;
2152 char *_kwnames
[] = { "self", NULL
};
2155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2166 _result
= (bool )wxClipboard_Open(_arg0
);
2168 wxPyEndAllowThreads(__tstate
);
2169 if (PyErr_Occurred()) return NULL
;
2170 } _resultobj
= Py_BuildValue("i",_result
);
2174 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2175 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2176 PyObject
* _resultobj
;
2177 wxClipboard
* _arg0
;
2178 PyObject
* _argo0
= 0;
2179 char *_kwnames
[] = { "self", NULL
};
2182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2193 wxClipboard_Close(_arg0
);
2195 wxPyEndAllowThreads(__tstate
);
2196 if (PyErr_Occurred()) return NULL
;
2197 } Py_INCREF(Py_None
);
2198 _resultobj
= Py_None
;
2202 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2203 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2204 PyObject
* _resultobj
;
2206 wxClipboard
* _arg0
;
2207 PyObject
* _argo0
= 0;
2208 char *_kwnames
[] = { "self", NULL
};
2211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2222 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2224 wxPyEndAllowThreads(__tstate
);
2225 if (PyErr_Occurred()) return NULL
;
2226 } _resultobj
= Py_BuildValue("i",_result
);
2230 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2231 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2232 PyObject
* _resultobj
;
2234 wxClipboard
* _arg0
;
2235 wxDataObject
* _arg1
;
2236 PyObject
* _argo0
= 0;
2237 PyObject
* _argo1
= 0;
2238 char *_kwnames
[] = { "self","data", NULL
};
2241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2251 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2258 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2259 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2261 wxPyEndAllowThreads(__tstate
);
2262 if (PyErr_Occurred()) return NULL
;
2263 } _resultobj
= Py_BuildValue("i",_result
);
2267 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2268 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2269 PyObject
* _resultobj
;
2271 wxClipboard
* _arg0
;
2272 wxDataObject
* _arg1
;
2273 PyObject
* _argo0
= 0;
2274 PyObject
* _argo1
= 0;
2275 char *_kwnames
[] = { "self","data", NULL
};
2278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2288 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2289 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2296 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2298 wxPyEndAllowThreads(__tstate
);
2299 if (PyErr_Occurred()) return NULL
;
2300 } _resultobj
= Py_BuildValue("i",_result
);
2304 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2305 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2306 PyObject
* _resultobj
;
2308 wxClipboard
* _arg0
;
2309 wxDataFormat
* _arg1
;
2310 PyObject
* _argo0
= 0;
2311 PyObject
* _argo1
= 0;
2312 char *_kwnames
[] = { "self","format", NULL
};
2315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2325 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2331 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2332 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2334 wxPyEndAllowThreads(__tstate
);
2335 if (PyErr_Occurred()) return NULL
;
2336 } _resultobj
= Py_BuildValue("i",_result
);
2340 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2341 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2342 PyObject
* _resultobj
;
2344 wxClipboard
* _arg0
;
2345 wxDataObject
* _arg1
;
2346 PyObject
* _argo0
= 0;
2347 PyObject
* _argo1
= 0;
2348 char *_kwnames
[] = { "self","data", NULL
};
2351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2361 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2368 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2370 wxPyEndAllowThreads(__tstate
);
2371 if (PyErr_Occurred()) return NULL
;
2372 } _resultobj
= Py_BuildValue("i",_result
);
2376 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2377 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
* _resultobj
;
2379 wxClipboard
* _arg0
;
2380 PyObject
* _argo0
= 0;
2381 char *_kwnames
[] = { "self", NULL
};
2384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2395 wxClipboard_Clear(_arg0
);
2397 wxPyEndAllowThreads(__tstate
);
2398 if (PyErr_Occurred()) return NULL
;
2399 } Py_INCREF(Py_None
);
2400 _resultobj
= Py_None
;
2404 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2405 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2406 PyObject
* _resultobj
;
2408 wxClipboard
* _arg0
;
2409 PyObject
* _argo0
= 0;
2410 char *_kwnames
[] = { "self", NULL
};
2413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2424 _result
= (bool )wxClipboard_Flush(_arg0
);
2426 wxPyEndAllowThreads(__tstate
);
2427 if (PyErr_Occurred()) return NULL
;
2428 } _resultobj
= Py_BuildValue("i",_result
);
2432 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2433 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2434 PyObject
* _resultobj
;
2435 wxClipboard
* _arg0
;
2436 int _arg1
= (int ) FALSE
;
2437 PyObject
* _argo0
= 0;
2438 char *_kwnames
[] = { "self","primary", NULL
};
2441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2452 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2454 wxPyEndAllowThreads(__tstate
);
2455 if (PyErr_Occurred()) return NULL
;
2456 } Py_INCREF(Py_None
);
2457 _resultobj
= Py_None
;
2461 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2462 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2463 PyObject
* _resultobj
;
2464 wxPyDropSource
* _result
;
2465 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2466 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2467 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2468 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2469 PyObject
* _argo0
= 0;
2470 PyObject
* _argo1
= 0;
2471 PyObject
* _argo2
= 0;
2472 PyObject
* _argo3
= 0;
2473 char *_kwnames
[] = { "win","copy","move","none", NULL
};
2477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2487 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2493 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2499 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2506 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2508 wxPyEndAllowThreads(__tstate
);
2509 if (PyErr_Occurred()) return NULL
;
2511 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2512 _resultobj
= Py_BuildValue("s",_ptemp
);
2515 _resultobj
= Py_None
;
2520 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2521 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2522 PyObject
* _resultobj
;
2523 wxPyDropSource
* _arg0
;
2527 PyObject
* _argo0
= 0;
2528 PyObject
* _obj1
= 0;
2529 PyObject
* _obj2
= 0;
2530 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2550 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2552 wxPyEndAllowThreads(__tstate
);
2553 if (PyErr_Occurred()) return NULL
;
2554 } Py_INCREF(Py_None
);
2555 _resultobj
= Py_None
;
2559 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2560 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2561 PyObject
* _resultobj
;
2562 wxPyDropSource
* _arg0
;
2563 PyObject
* _argo0
= 0;
2564 char *_kwnames
[] = { "self", NULL
};
2567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2578 delete_wxPyDropSource(_arg0
);
2580 wxPyEndAllowThreads(__tstate
);
2581 if (PyErr_Occurred()) return NULL
;
2582 } Py_INCREF(Py_None
);
2583 _resultobj
= Py_None
;
2587 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2588 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2589 PyObject
* _resultobj
;
2590 wxPyDropSource
* _arg0
;
2591 wxDataObject
* _arg1
;
2592 PyObject
* _argo0
= 0;
2593 PyObject
* _argo1
= 0;
2594 char *_kwnames
[] = { "self","data", NULL
};
2597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2607 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2614 wxDropSource_SetData(_arg0
,*_arg1
);
2616 wxPyEndAllowThreads(__tstate
);
2617 if (PyErr_Occurred()) return NULL
;
2618 } Py_INCREF(Py_None
);
2619 _resultobj
= Py_None
;
2623 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2624 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2625 PyObject
* _resultobj
;
2626 wxDataObject
* _result
;
2627 wxPyDropSource
* _arg0
;
2628 PyObject
* _argo0
= 0;
2629 char *_kwnames
[] = { "self", NULL
};
2633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2644 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2646 wxPyEndAllowThreads(__tstate
);
2647 if (PyErr_Occurred()) return NULL
;
2649 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2650 _resultobj
= Py_BuildValue("s",_ptemp
);
2653 _resultobj
= Py_None
;
2658 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2659 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2660 PyObject
* _resultobj
;
2661 wxPyDropSource
* _arg0
;
2664 PyObject
* _argo0
= 0;
2665 PyObject
* _argo2
= 0;
2666 char *_kwnames
[] = { "self","res","cursor", NULL
};
2669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2679 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2685 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2686 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2688 wxPyEndAllowThreads(__tstate
);
2689 if (PyErr_Occurred()) return NULL
;
2690 } Py_INCREF(Py_None
);
2691 _resultobj
= Py_None
;
2695 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2696 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2697 PyObject
* _resultobj
;
2698 wxDragResult _result
;
2699 wxPyDropSource
* _arg0
;
2700 int _arg1
= (int ) (wxDrag_CopyOnly
);
2701 PyObject
* _argo0
= 0;
2702 char *_kwnames
[] = { "self","flags", NULL
};
2705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2715 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2716 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2718 wxPyEndAllowThreads(__tstate
);
2719 if (PyErr_Occurred()) return NULL
;
2720 } _resultobj
= Py_BuildValue("i",_result
);
2724 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2725 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2726 PyObject
* _resultobj
;
2728 wxPyDropSource
* _arg0
;
2730 PyObject
* _argo0
= 0;
2731 char *_kwnames
[] = { "self","effect", NULL
};
2734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2745 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2747 wxPyEndAllowThreads(__tstate
);
2748 if (PyErr_Occurred()) return NULL
;
2749 } _resultobj
= Py_BuildValue("i",_result
);
2753 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2754 wxPyDropTarget
*src
;
2756 src
= (wxPyDropTarget
*) ptr
;
2757 dest
= (wxDropTarget
*) src
;
2758 return (void *) dest
;
2761 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2762 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2763 PyObject
* _resultobj
;
2764 wxPyDropTarget
* _result
;
2765 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2766 PyObject
* _argo0
= 0;
2767 char *_kwnames
[] = { "dataObject", NULL
};
2771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2782 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2784 wxPyEndAllowThreads(__tstate
);
2785 if (PyErr_Occurred()) return NULL
;
2787 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2788 _resultobj
= Py_BuildValue("s",_ptemp
);
2791 _resultobj
= Py_None
;
2796 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2797 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2798 PyObject
* _resultobj
;
2799 wxPyDropTarget
* _arg0
;
2802 PyObject
* _argo0
= 0;
2803 PyObject
* _obj1
= 0;
2804 PyObject
* _obj2
= 0;
2805 char *_kwnames
[] = { "self","self","_class", NULL
};
2808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2825 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2827 wxPyEndAllowThreads(__tstate
);
2828 if (PyErr_Occurred()) return NULL
;
2829 } Py_INCREF(Py_None
);
2830 _resultobj
= Py_None
;
2834 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2835 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2836 PyObject
* _resultobj
;
2837 wxPyDropTarget
* _arg0
;
2838 PyObject
* _argo0
= 0;
2839 char *_kwnames
[] = { "self", NULL
};
2842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2853 delete_wxPyDropTarget(_arg0
);
2855 wxPyEndAllowThreads(__tstate
);
2856 if (PyErr_Occurred()) return NULL
;
2857 } Py_INCREF(Py_None
);
2858 _resultobj
= Py_None
;
2862 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2863 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2864 PyObject
* _resultobj
;
2865 wxDataObject
* _result
;
2866 wxPyDropTarget
* _arg0
;
2867 PyObject
* _argo0
= 0;
2868 char *_kwnames
[] = { "self", NULL
};
2872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2882 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2883 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2885 wxPyEndAllowThreads(__tstate
);
2886 if (PyErr_Occurred()) return NULL
;
2888 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2889 _resultobj
= Py_BuildValue("s",_ptemp
);
2892 _resultobj
= Py_None
;
2897 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2898 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2899 PyObject
* _resultobj
;
2900 wxPyDropTarget
* _arg0
;
2901 wxDataObject
* _arg1
;
2902 PyObject
* _argo0
= 0;
2903 PyObject
* _argo1
= 0;
2904 char *_kwnames
[] = { "self","dataObject", NULL
};
2907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2917 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2918 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2925 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2927 wxPyEndAllowThreads(__tstate
);
2928 if (PyErr_Occurred()) return NULL
;
2929 } Py_INCREF(Py_None
);
2930 _resultobj
= Py_None
;
2934 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2935 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2936 PyObject
* _resultobj
;
2937 wxDragResult _result
;
2938 wxPyDropTarget
* _arg0
;
2942 PyObject
* _argo0
= 0;
2943 char *_kwnames
[] = { "self","x","y","def", NULL
};
2946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2957 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2959 wxPyEndAllowThreads(__tstate
);
2960 if (PyErr_Occurred()) return NULL
;
2961 } _resultobj
= Py_BuildValue("i",_result
);
2965 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2966 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
* _resultobj
;
2968 wxDragResult _result
;
2969 wxPyDropTarget
* _arg0
;
2973 PyObject
* _argo0
= 0;
2974 char *_kwnames
[] = { "self","x","y","def", NULL
};
2977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2988 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2990 wxPyEndAllowThreads(__tstate
);
2991 if (PyErr_Occurred()) return NULL
;
2992 } _resultobj
= Py_BuildValue("i",_result
);
2996 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2997 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2998 PyObject
* _resultobj
;
2999 wxPyDropTarget
* _arg0
;
3000 PyObject
* _argo0
= 0;
3001 char *_kwnames
[] = { "self", NULL
};
3004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3015 wxPyDropTarget_base_OnLeave(_arg0
);
3017 wxPyEndAllowThreads(__tstate
);
3018 if (PyErr_Occurred()) return NULL
;
3019 } Py_INCREF(Py_None
);
3020 _resultobj
= Py_None
;
3024 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3025 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
* _resultobj
;
3028 wxPyDropTarget
* _arg0
;
3031 PyObject
* _argo0
= 0;
3032 char *_kwnames
[] = { "self","x","y", NULL
};
3035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3045 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3046 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3048 wxPyEndAllowThreads(__tstate
);
3049 if (PyErr_Occurred()) return NULL
;
3050 } _resultobj
= Py_BuildValue("i",_result
);
3054 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3055 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3056 PyObject
* _resultobj
;
3058 wxPyDropTarget
* _arg0
;
3059 PyObject
* _argo0
= 0;
3060 char *_kwnames
[] = { "self", NULL
};
3063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3074 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3076 wxPyEndAllowThreads(__tstate
);
3077 if (PyErr_Occurred()) return NULL
;
3078 } _resultobj
= Py_BuildValue("i",_result
);
3082 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3083 wxPyTextDropTarget
*src
;
3084 wxPyDropTarget
*dest
;
3085 src
= (wxPyTextDropTarget
*) ptr
;
3086 dest
= (wxPyDropTarget
*) src
;
3087 return (void *) dest
;
3090 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3091 wxPyTextDropTarget
*src
;
3093 src
= (wxPyTextDropTarget
*) ptr
;
3094 dest
= (wxDropTarget
*) src
;
3095 return (void *) dest
;
3098 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3099 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3100 PyObject
* _resultobj
;
3101 wxPyTextDropTarget
* _result
;
3102 char *_kwnames
[] = { NULL
};
3106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3110 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3112 wxPyEndAllowThreads(__tstate
);
3113 if (PyErr_Occurred()) return NULL
;
3115 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3116 _resultobj
= Py_BuildValue("s",_ptemp
);
3119 _resultobj
= Py_None
;
3124 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3125 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3126 PyObject
* _resultobj
;
3127 wxPyTextDropTarget
* _arg0
;
3130 PyObject
* _argo0
= 0;
3131 PyObject
* _obj1
= 0;
3132 PyObject
* _obj2
= 0;
3133 char *_kwnames
[] = { "self","self","_class", NULL
};
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3153 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3155 wxPyEndAllowThreads(__tstate
);
3156 if (PyErr_Occurred()) return NULL
;
3157 } Py_INCREF(Py_None
);
3158 _resultobj
= Py_None
;
3162 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3163 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3165 wxDragResult _result
;
3166 wxPyTextDropTarget
* _arg0
;
3170 PyObject
* _argo0
= 0;
3171 char *_kwnames
[] = { "self","x","y","def", NULL
};
3174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3185 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3187 wxPyEndAllowThreads(__tstate
);
3188 if (PyErr_Occurred()) return NULL
;
3189 } _resultobj
= Py_BuildValue("i",_result
);
3193 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3194 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3195 PyObject
* _resultobj
;
3196 wxDragResult _result
;
3197 wxPyTextDropTarget
* _arg0
;
3201 PyObject
* _argo0
= 0;
3202 char *_kwnames
[] = { "self","x","y","def", NULL
};
3205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3215 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3216 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3218 wxPyEndAllowThreads(__tstate
);
3219 if (PyErr_Occurred()) return NULL
;
3220 } _resultobj
= Py_BuildValue("i",_result
);
3224 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3225 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3226 PyObject
* _resultobj
;
3227 wxPyTextDropTarget
* _arg0
;
3228 PyObject
* _argo0
= 0;
3229 char *_kwnames
[] = { "self", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3243 wxTextDropTarget_base_OnLeave(_arg0
);
3245 wxPyEndAllowThreads(__tstate
);
3246 if (PyErr_Occurred()) return NULL
;
3247 } Py_INCREF(Py_None
);
3248 _resultobj
= Py_None
;
3252 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3253 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
* _resultobj
;
3256 wxPyTextDropTarget
* _arg0
;
3259 PyObject
* _argo0
= 0;
3260 char *_kwnames
[] = { "self","x","y", NULL
};
3263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3274 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3276 wxPyEndAllowThreads(__tstate
);
3277 if (PyErr_Occurred()) return NULL
;
3278 } _resultobj
= Py_BuildValue("i",_result
);
3282 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3283 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3284 PyObject
* _resultobj
;
3285 wxDragResult _result
;
3286 wxPyTextDropTarget
* _arg0
;
3290 PyObject
* _argo0
= 0;
3291 char *_kwnames
[] = { "self","x","y","def", NULL
};
3294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3305 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3307 wxPyEndAllowThreads(__tstate
);
3308 if (PyErr_Occurred()) return NULL
;
3309 } _resultobj
= Py_BuildValue("i",_result
);
3313 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3314 wxPyFileDropTarget
*src
;
3315 wxPyDropTarget
*dest
;
3316 src
= (wxPyFileDropTarget
*) ptr
;
3317 dest
= (wxPyDropTarget
*) src
;
3318 return (void *) dest
;
3321 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3322 wxPyFileDropTarget
*src
;
3324 src
= (wxPyFileDropTarget
*) ptr
;
3325 dest
= (wxDropTarget
*) src
;
3326 return (void *) dest
;
3329 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3330 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3331 PyObject
* _resultobj
;
3332 wxPyFileDropTarget
* _result
;
3333 char *_kwnames
[] = { NULL
};
3337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3341 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3343 wxPyEndAllowThreads(__tstate
);
3344 if (PyErr_Occurred()) return NULL
;
3346 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3347 _resultobj
= Py_BuildValue("s",_ptemp
);
3350 _resultobj
= Py_None
;
3355 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3356 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
* _resultobj
;
3358 wxPyFileDropTarget
* _arg0
;
3361 PyObject
* _argo0
= 0;
3362 PyObject
* _obj1
= 0;
3363 PyObject
* _obj2
= 0;
3364 char *_kwnames
[] = { "self","self","_class", NULL
};
3367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3384 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3386 wxPyEndAllowThreads(__tstate
);
3387 if (PyErr_Occurred()) return NULL
;
3388 } Py_INCREF(Py_None
);
3389 _resultobj
= Py_None
;
3393 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3394 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3395 PyObject
* _resultobj
;
3396 wxDragResult _result
;
3397 wxPyFileDropTarget
* _arg0
;
3401 PyObject
* _argo0
= 0;
3402 char *_kwnames
[] = { "self","x","y","def", NULL
};
3405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3415 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3416 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3418 wxPyEndAllowThreads(__tstate
);
3419 if (PyErr_Occurred()) return NULL
;
3420 } _resultobj
= Py_BuildValue("i",_result
);
3424 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3425 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3426 PyObject
* _resultobj
;
3427 wxDragResult _result
;
3428 wxPyFileDropTarget
* _arg0
;
3432 PyObject
* _argo0
= 0;
3433 char *_kwnames
[] = { "self","x","y","def", NULL
};
3436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3446 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3447 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3449 wxPyEndAllowThreads(__tstate
);
3450 if (PyErr_Occurred()) return NULL
;
3451 } _resultobj
= Py_BuildValue("i",_result
);
3455 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3456 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3457 PyObject
* _resultobj
;
3458 wxPyFileDropTarget
* _arg0
;
3459 PyObject
* _argo0
= 0;
3460 char *_kwnames
[] = { "self", NULL
};
3463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3474 wxFileDropTarget_base_OnLeave(_arg0
);
3476 wxPyEndAllowThreads(__tstate
);
3477 if (PyErr_Occurred()) return NULL
;
3478 } Py_INCREF(Py_None
);
3479 _resultobj
= Py_None
;
3483 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3484 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3485 PyObject
* _resultobj
;
3487 wxPyFileDropTarget
* _arg0
;
3490 PyObject
* _argo0
= 0;
3491 char *_kwnames
[] = { "self","x","y", NULL
};
3494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3504 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3505 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3507 wxPyEndAllowThreads(__tstate
);
3508 if (PyErr_Occurred()) return NULL
;
3509 } _resultobj
= Py_BuildValue("i",_result
);
3513 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3514 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3515 PyObject
* _resultobj
;
3516 wxDragResult _result
;
3517 wxPyFileDropTarget
* _arg0
;
3521 PyObject
* _argo0
= 0;
3522 char *_kwnames
[] = { "self","x","y","def", NULL
};
3525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3536 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3538 wxPyEndAllowThreads(__tstate
);
3539 if (PyErr_Occurred()) return NULL
;
3540 } _resultobj
= Py_BuildValue("i",_result
);
3544 static PyMethodDef clip_dndcMethods
[] = {
3545 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3573 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3574 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3575 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3576 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3577 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3578 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3579 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3580 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3581 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3582 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3641 * This table is used by the pointer type-checker
3643 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3644 { "_signed_long","_long",0},
3645 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3646 { "_wxPrintQuality","_wxCoord",0},
3647 { "_wxPrintQuality","_int",0},
3648 { "_wxPrintQuality","_signed_int",0},
3649 { "_wxPrintQuality","_unsigned_int",0},
3650 { "_wxPrintQuality","_wxWindowID",0},
3651 { "_wxPrintQuality","_uint",0},
3652 { "_wxPrintQuality","_EBool",0},
3653 { "_wxPrintQuality","_size_t",0},
3654 { "_wxPrintQuality","_time_t",0},
3655 { "_byte","_unsigned_char",0},
3656 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3657 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3658 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3659 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3660 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3661 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3662 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3663 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3664 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3665 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3666 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3667 { "_long","_unsigned_long",0},
3668 { "_long","_signed_long",0},
3669 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3670 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3671 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3672 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3673 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3674 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3675 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3676 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3677 { "_size_t","_wxCoord",0},
3678 { "_size_t","_wxPrintQuality",0},
3679 { "_size_t","_time_t",0},
3680 { "_size_t","_unsigned_int",0},
3681 { "_size_t","_int",0},
3682 { "_size_t","_wxWindowID",0},
3683 { "_size_t","_uint",0},
3684 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3685 { "_uint","_wxCoord",0},
3686 { "_uint","_wxPrintQuality",0},
3687 { "_uint","_time_t",0},
3688 { "_uint","_size_t",0},
3689 { "_uint","_unsigned_int",0},
3690 { "_uint","_int",0},
3691 { "_uint","_wxWindowID",0},
3692 { "_wxChar","_char",0},
3693 { "_char","_wxChar",0},
3694 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3695 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3696 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3697 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3698 { "_EBool","_wxCoord",0},
3699 { "_EBool","_wxPrintQuality",0},
3700 { "_EBool","_signed_int",0},
3701 { "_EBool","_int",0},
3702 { "_EBool","_wxWindowID",0},
3703 { "_unsigned_long","_long",0},
3704 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3705 { "_signed_int","_wxCoord",0},
3706 { "_signed_int","_wxPrintQuality",0},
3707 { "_signed_int","_EBool",0},
3708 { "_signed_int","_wxWindowID",0},
3709 { "_signed_int","_int",0},
3710 { "_WXTYPE","_short",0},
3711 { "_WXTYPE","_signed_short",0},
3712 { "_WXTYPE","_unsigned_short",0},
3713 { "_unsigned_short","_WXTYPE",0},
3714 { "_unsigned_short","_short",0},
3715 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3716 { "_signed_short","_WXTYPE",0},
3717 { "_signed_short","_short",0},
3718 { "_unsigned_char","_byte",0},
3719 { "_unsigned_int","_wxCoord",0},
3720 { "_unsigned_int","_wxPrintQuality",0},
3721 { "_unsigned_int","_time_t",0},
3722 { "_unsigned_int","_size_t",0},
3723 { "_unsigned_int","_uint",0},
3724 { "_unsigned_int","_wxWindowID",0},
3725 { "_unsigned_int","_int",0},
3726 { "_short","_WXTYPE",0},
3727 { "_short","_unsigned_short",0},
3728 { "_short","_signed_short",0},
3729 { "_wxWindowID","_wxCoord",0},
3730 { "_wxWindowID","_wxPrintQuality",0},
3731 { "_wxWindowID","_time_t",0},
3732 { "_wxWindowID","_size_t",0},
3733 { "_wxWindowID","_EBool",0},
3734 { "_wxWindowID","_uint",0},
3735 { "_wxWindowID","_int",0},
3736 { "_wxWindowID","_signed_int",0},
3737 { "_wxWindowID","_unsigned_int",0},
3738 { "_int","_wxCoord",0},
3739 { "_int","_wxPrintQuality",0},
3740 { "_int","_time_t",0},
3741 { "_int","_size_t",0},
3742 { "_int","_EBool",0},
3743 { "_int","_uint",0},
3744 { "_int","_wxWindowID",0},
3745 { "_int","_unsigned_int",0},
3746 { "_int","_signed_int",0},
3747 { "_time_t","_wxCoord",0},
3748 { "_time_t","_wxPrintQuality",0},
3749 { "_time_t","_unsigned_int",0},
3750 { "_time_t","_int",0},
3751 { "_time_t","_wxWindowID",0},
3752 { "_time_t","_uint",0},
3753 { "_time_t","_size_t",0},
3754 { "_wxCoord","_int",0},
3755 { "_wxCoord","_signed_int",0},
3756 { "_wxCoord","_unsigned_int",0},
3757 { "_wxCoord","_wxWindowID",0},
3758 { "_wxCoord","_uint",0},
3759 { "_wxCoord","_EBool",0},
3760 { "_wxCoord","_size_t",0},
3761 { "_wxCoord","_time_t",0},
3762 { "_wxCoord","_wxPrintQuality",0},
3763 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3764 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3765 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3768 static PyObject
*SWIG_globals
;
3772 SWIGEXPORT(void) initclip_dndc() {
3774 SWIG_globals
= SWIG_newvarlink();
3775 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3776 d
= PyModule_GetDict(m
);
3777 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3778 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3779 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3780 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3781 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3782 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3783 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3784 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3785 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3786 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3787 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3788 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3789 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3790 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3791 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3792 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3793 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3794 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3795 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3796 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3797 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3798 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3799 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxTheClipboard_get
, _wrap_wxTheClipboard_set
);
3800 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3801 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3802 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3803 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3804 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3805 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3806 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3807 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3808 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3811 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3812 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3813 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3814 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3815 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3816 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3819 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3820 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);