2 * FILE : src/msw/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
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 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1702 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1704 wxFileDataObject
* _arg0
;
1706 PyObject
* _argo0
= 0;
1707 PyObject
* _obj1
= 0;
1708 char *_kwnames
[] = { "self","filename", NULL
};
1711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1721 _arg1
= wxString_in_helper(_obj1
);
1726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1727 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1729 wxPyEndAllowThreads(__tstate
);
1730 if (PyErr_Occurred()) return NULL
;
1731 } Py_INCREF(Py_None
);
1732 _resultobj
= Py_None
;
1740 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1741 wxCustomDataObject
*src
;
1742 wxDataObjectSimple
*dest
;
1743 src
= (wxCustomDataObject
*) ptr
;
1744 dest
= (wxDataObjectSimple
*) src
;
1745 return (void *) dest
;
1748 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1749 wxCustomDataObject
*src
;
1751 src
= (wxCustomDataObject
*) ptr
;
1752 dest
= (wxDataObject
*) src
;
1753 return (void *) dest
;
1756 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1757 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1758 PyObject
* _resultobj
;
1759 wxCustomDataObject
* _result
;
1760 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1761 PyObject
* _argo0
= 0;
1762 char *_kwnames
[] = { "format", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1769 if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1776 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1778 wxPyEndAllowThreads(__tstate
);
1779 if (PyErr_Occurred()) return NULL
;
1781 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1782 _resultobj
= Py_BuildValue("s",_ptemp
);
1785 _resultobj
= Py_None
;
1790 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1791 if (PyString_Check(data
)) {
1792 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1795 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1796 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_TakeData",_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_TakeData. Expected _wxCustomDataObject_p.");
1817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1818 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1820 wxPyEndAllowThreads(__tstate
);
1821 if (PyErr_Occurred()) return NULL
;
1822 } Py_INCREF(Py_None
);
1823 _resultobj
= Py_None
;
1827 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1828 if (PyString_Check(data
)) {
1829 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1833 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1834 PyObject
* _resultobj
;
1836 wxCustomDataObject
* _arg0
;
1838 PyObject
* _argo0
= 0;
1839 PyObject
* _obj1
= 0;
1840 char *_kwnames
[] = { "self","data", NULL
};
1843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1857 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1859 wxPyEndAllowThreads(__tstate
);
1860 if (PyErr_Occurred()) return NULL
;
1861 } _resultobj
= Py_BuildValue("i",_result
);
1865 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1866 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1867 PyObject
* _resultobj
;
1869 wxCustomDataObject
* _arg0
;
1870 PyObject
* _argo0
= 0;
1871 char *_kwnames
[] = { "self", NULL
};
1874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1885 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1887 wxPyEndAllowThreads(__tstate
);
1888 if (PyErr_Occurred()) return NULL
;
1889 } _resultobj
= Py_BuildValue("i",_result
);
1893 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1894 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1896 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1897 PyObject
* _resultobj
;
1899 wxCustomDataObject
* _arg0
;
1900 PyObject
* _argo0
= 0;
1901 char *_kwnames
[] = { "self", NULL
};
1904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1914 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1915 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1917 wxPyEndAllowThreads(__tstate
);
1918 if (PyErr_Occurred()) return NULL
;
1920 _resultobj
= _result
;
1925 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1926 wxURLDataObject
*src
;
1927 wxDataObjectComposite
*dest
;
1928 src
= (wxURLDataObject
*) ptr
;
1929 dest
= (wxDataObjectComposite
*) src
;
1930 return (void *) dest
;
1933 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1934 wxURLDataObject
*src
;
1936 src
= (wxURLDataObject
*) ptr
;
1937 dest
= (wxDataObject
*) src
;
1938 return (void *) dest
;
1941 #define new_wxURLDataObject() (new wxURLDataObject())
1942 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1943 PyObject
* _resultobj
;
1944 wxURLDataObject
* _result
;
1945 char *_kwnames
[] = { NULL
};
1949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1952 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1953 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1955 wxPyEndAllowThreads(__tstate
);
1956 if (PyErr_Occurred()) return NULL
;
1958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1959 _resultobj
= Py_BuildValue("s",_ptemp
);
1962 _resultobj
= Py_None
;
1967 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1968 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1969 PyObject
* _resultobj
;
1971 wxURLDataObject
* _arg0
;
1972 PyObject
* _argo0
= 0;
1973 char *_kwnames
[] = { "self", NULL
};
1976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1987 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1989 wxPyEndAllowThreads(__tstate
);
1990 if (PyErr_Occurred()) return NULL
;
1993 _resultobj
= PyUnicode_FromWideChar(_result
->c_str(), _result
->Len());
1995 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2004 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2005 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2006 PyObject
* _resultobj
;
2007 wxURLDataObject
* _arg0
;
2009 PyObject
* _argo0
= 0;
2010 PyObject
* _obj1
= 0;
2011 char *_kwnames
[] = { "self","url", NULL
};
2014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2024 _arg1
= wxString_in_helper(_obj1
);
2029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2030 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2032 wxPyEndAllowThreads(__tstate
);
2033 if (PyErr_Occurred()) return NULL
;
2034 } Py_INCREF(Py_None
);
2035 _resultobj
= Py_None
;
2043 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2044 wxMetafileDataObject
*src
;
2045 wxDataObjectSimple
*dest
;
2046 src
= (wxMetafileDataObject
*) ptr
;
2047 dest
= (wxDataObjectSimple
*) src
;
2048 return (void *) dest
;
2051 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2052 wxMetafileDataObject
*src
;
2054 src
= (wxMetafileDataObject
*) ptr
;
2055 dest
= (wxDataObject
*) src
;
2056 return (void *) dest
;
2059 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2060 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2061 PyObject
* _resultobj
;
2062 wxMetafileDataObject
* _result
;
2063 char *_kwnames
[] = { NULL
};
2067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2071 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2073 wxPyEndAllowThreads(__tstate
);
2074 if (PyErr_Occurred()) return NULL
;
2076 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2077 _resultobj
= Py_BuildValue("s",_ptemp
);
2080 _resultobj
= Py_None
;
2085 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2086 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2087 PyObject
* _resultobj
;
2088 wxMetafileDataObject
* _arg0
;
2090 PyObject
* _argo0
= 0;
2091 PyObject
* _argo1
= 0;
2092 char *_kwnames
[] = { "self","metafile", NULL
};
2095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2105 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2112 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2114 wxPyEndAllowThreads(__tstate
);
2115 if (PyErr_Occurred()) return NULL
;
2116 } Py_INCREF(Py_None
);
2117 _resultobj
= Py_None
;
2121 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2122 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2123 PyObject
* _resultobj
;
2124 wxMetafile
* _result
;
2125 wxMetafileDataObject
* _arg0
;
2126 PyObject
* _argo0
= 0;
2127 char *_kwnames
[] = { "self", NULL
};
2131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2142 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2144 wxPyEndAllowThreads(__tstate
);
2145 if (PyErr_Occurred()) return NULL
;
2146 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2147 _resultobj
= Py_BuildValue("s",_ptemp
);
2151 static void *SwigwxClipboardTowxObject(void *ptr
) {
2154 src
= (wxClipboard
*) ptr
;
2155 dest
= (wxObject
*) src
;
2156 return (void *) dest
;
2159 #define new_wxClipboard() (new wxClipboard())
2160 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2161 PyObject
* _resultobj
;
2162 wxClipboard
* _result
;
2163 char *_kwnames
[] = { NULL
};
2167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2171 _result
= (wxClipboard
*)new_wxClipboard();
2173 wxPyEndAllowThreads(__tstate
);
2174 if (PyErr_Occurred()) return NULL
;
2176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2177 _resultobj
= Py_BuildValue("s",_ptemp
);
2180 _resultobj
= Py_None
;
2185 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2186 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2187 PyObject
* _resultobj
;
2189 wxClipboard
* _arg0
;
2190 PyObject
* _argo0
= 0;
2191 char *_kwnames
[] = { "self", NULL
};
2194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2204 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2205 _result
= (bool )wxClipboard_Open(_arg0
);
2207 wxPyEndAllowThreads(__tstate
);
2208 if (PyErr_Occurred()) return NULL
;
2209 } _resultobj
= Py_BuildValue("i",_result
);
2213 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2214 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2215 PyObject
* _resultobj
;
2216 wxClipboard
* _arg0
;
2217 PyObject
* _argo0
= 0;
2218 char *_kwnames
[] = { "self", NULL
};
2221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2232 wxClipboard_Close(_arg0
);
2234 wxPyEndAllowThreads(__tstate
);
2235 if (PyErr_Occurred()) return NULL
;
2236 } Py_INCREF(Py_None
);
2237 _resultobj
= Py_None
;
2241 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2242 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2243 PyObject
* _resultobj
;
2245 wxClipboard
* _arg0
;
2246 PyObject
* _argo0
= 0;
2247 char *_kwnames
[] = { "self", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2261 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2263 wxPyEndAllowThreads(__tstate
);
2264 if (PyErr_Occurred()) return NULL
;
2265 } _resultobj
= Py_BuildValue("i",_result
);
2269 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2270 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2271 PyObject
* _resultobj
;
2273 wxClipboard
* _arg0
;
2274 wxDataObject
* _arg1
;
2275 PyObject
* _argo0
= 0;
2276 PyObject
* _argo1
= 0;
2277 char *_kwnames
[] = { "self","data", NULL
};
2280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2290 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2298 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2300 wxPyEndAllowThreads(__tstate
);
2301 if (PyErr_Occurred()) return NULL
;
2302 } _resultobj
= Py_BuildValue("i",_result
);
2306 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2307 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2308 PyObject
* _resultobj
;
2310 wxClipboard
* _arg0
;
2311 wxDataObject
* _arg1
;
2312 PyObject
* _argo0
= 0;
2313 PyObject
* _argo1
= 0;
2314 char *_kwnames
[] = { "self","data", NULL
};
2317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2327 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2328 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2335 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2337 wxPyEndAllowThreads(__tstate
);
2338 if (PyErr_Occurred()) return NULL
;
2339 } _resultobj
= Py_BuildValue("i",_result
);
2343 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2344 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2345 PyObject
* _resultobj
;
2347 wxClipboard
* _arg0
;
2348 wxDataFormat
* _arg1
;
2349 PyObject
* _argo0
= 0;
2350 PyObject
* _argo1
= 0;
2351 char *_kwnames
[] = { "self","format", NULL
};
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2364 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2365 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2371 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2373 wxPyEndAllowThreads(__tstate
);
2374 if (PyErr_Occurred()) return NULL
;
2375 } _resultobj
= Py_BuildValue("i",_result
);
2379 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2380 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2381 PyObject
* _resultobj
;
2383 wxClipboard
* _arg0
;
2384 wxDataObject
* _arg1
;
2385 PyObject
* _argo0
= 0;
2386 PyObject
* _argo1
= 0;
2387 char *_kwnames
[] = { "self","data", NULL
};
2390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2400 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2407 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2409 wxPyEndAllowThreads(__tstate
);
2410 if (PyErr_Occurred()) return NULL
;
2411 } _resultobj
= Py_BuildValue("i",_result
);
2415 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2416 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2417 PyObject
* _resultobj
;
2418 wxClipboard
* _arg0
;
2419 PyObject
* _argo0
= 0;
2420 char *_kwnames
[] = { "self", NULL
};
2423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2433 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2434 wxClipboard_Clear(_arg0
);
2436 wxPyEndAllowThreads(__tstate
);
2437 if (PyErr_Occurred()) return NULL
;
2438 } Py_INCREF(Py_None
);
2439 _resultobj
= Py_None
;
2443 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2444 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2445 PyObject
* _resultobj
;
2447 wxClipboard
* _arg0
;
2448 PyObject
* _argo0
= 0;
2449 char *_kwnames
[] = { "self", NULL
};
2452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2463 _result
= (bool )wxClipboard_Flush(_arg0
);
2465 wxPyEndAllowThreads(__tstate
);
2466 if (PyErr_Occurred()) return NULL
;
2467 } _resultobj
= Py_BuildValue("i",_result
);
2471 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2472 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2473 PyObject
* _resultobj
;
2474 wxClipboard
* _arg0
;
2475 int _arg1
= (int ) FALSE
;
2476 PyObject
* _argo0
= 0;
2477 char *_kwnames
[] = { "self","primary", NULL
};
2480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2491 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2493 wxPyEndAllowThreads(__tstate
);
2494 if (PyErr_Occurred()) return NULL
;
2495 } Py_INCREF(Py_None
);
2496 _resultobj
= Py_None
;
2500 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2501 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2502 PyObject
* _resultobj
;
2503 wxPyDropSource
* _result
;
2504 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2505 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2506 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2507 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2508 PyObject
* _argo0
= 0;
2509 PyObject
* _argo1
= 0;
2510 PyObject
* _argo2
= 0;
2511 PyObject
* _argo3
= 0;
2512 char *_kwnames
[] = { "win","copy","move","none", NULL
};
2516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2526 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2532 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2538 if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2545 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2547 wxPyEndAllowThreads(__tstate
);
2548 if (PyErr_Occurred()) return NULL
;
2550 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2551 _resultobj
= Py_BuildValue("s",_ptemp
);
2554 _resultobj
= Py_None
;
2559 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2560 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2561 PyObject
* _resultobj
;
2562 wxPyDropSource
* _arg0
;
2566 PyObject
* _argo0
= 0;
2567 PyObject
* _obj1
= 0;
2568 PyObject
* _obj2
= 0;
2569 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2589 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2591 wxPyEndAllowThreads(__tstate
);
2592 if (PyErr_Occurred()) return NULL
;
2593 } Py_INCREF(Py_None
);
2594 _resultobj
= Py_None
;
2598 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2599 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2600 PyObject
* _resultobj
;
2601 wxPyDropSource
* _arg0
;
2602 PyObject
* _argo0
= 0;
2603 char *_kwnames
[] = { "self", NULL
};
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2617 delete_wxPyDropSource(_arg0
);
2619 wxPyEndAllowThreads(__tstate
);
2620 if (PyErr_Occurred()) return NULL
;
2621 } Py_INCREF(Py_None
);
2622 _resultobj
= Py_None
;
2626 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2627 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2628 PyObject
* _resultobj
;
2629 wxPyDropSource
* _arg0
;
2630 wxDataObject
* _arg1
;
2631 PyObject
* _argo0
= 0;
2632 PyObject
* _argo1
= 0;
2633 char *_kwnames
[] = { "self","data", NULL
};
2636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2646 if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2653 wxDropSource_SetData(_arg0
,*_arg1
);
2655 wxPyEndAllowThreads(__tstate
);
2656 if (PyErr_Occurred()) return NULL
;
2657 } Py_INCREF(Py_None
);
2658 _resultobj
= Py_None
;
2662 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2663 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2664 PyObject
* _resultobj
;
2665 wxDataObject
* _result
;
2666 wxPyDropSource
* _arg0
;
2667 PyObject
* _argo0
= 0;
2668 char *_kwnames
[] = { "self", NULL
};
2672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2683 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2685 wxPyEndAllowThreads(__tstate
);
2686 if (PyErr_Occurred()) return NULL
;
2688 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2689 _resultobj
= Py_BuildValue("s",_ptemp
);
2692 _resultobj
= Py_None
;
2697 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2698 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2699 PyObject
* _resultobj
;
2700 wxPyDropSource
* _arg0
;
2703 PyObject
* _argo0
= 0;
2704 PyObject
* _argo2
= 0;
2705 char *_kwnames
[] = { "self","res","cursor", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2718 if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2725 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2727 wxPyEndAllowThreads(__tstate
);
2728 if (PyErr_Occurred()) return NULL
;
2729 } Py_INCREF(Py_None
);
2730 _resultobj
= Py_None
;
2734 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2735 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2737 wxDragResult _result
;
2738 wxPyDropSource
* _arg0
;
2739 int _arg1
= (int ) (wxDrag_CopyOnly
);
2740 PyObject
* _argo0
= 0;
2741 char *_kwnames
[] = { "self","flags", NULL
};
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2755 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2757 wxPyEndAllowThreads(__tstate
);
2758 if (PyErr_Occurred()) return NULL
;
2759 } _resultobj
= Py_BuildValue("i",_result
);
2763 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2764 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2765 PyObject
* _resultobj
;
2767 wxPyDropSource
* _arg0
;
2769 PyObject
* _argo0
= 0;
2770 char *_kwnames
[] = { "self","effect", NULL
};
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2783 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2784 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2786 wxPyEndAllowThreads(__tstate
);
2787 if (PyErr_Occurred()) return NULL
;
2788 } _resultobj
= Py_BuildValue("i",_result
);
2792 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2793 wxPyDropTarget
*src
;
2795 src
= (wxPyDropTarget
*) ptr
;
2796 dest
= (wxDropTarget
*) src
;
2797 return (void *) dest
;
2800 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2801 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2802 PyObject
* _resultobj
;
2803 wxPyDropTarget
* _result
;
2804 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2805 PyObject
* _argo0
= 0;
2806 char *_kwnames
[] = { "dataObject", NULL
};
2810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2820 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2821 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2823 wxPyEndAllowThreads(__tstate
);
2824 if (PyErr_Occurred()) return NULL
;
2826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2827 _resultobj
= Py_BuildValue("s",_ptemp
);
2830 _resultobj
= Py_None
;
2835 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2836 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2838 wxPyDropTarget
* _arg0
;
2841 PyObject
* _argo0
= 0;
2842 PyObject
* _obj1
= 0;
2843 PyObject
* _obj2
= 0;
2844 char *_kwnames
[] = { "self","self","_class", NULL
};
2847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2850 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2851 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2863 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2864 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2866 wxPyEndAllowThreads(__tstate
);
2867 if (PyErr_Occurred()) return NULL
;
2868 } Py_INCREF(Py_None
);
2869 _resultobj
= Py_None
;
2873 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2874 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2876 wxPyDropTarget
* _arg0
;
2877 PyObject
* _argo0
= 0;
2878 char *_kwnames
[] = { "self", NULL
};
2881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2892 delete_wxPyDropTarget(_arg0
);
2894 wxPyEndAllowThreads(__tstate
);
2895 if (PyErr_Occurred()) return NULL
;
2896 } Py_INCREF(Py_None
);
2897 _resultobj
= Py_None
;
2901 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2902 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2903 PyObject
* _resultobj
;
2904 wxDataObject
* _result
;
2905 wxPyDropTarget
* _arg0
;
2906 PyObject
* _argo0
= 0;
2907 char *_kwnames
[] = { "self", NULL
};
2911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2921 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2922 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2924 wxPyEndAllowThreads(__tstate
);
2925 if (PyErr_Occurred()) return NULL
;
2927 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2928 _resultobj
= Py_BuildValue("s",_ptemp
);
2931 _resultobj
= Py_None
;
2936 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2937 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2938 PyObject
* _resultobj
;
2939 wxPyDropTarget
* _arg0
;
2940 wxDataObject
* _arg1
;
2941 PyObject
* _argo0
= 0;
2942 PyObject
* _argo1
= 0;
2943 char *_kwnames
[] = { "self","dataObject", NULL
};
2946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
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_SetDataObject. Expected _wxPyDropTarget_p.");
2956 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2957 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2964 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2966 wxPyEndAllowThreads(__tstate
);
2967 if (PyErr_Occurred()) return NULL
;
2968 } Py_INCREF(Py_None
);
2969 _resultobj
= Py_None
;
2973 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2974 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2975 PyObject
* _resultobj
;
2976 wxDragResult _result
;
2977 wxPyDropTarget
* _arg0
;
2981 PyObject
* _argo0
= 0;
2982 char *_kwnames
[] = { "self","x","y","def", NULL
};
2985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2995 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2996 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2998 wxPyEndAllowThreads(__tstate
);
2999 if (PyErr_Occurred()) return NULL
;
3000 } _resultobj
= Py_BuildValue("i",_result
);
3004 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3005 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3006 PyObject
* _resultobj
;
3007 wxDragResult _result
;
3008 wxPyDropTarget
* _arg0
;
3012 PyObject
* _argo0
= 0;
3013 char *_kwnames
[] = { "self","x","y","def", NULL
};
3016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
3026 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3027 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3029 wxPyEndAllowThreads(__tstate
);
3030 if (PyErr_Occurred()) return NULL
;
3031 } _resultobj
= Py_BuildValue("i",_result
);
3035 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3036 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3037 PyObject
* _resultobj
;
3038 wxPyDropTarget
* _arg0
;
3039 PyObject
* _argo0
= 0;
3040 char *_kwnames
[] = { "self", NULL
};
3043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3054 wxPyDropTarget_base_OnLeave(_arg0
);
3056 wxPyEndAllowThreads(__tstate
);
3057 if (PyErr_Occurred()) return NULL
;
3058 } Py_INCREF(Py_None
);
3059 _resultobj
= Py_None
;
3063 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3064 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3065 PyObject
* _resultobj
;
3067 wxPyDropTarget
* _arg0
;
3070 PyObject
* _argo0
= 0;
3071 char *_kwnames
[] = { "self","x","y", NULL
};
3074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3085 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3087 wxPyEndAllowThreads(__tstate
);
3088 if (PyErr_Occurred()) return NULL
;
3089 } _resultobj
= Py_BuildValue("i",_result
);
3093 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3094 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3095 PyObject
* _resultobj
;
3097 wxPyDropTarget
* _arg0
;
3098 PyObject
* _argo0
= 0;
3099 char *_kwnames
[] = { "self", NULL
};
3102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3113 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3115 wxPyEndAllowThreads(__tstate
);
3116 if (PyErr_Occurred()) return NULL
;
3117 } _resultobj
= Py_BuildValue("i",_result
);
3121 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3122 wxPyTextDropTarget
*src
;
3123 wxPyDropTarget
*dest
;
3124 src
= (wxPyTextDropTarget
*) ptr
;
3125 dest
= (wxPyDropTarget
*) src
;
3126 return (void *) dest
;
3129 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3130 wxPyTextDropTarget
*src
;
3132 src
= (wxPyTextDropTarget
*) ptr
;
3133 dest
= (wxDropTarget
*) src
;
3134 return (void *) dest
;
3137 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3138 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3139 PyObject
* _resultobj
;
3140 wxPyTextDropTarget
* _result
;
3141 char *_kwnames
[] = { NULL
};
3145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3148 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3149 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3151 wxPyEndAllowThreads(__tstate
);
3152 if (PyErr_Occurred()) return NULL
;
3154 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3155 _resultobj
= Py_BuildValue("s",_ptemp
);
3158 _resultobj
= Py_None
;
3163 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3164 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3165 PyObject
* _resultobj
;
3166 wxPyTextDropTarget
* _arg0
;
3169 PyObject
* _argo0
= 0;
3170 PyObject
* _obj1
= 0;
3171 PyObject
* _obj2
= 0;
3172 char *_kwnames
[] = { "self","self","_class", NULL
};
3175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3192 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3194 wxPyEndAllowThreads(__tstate
);
3195 if (PyErr_Occurred()) return NULL
;
3196 } Py_INCREF(Py_None
);
3197 _resultobj
= Py_None
;
3201 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3202 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3203 PyObject
* _resultobj
;
3204 wxDragResult _result
;
3205 wxPyTextDropTarget
* _arg0
;
3209 PyObject
* _argo0
= 0;
3210 char *_kwnames
[] = { "self","x","y","def", NULL
};
3213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3224 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3226 wxPyEndAllowThreads(__tstate
);
3227 if (PyErr_Occurred()) return NULL
;
3228 } _resultobj
= Py_BuildValue("i",_result
);
3232 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3233 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3234 PyObject
* _resultobj
;
3235 wxDragResult _result
;
3236 wxPyTextDropTarget
* _arg0
;
3240 PyObject
* _argo0
= 0;
3241 char *_kwnames
[] = { "self","x","y","def", NULL
};
3244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3255 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3257 wxPyEndAllowThreads(__tstate
);
3258 if (PyErr_Occurred()) return NULL
;
3259 } _resultobj
= Py_BuildValue("i",_result
);
3263 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3264 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3265 PyObject
* _resultobj
;
3266 wxPyTextDropTarget
* _arg0
;
3267 PyObject
* _argo0
= 0;
3268 char *_kwnames
[] = { "self", NULL
};
3271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3282 wxTextDropTarget_base_OnLeave(_arg0
);
3284 wxPyEndAllowThreads(__tstate
);
3285 if (PyErr_Occurred()) return NULL
;
3286 } Py_INCREF(Py_None
);
3287 _resultobj
= Py_None
;
3291 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3292 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3293 PyObject
* _resultobj
;
3295 wxPyTextDropTarget
* _arg0
;
3298 PyObject
* _argo0
= 0;
3299 char *_kwnames
[] = { "self","x","y", NULL
};
3302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3313 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3315 wxPyEndAllowThreads(__tstate
);
3316 if (PyErr_Occurred()) return NULL
;
3317 } _resultobj
= Py_BuildValue("i",_result
);
3321 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3322 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3323 PyObject
* _resultobj
;
3324 wxDragResult _result
;
3325 wxPyTextDropTarget
* _arg0
;
3329 PyObject
* _argo0
= 0;
3330 char *_kwnames
[] = { "self","x","y","def", NULL
};
3333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3344 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3346 wxPyEndAllowThreads(__tstate
);
3347 if (PyErr_Occurred()) return NULL
;
3348 } _resultobj
= Py_BuildValue("i",_result
);
3352 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3353 wxPyFileDropTarget
*src
;
3354 wxPyDropTarget
*dest
;
3355 src
= (wxPyFileDropTarget
*) ptr
;
3356 dest
= (wxPyDropTarget
*) src
;
3357 return (void *) dest
;
3360 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3361 wxPyFileDropTarget
*src
;
3363 src
= (wxPyFileDropTarget
*) ptr
;
3364 dest
= (wxDropTarget
*) src
;
3365 return (void *) dest
;
3368 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3369 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3370 PyObject
* _resultobj
;
3371 wxPyFileDropTarget
* _result
;
3372 char *_kwnames
[] = { NULL
};
3376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3380 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3382 wxPyEndAllowThreads(__tstate
);
3383 if (PyErr_Occurred()) return NULL
;
3385 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3386 _resultobj
= Py_BuildValue("s",_ptemp
);
3389 _resultobj
= Py_None
;
3394 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3395 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3397 wxPyFileDropTarget
* _arg0
;
3400 PyObject
* _argo0
= 0;
3401 PyObject
* _obj1
= 0;
3402 PyObject
* _obj2
= 0;
3403 char *_kwnames
[] = { "self","self","_class", NULL
};
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3423 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3425 wxPyEndAllowThreads(__tstate
);
3426 if (PyErr_Occurred()) return NULL
;
3427 } Py_INCREF(Py_None
);
3428 _resultobj
= Py_None
;
3432 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3433 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3434 PyObject
* _resultobj
;
3435 wxDragResult _result
;
3436 wxPyFileDropTarget
* _arg0
;
3440 PyObject
* _argo0
= 0;
3441 char *_kwnames
[] = { "self","x","y","def", NULL
};
3444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3455 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3457 wxPyEndAllowThreads(__tstate
);
3458 if (PyErr_Occurred()) return NULL
;
3459 } _resultobj
= Py_BuildValue("i",_result
);
3463 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3464 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3465 PyObject
* _resultobj
;
3466 wxDragResult _result
;
3467 wxPyFileDropTarget
* _arg0
;
3471 PyObject
* _argo0
= 0;
3472 char *_kwnames
[] = { "self","x","y","def", NULL
};
3475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3486 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3488 wxPyEndAllowThreads(__tstate
);
3489 if (PyErr_Occurred()) return NULL
;
3490 } _resultobj
= Py_BuildValue("i",_result
);
3494 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3495 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3496 PyObject
* _resultobj
;
3497 wxPyFileDropTarget
* _arg0
;
3498 PyObject
* _argo0
= 0;
3499 char *_kwnames
[] = { "self", NULL
};
3502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3513 wxFileDropTarget_base_OnLeave(_arg0
);
3515 wxPyEndAllowThreads(__tstate
);
3516 if (PyErr_Occurred()) return NULL
;
3517 } Py_INCREF(Py_None
);
3518 _resultobj
= Py_None
;
3522 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3523 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3524 PyObject
* _resultobj
;
3526 wxPyFileDropTarget
* _arg0
;
3529 PyObject
* _argo0
= 0;
3530 char *_kwnames
[] = { "self","x","y", NULL
};
3533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3544 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3546 wxPyEndAllowThreads(__tstate
);
3547 if (PyErr_Occurred()) return NULL
;
3548 } _resultobj
= Py_BuildValue("i",_result
);
3552 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3553 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3554 PyObject
* _resultobj
;
3555 wxDragResult _result
;
3556 wxPyFileDropTarget
* _arg0
;
3560 PyObject
* _argo0
= 0;
3561 char *_kwnames
[] = { "self","x","y","def", NULL
};
3564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3575 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3577 wxPyEndAllowThreads(__tstate
);
3578 if (PyErr_Occurred()) return NULL
;
3579 } _resultobj
= Py_BuildValue("i",_result
);
3583 static PyMethodDef clip_dndcMethods
[] = {
3584 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3681 * This table is used by the pointer type-checker
3683 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3684 { "_signed_long","_long",0},
3685 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3686 { "_wxPrintQuality","_wxCoord",0},
3687 { "_wxPrintQuality","_int",0},
3688 { "_wxPrintQuality","_signed_int",0},
3689 { "_wxPrintQuality","_unsigned_int",0},
3690 { "_wxPrintQuality","_wxWindowID",0},
3691 { "_wxPrintQuality","_uint",0},
3692 { "_wxPrintQuality","_EBool",0},
3693 { "_wxPrintQuality","_size_t",0},
3694 { "_wxPrintQuality","_time_t",0},
3695 { "_byte","_unsigned_char",0},
3696 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3697 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3698 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3699 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3700 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3701 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3702 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3703 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3704 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3705 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3706 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3707 { "_long","_unsigned_long",0},
3708 { "_long","_signed_long",0},
3709 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3710 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3711 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3712 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3713 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3714 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3715 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3716 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3717 { "_size_t","_wxCoord",0},
3718 { "_size_t","_wxPrintQuality",0},
3719 { "_size_t","_time_t",0},
3720 { "_size_t","_unsigned_int",0},
3721 { "_size_t","_int",0},
3722 { "_size_t","_wxWindowID",0},
3723 { "_size_t","_uint",0},
3724 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3725 { "_uint","_wxCoord",0},
3726 { "_uint","_wxPrintQuality",0},
3727 { "_uint","_time_t",0},
3728 { "_uint","_size_t",0},
3729 { "_uint","_unsigned_int",0},
3730 { "_uint","_int",0},
3731 { "_uint","_wxWindowID",0},
3732 { "_wxChar","_char",0},
3733 { "_char","_wxChar",0},
3734 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3735 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3736 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3737 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3738 { "_EBool","_wxCoord",0},
3739 { "_EBool","_wxPrintQuality",0},
3740 { "_EBool","_signed_int",0},
3741 { "_EBool","_int",0},
3742 { "_EBool","_wxWindowID",0},
3743 { "_unsigned_long","_long",0},
3744 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3745 { "_signed_int","_wxCoord",0},
3746 { "_signed_int","_wxPrintQuality",0},
3747 { "_signed_int","_EBool",0},
3748 { "_signed_int","_wxWindowID",0},
3749 { "_signed_int","_int",0},
3750 { "_WXTYPE","_short",0},
3751 { "_WXTYPE","_signed_short",0},
3752 { "_WXTYPE","_unsigned_short",0},
3753 { "_unsigned_short","_WXTYPE",0},
3754 { "_unsigned_short","_short",0},
3755 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3756 { "_signed_short","_WXTYPE",0},
3757 { "_signed_short","_short",0},
3758 { "_unsigned_char","_byte",0},
3759 { "_unsigned_int","_wxCoord",0},
3760 { "_unsigned_int","_wxPrintQuality",0},
3761 { "_unsigned_int","_time_t",0},
3762 { "_unsigned_int","_size_t",0},
3763 { "_unsigned_int","_uint",0},
3764 { "_unsigned_int","_wxWindowID",0},
3765 { "_unsigned_int","_int",0},
3766 { "_short","_WXTYPE",0},
3767 { "_short","_unsigned_short",0},
3768 { "_short","_signed_short",0},
3769 { "_wxWindowID","_wxCoord",0},
3770 { "_wxWindowID","_wxPrintQuality",0},
3771 { "_wxWindowID","_time_t",0},
3772 { "_wxWindowID","_size_t",0},
3773 { "_wxWindowID","_EBool",0},
3774 { "_wxWindowID","_uint",0},
3775 { "_wxWindowID","_int",0},
3776 { "_wxWindowID","_signed_int",0},
3777 { "_wxWindowID","_unsigned_int",0},
3778 { "_int","_wxCoord",0},
3779 { "_int","_wxPrintQuality",0},
3780 { "_int","_time_t",0},
3781 { "_int","_size_t",0},
3782 { "_int","_EBool",0},
3783 { "_int","_uint",0},
3784 { "_int","_wxWindowID",0},
3785 { "_int","_unsigned_int",0},
3786 { "_int","_signed_int",0},
3787 { "_time_t","_wxCoord",0},
3788 { "_time_t","_wxPrintQuality",0},
3789 { "_time_t","_unsigned_int",0},
3790 { "_time_t","_int",0},
3791 { "_time_t","_wxWindowID",0},
3792 { "_time_t","_uint",0},
3793 { "_time_t","_size_t",0},
3794 { "_wxCoord","_int",0},
3795 { "_wxCoord","_signed_int",0},
3796 { "_wxCoord","_unsigned_int",0},
3797 { "_wxCoord","_wxWindowID",0},
3798 { "_wxCoord","_uint",0},
3799 { "_wxCoord","_EBool",0},
3800 { "_wxCoord","_size_t",0},
3801 { "_wxCoord","_time_t",0},
3802 { "_wxCoord","_wxPrintQuality",0},
3803 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3804 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3805 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3808 static PyObject
*SWIG_globals
;
3812 SWIGEXPORT(void) initclip_dndc() {
3814 SWIG_globals
= SWIG_newvarlink();
3815 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3816 d
= PyModule_GetDict(m
);
3817 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3818 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3819 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3820 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3821 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3822 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3823 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3824 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3825 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3826 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3827 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3828 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3829 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3830 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3831 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3832 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3833 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3834 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3835 PyDict_SetItemString(d
,"wxDF_HTML", PyInt_FromLong((long) wxDF_HTML
));
3836 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3837 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3838 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3839 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxTheClipboard_get
, _wrap_wxTheClipboard_set
);
3840 PyDict_SetItemString(d
,"wxDrag_CopyOnly", PyInt_FromLong((long) wxDrag_CopyOnly
));
3841 PyDict_SetItemString(d
,"wxDrag_AllowMove", PyInt_FromLong((long) wxDrag_AllowMove
));
3842 PyDict_SetItemString(d
,"wxDrag_DefaultMove", PyInt_FromLong((long) wxDrag_DefaultMove
));
3843 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3844 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3845 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3846 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3847 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3848 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3851 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3852 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3853 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3854 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3855 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3856 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3859 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3860 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);