2 * FILE : src/gtk/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
90 #if PYTHON_API_VERSION >= 1009
91 static char* wxStringErrorMsg
= "String or Unicode type required";
93 static char* wxStringErrorMsg
= "String type required";
95 // An alternate constructor...
96 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
97 return new wxDataFormat(id
);
100 wxDataFormat wxPyFormatInvalid
;
101 // Create a new class for wxPython to use
102 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
104 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
105 : wxDataObjectSimple(format
) {}
107 DEC_PYCALLBACK_SIZET_(GetDataSize
);
108 bool GetDataHere(void *buf
);
109 bool SetData(size_t len
, const void *buf
);
113 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
115 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
116 // We need to get the data for this object and write it to buf. I think
117 // the best way to do this for wxPython is to have the Python method
118 // return either a string or None and then act appropriately with the
122 wxPyTState
* state
= wxPyBeginBlockThreads();
123 if (m_myInst
.findCallback("GetDataHere")) {
125 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
127 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
129 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
133 wxPyEndBlockThreads(state
);
137 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
138 // For this one we simply need to make a string from buf and len
139 // and send it to the Python method.
141 wxPyTState
* state
= wxPyBeginBlockThreads();
142 if (m_myInst
.findCallback("SetData")) {
143 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
144 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
147 wxPyEndBlockThreads(state
);
150 // Create a new class for wxPython to use
151 class wxPyTextDataObject
: public wxTextDataObject
{
153 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
154 : wxTextDataObject(text
) {}
156 DEC_PYCALLBACK_SIZET_(GetTextLength
);
157 DEC_PYCALLBACK_STRING_(GetText
);
158 DEC_PYCALLBACK__STRING(SetText
);
162 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
163 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
164 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
166 // Create a new class for wxPython to use
167 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
169 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
170 : wxBitmapDataObject(bitmap
) {}
172 wxBitmap
GetBitmap();
173 void SetBitmap(const wxBitmap
& bitmap
);
177 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
178 wxBitmap
* rval
= &wxNullBitmap
;
179 wxPyTState
* state
= wxPyBeginBlockThreads();
180 if (m_myInst
.findCallback("GetBitmap")) {
183 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
185 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
190 wxPyEndBlockThreads(state
);
194 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
195 wxPyTState
* state
= wxPyBeginBlockThreads();
196 if (m_myInst
.findCallback("SetBitmap")) {
197 m_myInst
.callCallback(Py_BuildValue("(O)",
198 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
200 wxPyEndBlockThreads(state
);
203 // See below in the init function...
204 wxClipboard
* wxPyTheClipboard
;
206 class wxPyDropSource
: public wxDropSource
{
209 wxPyDropSource(wxWindow
*win
= NULL
,
210 const wxCursor
&cursorCopy
= wxNullCursor
,
211 const wxCursor
&cursorMove
= wxNullCursor
,
212 const wxCursor
&cursorStop
= wxNullCursor
)
213 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
215 wxPyDropSource(wxWindow
*win
= NULL
,
216 const wxIcon
&go
= wxNullIcon
)
217 : wxDropSource(win
, go
) {}
219 ~wxPyDropSource() { }
221 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
225 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
228 class wxPyDropTarget
: public wxDropTarget
{
230 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
231 : wxDropTarget(dataObject
) {}
233 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
234 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
236 DEC_PYCALLBACK__(OnLeave
);
237 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
238 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
239 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
240 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
245 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
246 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
248 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
249 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
250 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
251 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
252 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
255 class wxPyTextDropTarget
: public wxTextDropTarget
{
257 wxPyTextDropTarget() {}
259 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
261 DEC_PYCALLBACK__(OnLeave
);
262 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
263 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
264 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
265 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
270 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
271 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
275 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
278 class wxPyFileDropTarget
: public wxFileDropTarget
{
280 wxPyFileDropTarget() {}
282 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
284 DEC_PYCALLBACK__(OnLeave
);
285 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
286 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
287 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
288 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
293 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
294 const wxArrayString
& filenames
) {
296 wxPyTState
* state
= wxPyBeginBlockThreads();
297 PyObject
* list
= PyList_New(0);
298 for (size_t i
=0; i
<filenames
.GetCount(); i
++) {
299 PyObject
* str
= PyString_FromString(filenames
[i
].c_str());
300 PyList_Append(list
, str
);
302 if (m_myInst
.findCallback("OnDropFiles"))
303 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
305 wxPyEndBlockThreads(state
);
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 #if PYTHON_API_VERSION >= 1009
333 char* tmpPtr
; int tmpSize
;
334 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
335 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
338 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
340 _arg0
= new wxString(tmpPtr
, tmpSize
);
342 if (!PyString_Check(_obj0
)) {
343 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
346 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
350 wxPy_BEGIN_ALLOW_THREADS
;
351 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
353 wxPy_END_ALLOW_THREADS
;
354 if (PyErr_Occurred()) return NULL
;
356 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
357 _resultobj
= Py_BuildValue("s",_ptemp
);
360 _resultobj
= Py_None
;
369 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
371 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
375 static PyObject
*_wrap_wxPyFormatInvalid_get() {
379 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
380 pyobj
= PyString_FromString(ptemp
);
384 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
386 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
390 static PyObject
*_wrap_wxPyTheClipboard_get() {
394 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
395 pyobj
= PyString_FromString(ptemp
);
399 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
400 PyObject
* _resultobj
;
403 char *_kwnames
[] = { "res", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
409 wxPy_BEGIN_ALLOW_THREADS
;
410 _result
= (bool )wxIsDragResultOk(_arg0
);
412 wxPy_END_ALLOW_THREADS
;
413 if (PyErr_Occurred()) return NULL
;
414 } _resultobj
= Py_BuildValue("i",_result
);
418 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
419 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
420 PyObject
* _resultobj
;
421 wxDataFormat
* _result
;
422 wxDataFormatId _arg0
;
423 char *_kwnames
[] = { "type", NULL
};
427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
430 wxPy_BEGIN_ALLOW_THREADS
;
431 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
433 wxPy_END_ALLOW_THREADS
;
434 if (PyErr_Occurred()) return NULL
;
436 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
437 _resultobj
= Py_BuildValue("s",_ptemp
);
440 _resultobj
= Py_None
;
445 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
446 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
447 PyObject
* _resultobj
;
448 wxDataFormat
* _arg0
;
449 PyObject
* _argo0
= 0;
450 char *_kwnames
[] = { "self", NULL
};
453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
463 wxPy_BEGIN_ALLOW_THREADS
;
464 delete_wxDataFormat(_arg0
);
466 wxPy_END_ALLOW_THREADS
;
467 if (PyErr_Occurred()) return NULL
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
473 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
474 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
475 PyObject
* _resultobj
;
476 wxDataFormat
* _arg0
;
477 wxDataFormatId _arg1
;
478 PyObject
* _argo0
= 0;
479 char *_kwnames
[] = { "self","format", NULL
};
482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
492 wxPy_BEGIN_ALLOW_THREADS
;
493 wxDataFormat_SetType(_arg0
,_arg1
);
495 wxPy_END_ALLOW_THREADS
;
496 if (PyErr_Occurred()) return NULL
;
497 } Py_INCREF(Py_None
);
498 _resultobj
= Py_None
;
502 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
503 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
504 PyObject
* _resultobj
;
505 wxDataFormatId _result
;
506 wxDataFormat
* _arg0
;
507 PyObject
* _argo0
= 0;
508 char *_kwnames
[] = { "self", NULL
};
511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
521 wxPy_BEGIN_ALLOW_THREADS
;
522 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
524 wxPy_END_ALLOW_THREADS
;
525 if (PyErr_Occurred()) return NULL
;
526 } _resultobj
= Py_BuildValue("i",_result
);
530 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
531 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
534 wxDataFormat
* _arg0
;
535 PyObject
* _argo0
= 0;
536 char *_kwnames
[] = { "self", NULL
};
539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
549 wxPy_BEGIN_ALLOW_THREADS
;
550 _result
= new wxString (wxDataFormat_GetId(_arg0
));
552 wxPy_END_ALLOW_THREADS
;
553 if (PyErr_Occurred()) return NULL
;
555 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
563 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
564 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxDataFormat
* _arg0
;
568 PyObject
* _argo0
= 0;
569 char *_kwnames
[] = { "self","format", NULL
};
572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
582 wxPy_BEGIN_ALLOW_THREADS
;
583 wxDataFormat_SetId(_arg0
,_arg1
);
585 wxPy_END_ALLOW_THREADS
;
586 if (PyErr_Occurred()) return NULL
;
587 } Py_INCREF(Py_None
);
588 _resultobj
= Py_None
;
592 #define delete_wxDataObject(_swigobj) (delete _swigobj)
593 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
594 PyObject
* _resultobj
;
595 wxDataObject
* _arg0
;
596 PyObject
* _argo0
= 0;
597 char *_kwnames
[] = { "self", NULL
};
600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
610 wxPy_BEGIN_ALLOW_THREADS
;
611 delete_wxDataObject(_arg0
);
613 wxPy_END_ALLOW_THREADS
;
614 if (PyErr_Occurred()) return NULL
;
615 } Py_INCREF(Py_None
);
616 _resultobj
= Py_None
;
620 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
621 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
622 PyObject
* _resultobj
;
623 wxDataFormat
* _result
;
624 wxDataObject
* _arg0
;
625 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
626 PyObject
* _argo0
= 0;
627 char *_kwnames
[] = { "self","dir", NULL
};
631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
641 wxPy_BEGIN_ALLOW_THREADS
;
642 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
644 wxPy_END_ALLOW_THREADS
;
645 if (PyErr_Occurred()) return NULL
;
646 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
647 _resultobj
= Py_BuildValue("s",_ptemp
);
651 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
652 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
653 PyObject
* _resultobj
;
655 wxDataObject
* _arg0
;
656 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
657 PyObject
* _argo0
= 0;
658 char *_kwnames
[] = { "self","dir", NULL
};
661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
671 wxPy_BEGIN_ALLOW_THREADS
;
672 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
674 wxPy_END_ALLOW_THREADS
;
675 if (PyErr_Occurred()) return NULL
;
676 } _resultobj
= Py_BuildValue("i",_result
);
680 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
681 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
682 PyObject
* _resultobj
;
683 wxDataObject
* _arg0
;
684 wxDataFormat
* _arg1
;
685 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
686 PyObject
* _argo0
= 0;
687 PyObject
* _argo1
= 0;
688 char *_kwnames
[] = { "self","formats","dir", NULL
};
691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
701 if (_argo1
== Py_None
) { _arg1
= NULL
; }
702 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
708 wxPy_BEGIN_ALLOW_THREADS
;
709 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
711 wxPy_END_ALLOW_THREADS
;
712 if (PyErr_Occurred()) return NULL
;
713 } Py_INCREF(Py_None
);
714 _resultobj
= Py_None
;
718 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
719 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
720 PyObject
* _resultobj
;
722 wxDataObject
* _arg0
;
723 wxDataFormat
* _arg1
;
724 PyObject
* _argo0
= 0;
725 PyObject
* _argo1
= 0;
726 char *_kwnames
[] = { "self","format", NULL
};
729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
739 if (_argo1
== Py_None
) { _arg1
= NULL
; }
740 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
746 wxPy_BEGIN_ALLOW_THREADS
;
747 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
749 wxPy_END_ALLOW_THREADS
;
750 if (PyErr_Occurred()) return NULL
;
751 } _resultobj
= Py_BuildValue("i",_result
);
755 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
756 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
757 PyObject
* _resultobj
;
759 wxDataObject
* _arg0
;
760 wxDataFormat
* _arg1
;
762 PyObject
* _argo0
= 0;
763 PyObject
* _argo1
= 0;
764 PyObject
* _argo2
= 0;
765 char *_kwnames
[] = { "self","format","buf", NULL
};
768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
785 if (_argo2
== Py_None
) { _arg2
= NULL
; }
786 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
792 wxPy_BEGIN_ALLOW_THREADS
;
793 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
795 wxPy_END_ALLOW_THREADS
;
796 if (PyErr_Occurred()) return NULL
;
797 } _resultobj
= Py_BuildValue("i",_result
);
801 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
802 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
803 PyObject
* _resultobj
;
805 wxDataObject
* _arg0
;
806 wxDataFormat
* _arg1
;
809 PyObject
* _argo0
= 0;
810 PyObject
* _argo1
= 0;
811 PyObject
* _argo3
= 0;
812 char *_kwnames
[] = { "self","format","len","buf", NULL
};
815 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
818 if (_argo0
== Py_None
) { _arg0
= NULL
; }
819 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
825 if (_argo1
== Py_None
) { _arg1
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
832 if (_argo3
== Py_None
) { _arg3
= NULL
; }
833 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
839 wxPy_BEGIN_ALLOW_THREADS
;
840 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
842 wxPy_END_ALLOW_THREADS
;
843 if (PyErr_Occurred()) return NULL
;
844 } _resultobj
= Py_BuildValue("i",_result
);
848 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
849 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
850 PyObject
* _resultobj
;
852 wxDataObject
* _arg0
;
853 wxDataFormat
* _arg1
;
854 PyObject
* _argo0
= 0;
855 PyObject
* _argo1
= 0;
856 char *_kwnames
[] = { "self","format", NULL
};
859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
869 if (_argo1
== Py_None
) { _arg1
= NULL
; }
870 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
876 wxPy_BEGIN_ALLOW_THREADS
;
877 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
879 wxPy_END_ALLOW_THREADS
;
880 if (PyErr_Occurred()) return NULL
;
881 } _resultobj
= Py_BuildValue("i",_result
);
885 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
886 wxDataObjectSimple
*src
;
888 src
= (wxDataObjectSimple
*) ptr
;
889 dest
= (wxDataObject
*) src
;
890 return (void *) dest
;
893 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
894 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
895 PyObject
* _resultobj
;
896 wxDataObjectSimple
* _result
;
897 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
898 PyObject
* _argo0
= 0;
899 char *_kwnames
[] = { "format", NULL
};
903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
913 wxPy_BEGIN_ALLOW_THREADS
;
914 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
916 wxPy_END_ALLOW_THREADS
;
917 if (PyErr_Occurred()) return NULL
;
919 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
920 _resultobj
= Py_BuildValue("s",_ptemp
);
923 _resultobj
= Py_None
;
928 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
929 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
930 PyObject
* _resultobj
;
931 wxDataFormat
* _result
;
932 wxDataObjectSimple
* _arg0
;
933 PyObject
* _argo0
= 0;
934 char *_kwnames
[] = { "self", NULL
};
938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
948 wxPy_BEGIN_ALLOW_THREADS
;
949 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
950 _result
= (wxDataFormat
*) &_result_ref
;
952 wxPy_END_ALLOW_THREADS
;
953 if (PyErr_Occurred()) return NULL
;
955 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
956 _resultobj
= Py_BuildValue("s",_ptemp
);
959 _resultobj
= Py_None
;
964 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
965 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
966 PyObject
* _resultobj
;
967 wxDataObjectSimple
* _arg0
;
968 wxDataFormat
* _arg1
;
969 PyObject
* _argo0
= 0;
970 PyObject
* _argo1
= 0;
971 char *_kwnames
[] = { "self","format", NULL
};
974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
984 if (_argo1
== Py_None
) { _arg1
= NULL
; }
985 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
991 wxPy_BEGIN_ALLOW_THREADS
;
992 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
994 wxPy_END_ALLOW_THREADS
;
995 if (PyErr_Occurred()) return NULL
;
996 } Py_INCREF(Py_None
);
997 _resultobj
= Py_None
;
1001 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
1002 wxPyDataObjectSimple
*src
;
1003 wxDataObjectSimple
*dest
;
1004 src
= (wxPyDataObjectSimple
*) ptr
;
1005 dest
= (wxDataObjectSimple
*) src
;
1006 return (void *) dest
;
1009 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1010 wxPyDataObjectSimple
*src
;
1012 src
= (wxPyDataObjectSimple
*) ptr
;
1013 dest
= (wxDataObject
*) src
;
1014 return (void *) dest
;
1017 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1018 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1019 PyObject
* _resultobj
;
1020 wxPyDataObjectSimple
* _result
;
1021 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1022 PyObject
* _argo0
= 0;
1023 char *_kwnames
[] = { "format", NULL
};
1027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1037 wxPy_BEGIN_ALLOW_THREADS
;
1038 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1040 wxPy_END_ALLOW_THREADS
;
1041 if (PyErr_Occurred()) return NULL
;
1043 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1044 _resultobj
= Py_BuildValue("s",_ptemp
);
1047 _resultobj
= Py_None
;
1052 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1053 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1054 PyObject
* _resultobj
;
1055 wxPyDataObjectSimple
* _arg0
;
1058 PyObject
* _argo0
= 0;
1059 PyObject
* _obj1
= 0;
1060 PyObject
* _obj2
= 0;
1061 char *_kwnames
[] = { "self","self","_class", NULL
};
1064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1080 wxPy_BEGIN_ALLOW_THREADS
;
1081 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1083 wxPy_END_ALLOW_THREADS
;
1084 if (PyErr_Occurred()) return NULL
;
1085 } Py_INCREF(Py_None
);
1086 _resultobj
= Py_None
;
1090 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1091 wxDataObjectComposite
*src
;
1093 src
= (wxDataObjectComposite
*) ptr
;
1094 dest
= (wxDataObject
*) src
;
1095 return (void *) dest
;
1098 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1099 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1100 PyObject
* _resultobj
;
1101 wxDataObjectComposite
* _result
;
1102 char *_kwnames
[] = { NULL
};
1106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1109 wxPy_BEGIN_ALLOW_THREADS
;
1110 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1112 wxPy_END_ALLOW_THREADS
;
1113 if (PyErr_Occurred()) return NULL
;
1115 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1116 _resultobj
= Py_BuildValue("s",_ptemp
);
1119 _resultobj
= Py_None
;
1124 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1125 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1126 PyObject
* _resultobj
;
1127 wxDataObjectComposite
* _arg0
;
1128 wxDataObjectSimple
* _arg1
;
1129 int _arg2
= (int ) FALSE
;
1130 PyObject
* _argo0
= 0;
1131 PyObject
* _argo1
= 0;
1132 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1145 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1146 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1152 wxPy_BEGIN_ALLOW_THREADS
;
1153 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1155 wxPy_END_ALLOW_THREADS
;
1156 if (PyErr_Occurred()) return NULL
;
1157 } Py_INCREF(Py_None
);
1158 _resultobj
= Py_None
;
1162 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1163 wxTextDataObject
*src
;
1164 wxDataObjectSimple
*dest
;
1165 src
= (wxTextDataObject
*) ptr
;
1166 dest
= (wxDataObjectSimple
*) src
;
1167 return (void *) dest
;
1170 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1171 wxTextDataObject
*src
;
1173 src
= (wxTextDataObject
*) ptr
;
1174 dest
= (wxDataObject
*) src
;
1175 return (void *) dest
;
1178 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1179 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1180 PyObject
* _resultobj
;
1181 wxTextDataObject
* _result
;
1182 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1183 PyObject
* _obj0
= 0;
1184 char *_kwnames
[] = { "text", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1192 #if PYTHON_API_VERSION >= 1009
1193 char* tmpPtr
; int tmpSize
;
1194 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1195 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1198 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1200 _arg0
= new wxString(tmpPtr
, tmpSize
);
1202 if (!PyString_Check(_obj0
)) {
1203 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1206 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1210 wxPy_BEGIN_ALLOW_THREADS
;
1211 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1213 wxPy_END_ALLOW_THREADS
;
1214 if (PyErr_Occurred()) return NULL
;
1216 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1217 _resultobj
= Py_BuildValue("s",_ptemp
);
1220 _resultobj
= Py_None
;
1229 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1230 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1231 PyObject
* _resultobj
;
1233 wxTextDataObject
* _arg0
;
1234 PyObject
* _argo0
= 0;
1235 char *_kwnames
[] = { "self", NULL
};
1238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1248 wxPy_BEGIN_ALLOW_THREADS
;
1249 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1251 wxPy_END_ALLOW_THREADS
;
1252 if (PyErr_Occurred()) return NULL
;
1253 } _resultobj
= Py_BuildValue("i",_result
);
1257 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1258 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1259 PyObject
* _resultobj
;
1261 wxTextDataObject
* _arg0
;
1262 PyObject
* _argo0
= 0;
1263 char *_kwnames
[] = { "self", NULL
};
1266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1276 wxPy_BEGIN_ALLOW_THREADS
;
1277 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1279 wxPy_END_ALLOW_THREADS
;
1280 if (PyErr_Occurred()) return NULL
;
1282 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1290 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1291 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1292 PyObject
* _resultobj
;
1293 wxTextDataObject
* _arg0
;
1295 PyObject
* _argo0
= 0;
1296 PyObject
* _obj1
= 0;
1297 char *_kwnames
[] = { "self","text", NULL
};
1300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1310 #if PYTHON_API_VERSION >= 1009
1311 char* tmpPtr
; int tmpSize
;
1312 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1313 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1316 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1318 _arg1
= new wxString(tmpPtr
, tmpSize
);
1320 if (!PyString_Check(_obj1
)) {
1321 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1324 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1328 wxPy_BEGIN_ALLOW_THREADS
;
1329 wxTextDataObject_SetText(_arg0
,*_arg1
);
1331 wxPy_END_ALLOW_THREADS
;
1332 if (PyErr_Occurred()) return NULL
;
1333 } Py_INCREF(Py_None
);
1334 _resultobj
= Py_None
;
1342 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1343 wxPyTextDataObject
*src
;
1344 wxTextDataObject
*dest
;
1345 src
= (wxPyTextDataObject
*) ptr
;
1346 dest
= (wxTextDataObject
*) src
;
1347 return (void *) dest
;
1350 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1351 wxPyTextDataObject
*src
;
1352 wxDataObjectSimple
*dest
;
1353 src
= (wxPyTextDataObject
*) ptr
;
1354 dest
= (wxDataObjectSimple
*) src
;
1355 return (void *) dest
;
1358 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1359 wxPyTextDataObject
*src
;
1361 src
= (wxPyTextDataObject
*) ptr
;
1362 dest
= (wxDataObject
*) src
;
1363 return (void *) dest
;
1366 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1367 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1368 PyObject
* _resultobj
;
1369 wxPyTextDataObject
* _result
;
1370 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1371 PyObject
* _obj0
= 0;
1372 char *_kwnames
[] = { "text", NULL
};
1376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1380 #if PYTHON_API_VERSION >= 1009
1381 char* tmpPtr
; int tmpSize
;
1382 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1383 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1386 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1388 _arg0
= new wxString(tmpPtr
, tmpSize
);
1390 if (!PyString_Check(_obj0
)) {
1391 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1394 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1398 wxPy_BEGIN_ALLOW_THREADS
;
1399 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1401 wxPy_END_ALLOW_THREADS
;
1402 if (PyErr_Occurred()) return NULL
;
1404 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1405 _resultobj
= Py_BuildValue("s",_ptemp
);
1408 _resultobj
= Py_None
;
1417 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1418 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1419 PyObject
* _resultobj
;
1420 wxPyTextDataObject
* _arg0
;
1423 PyObject
* _argo0
= 0;
1424 PyObject
* _obj1
= 0;
1425 PyObject
* _obj2
= 0;
1426 char *_kwnames
[] = { "self","self","_class", NULL
};
1429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1445 wxPy_BEGIN_ALLOW_THREADS
;
1446 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1448 wxPy_END_ALLOW_THREADS
;
1449 if (PyErr_Occurred()) return NULL
;
1450 } Py_INCREF(Py_None
);
1451 _resultobj
= Py_None
;
1455 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1456 wxBitmapDataObject
*src
;
1457 wxDataObjectSimple
*dest
;
1458 src
= (wxBitmapDataObject
*) ptr
;
1459 dest
= (wxDataObjectSimple
*) src
;
1460 return (void *) dest
;
1463 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1464 wxBitmapDataObject
*src
;
1466 src
= (wxBitmapDataObject
*) ptr
;
1467 dest
= (wxDataObject
*) src
;
1468 return (void *) dest
;
1471 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1472 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1473 PyObject
* _resultobj
;
1474 wxBitmapDataObject
* _result
;
1475 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1476 PyObject
* _argo0
= 0;
1477 char *_kwnames
[] = { "bitmap", NULL
};
1481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1491 wxPy_BEGIN_ALLOW_THREADS
;
1492 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1494 wxPy_END_ALLOW_THREADS
;
1495 if (PyErr_Occurred()) return NULL
;
1497 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1498 _resultobj
= Py_BuildValue("s",_ptemp
);
1501 _resultobj
= Py_None
;
1506 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1507 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1508 PyObject
* _resultobj
;
1510 wxBitmapDataObject
* _arg0
;
1511 PyObject
* _argo0
= 0;
1512 char *_kwnames
[] = { "self", NULL
};
1516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1526 wxPy_BEGIN_ALLOW_THREADS
;
1527 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1529 wxPy_END_ALLOW_THREADS
;
1530 if (PyErr_Occurred()) return NULL
;
1531 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1532 _resultobj
= Py_BuildValue("s",_ptemp
);
1536 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1537 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1538 PyObject
* _resultobj
;
1539 wxBitmapDataObject
* _arg0
;
1541 PyObject
* _argo0
= 0;
1542 PyObject
* _argo1
= 0;
1543 char *_kwnames
[] = { "self","bitmap", NULL
};
1546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1556 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1557 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1563 wxPy_BEGIN_ALLOW_THREADS
;
1564 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1566 wxPy_END_ALLOW_THREADS
;
1567 if (PyErr_Occurred()) return NULL
;
1568 } Py_INCREF(Py_None
);
1569 _resultobj
= Py_None
;
1573 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1574 wxPyBitmapDataObject
*src
;
1575 wxBitmapDataObject
*dest
;
1576 src
= (wxPyBitmapDataObject
*) ptr
;
1577 dest
= (wxBitmapDataObject
*) src
;
1578 return (void *) dest
;
1581 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1582 wxPyBitmapDataObject
*src
;
1583 wxDataObjectSimple
*dest
;
1584 src
= (wxPyBitmapDataObject
*) ptr
;
1585 dest
= (wxDataObjectSimple
*) src
;
1586 return (void *) dest
;
1589 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1590 wxPyBitmapDataObject
*src
;
1592 src
= (wxPyBitmapDataObject
*) ptr
;
1593 dest
= (wxDataObject
*) src
;
1594 return (void *) dest
;
1597 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1598 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1599 PyObject
* _resultobj
;
1600 wxPyBitmapDataObject
* _result
;
1601 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1602 PyObject
* _argo0
= 0;
1603 char *_kwnames
[] = { "bitmap", NULL
};
1607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1617 wxPy_BEGIN_ALLOW_THREADS
;
1618 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1620 wxPy_END_ALLOW_THREADS
;
1621 if (PyErr_Occurred()) return NULL
;
1623 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1624 _resultobj
= Py_BuildValue("s",_ptemp
);
1627 _resultobj
= Py_None
;
1632 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1633 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1634 PyObject
* _resultobj
;
1635 wxPyBitmapDataObject
* _arg0
;
1638 PyObject
* _argo0
= 0;
1639 PyObject
* _obj1
= 0;
1640 PyObject
* _obj2
= 0;
1641 char *_kwnames
[] = { "self","self","_class", NULL
};
1644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1660 wxPy_BEGIN_ALLOW_THREADS
;
1661 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1663 wxPy_END_ALLOW_THREADS
;
1664 if (PyErr_Occurred()) return NULL
;
1665 } Py_INCREF(Py_None
);
1666 _resultobj
= Py_None
;
1670 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1671 wxFileDataObject
*src
;
1672 wxDataObjectSimple
*dest
;
1673 src
= (wxFileDataObject
*) ptr
;
1674 dest
= (wxDataObjectSimple
*) src
;
1675 return (void *) dest
;
1678 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1679 wxFileDataObject
*src
;
1681 src
= (wxFileDataObject
*) ptr
;
1682 dest
= (wxDataObject
*) src
;
1683 return (void *) dest
;
1686 #define new_wxFileDataObject() (new wxFileDataObject())
1687 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1688 PyObject
* _resultobj
;
1689 wxFileDataObject
* _result
;
1690 char *_kwnames
[] = { NULL
};
1694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1697 wxPy_BEGIN_ALLOW_THREADS
;
1698 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1700 wxPy_END_ALLOW_THREADS
;
1701 if (PyErr_Occurred()) return NULL
;
1703 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1704 _resultobj
= Py_BuildValue("s",_ptemp
);
1707 _resultobj
= Py_None
;
1712 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1713 const wxArrayString
& strings
= self
->GetFilenames();
1714 PyObject
* list
= PyList_New(0);
1715 for (size_t x
=0; x
<strings
.GetCount(); x
++)
1716 PyList_Append(list
, PyString_FromString(strings
[x
]));
1719 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1720 PyObject
* _resultobj
;
1722 wxFileDataObject
* _arg0
;
1723 PyObject
* _argo0
= 0;
1724 char *_kwnames
[] = { "self", NULL
};
1727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1737 wxPy_BEGIN_ALLOW_THREADS
;
1738 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1740 wxPy_END_ALLOW_THREADS
;
1741 if (PyErr_Occurred()) return NULL
;
1743 _resultobj
= _result
;
1748 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1749 wxCustomDataObject
*src
;
1750 wxDataObjectSimple
*dest
;
1751 src
= (wxCustomDataObject
*) ptr
;
1752 dest
= (wxDataObjectSimple
*) src
;
1753 return (void *) dest
;
1756 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1757 wxCustomDataObject
*src
;
1759 src
= (wxCustomDataObject
*) ptr
;
1760 dest
= (wxDataObject
*) src
;
1761 return (void *) dest
;
1764 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1765 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1766 PyObject
* _resultobj
;
1767 wxCustomDataObject
* _result
;
1768 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1769 PyObject
* _argo0
= 0;
1770 char *_kwnames
[] = { "format", NULL
};
1774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1784 wxPy_BEGIN_ALLOW_THREADS
;
1785 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1787 wxPy_END_ALLOW_THREADS
;
1788 if (PyErr_Occurred()) return NULL
;
1790 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1791 _resultobj
= Py_BuildValue("s",_ptemp
);
1794 _resultobj
= Py_None
;
1799 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1800 if (PyString_Check(data
)) {
1801 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1804 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1805 PyObject
* _resultobj
;
1806 wxCustomDataObject
* _arg0
;
1808 PyObject
* _argo0
= 0;
1809 PyObject
* _obj1
= 0;
1810 char *_kwnames
[] = { "self","data", NULL
};
1813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1826 wxPy_BEGIN_ALLOW_THREADS
;
1827 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1829 wxPy_END_ALLOW_THREADS
;
1830 if (PyErr_Occurred()) return NULL
;
1831 } Py_INCREF(Py_None
);
1832 _resultobj
= Py_None
;
1836 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1837 if (PyString_Check(data
)) {
1838 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1842 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1845 wxCustomDataObject
* _arg0
;
1847 PyObject
* _argo0
= 0;
1848 PyObject
* _obj1
= 0;
1849 char *_kwnames
[] = { "self","data", NULL
};
1852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1865 wxPy_BEGIN_ALLOW_THREADS
;
1866 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1868 wxPy_END_ALLOW_THREADS
;
1869 if (PyErr_Occurred()) return NULL
;
1870 } _resultobj
= Py_BuildValue("i",_result
);
1874 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1875 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1876 PyObject
* _resultobj
;
1878 wxCustomDataObject
* _arg0
;
1879 PyObject
* _argo0
= 0;
1880 char *_kwnames
[] = { "self", NULL
};
1883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1893 wxPy_BEGIN_ALLOW_THREADS
;
1894 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1896 wxPy_END_ALLOW_THREADS
;
1897 if (PyErr_Occurred()) return NULL
;
1898 } _resultobj
= Py_BuildValue("i",_result
);
1902 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1903 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1905 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1906 PyObject
* _resultobj
;
1908 wxCustomDataObject
* _arg0
;
1909 PyObject
* _argo0
= 0;
1910 char *_kwnames
[] = { "self", NULL
};
1913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1923 wxPy_BEGIN_ALLOW_THREADS
;
1924 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1926 wxPy_END_ALLOW_THREADS
;
1927 if (PyErr_Occurred()) return NULL
;
1929 _resultobj
= _result
;
1934 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1935 wxURLDataObject
*src
;
1936 wxDataObjectComposite
*dest
;
1937 src
= (wxURLDataObject
*) ptr
;
1938 dest
= (wxDataObjectComposite
*) src
;
1939 return (void *) dest
;
1942 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1943 wxURLDataObject
*src
;
1945 src
= (wxURLDataObject
*) ptr
;
1946 dest
= (wxDataObject
*) src
;
1947 return (void *) dest
;
1950 #define new_wxURLDataObject() (new wxURLDataObject())
1951 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1952 PyObject
* _resultobj
;
1953 wxURLDataObject
* _result
;
1954 char *_kwnames
[] = { NULL
};
1958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1961 wxPy_BEGIN_ALLOW_THREADS
;
1962 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1964 wxPy_END_ALLOW_THREADS
;
1965 if (PyErr_Occurred()) return NULL
;
1967 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1968 _resultobj
= Py_BuildValue("s",_ptemp
);
1971 _resultobj
= Py_None
;
1976 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1977 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1978 PyObject
* _resultobj
;
1980 wxURLDataObject
* _arg0
;
1981 PyObject
* _argo0
= 0;
1982 char *_kwnames
[] = { "self", NULL
};
1985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1995 wxPy_BEGIN_ALLOW_THREADS
;
1996 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1998 wxPy_END_ALLOW_THREADS
;
1999 if (PyErr_Occurred()) return NULL
;
2001 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2009 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2010 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2011 PyObject
* _resultobj
;
2012 wxURLDataObject
* _arg0
;
2014 PyObject
* _argo0
= 0;
2015 PyObject
* _obj1
= 0;
2016 char *_kwnames
[] = { "self","url", NULL
};
2019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2029 #if PYTHON_API_VERSION >= 1009
2030 char* tmpPtr
; int tmpSize
;
2031 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2032 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2035 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2037 _arg1
= new wxString(tmpPtr
, tmpSize
);
2039 if (!PyString_Check(_obj1
)) {
2040 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2043 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2047 wxPy_BEGIN_ALLOW_THREADS
;
2048 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2050 wxPy_END_ALLOW_THREADS
;
2051 if (PyErr_Occurred()) return NULL
;
2052 } Py_INCREF(Py_None
);
2053 _resultobj
= Py_None
;
2061 static void *SwigwxClipboardTowxObject(void *ptr
) {
2064 src
= (wxClipboard
*) ptr
;
2065 dest
= (wxObject
*) src
;
2066 return (void *) dest
;
2069 #define new_wxClipboard() (new wxClipboard())
2070 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2071 PyObject
* _resultobj
;
2072 wxClipboard
* _result
;
2073 char *_kwnames
[] = { NULL
};
2077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2080 wxPy_BEGIN_ALLOW_THREADS
;
2081 _result
= (wxClipboard
*)new_wxClipboard();
2083 wxPy_END_ALLOW_THREADS
;
2084 if (PyErr_Occurred()) return NULL
;
2086 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2087 _resultobj
= Py_BuildValue("s",_ptemp
);
2090 _resultobj
= Py_None
;
2095 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2096 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2097 PyObject
* _resultobj
;
2099 wxClipboard
* _arg0
;
2100 PyObject
* _argo0
= 0;
2101 char *_kwnames
[] = { "self", NULL
};
2104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2114 wxPy_BEGIN_ALLOW_THREADS
;
2115 _result
= (bool )wxClipboard_Open(_arg0
);
2117 wxPy_END_ALLOW_THREADS
;
2118 if (PyErr_Occurred()) return NULL
;
2119 } _resultobj
= Py_BuildValue("i",_result
);
2123 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2124 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2125 PyObject
* _resultobj
;
2126 wxClipboard
* _arg0
;
2127 PyObject
* _argo0
= 0;
2128 char *_kwnames
[] = { "self", NULL
};
2131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2141 wxPy_BEGIN_ALLOW_THREADS
;
2142 wxClipboard_Close(_arg0
);
2144 wxPy_END_ALLOW_THREADS
;
2145 if (PyErr_Occurred()) return NULL
;
2146 } Py_INCREF(Py_None
);
2147 _resultobj
= Py_None
;
2151 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2152 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2153 PyObject
* _resultobj
;
2155 wxClipboard
* _arg0
;
2156 PyObject
* _argo0
= 0;
2157 char *_kwnames
[] = { "self", NULL
};
2160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2170 wxPy_BEGIN_ALLOW_THREADS
;
2171 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2173 wxPy_END_ALLOW_THREADS
;
2174 if (PyErr_Occurred()) return NULL
;
2175 } _resultobj
= Py_BuildValue("i",_result
);
2179 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2180 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2181 PyObject
* _resultobj
;
2183 wxClipboard
* _arg0
;
2184 wxDataObject
* _arg1
;
2185 PyObject
* _argo0
= 0;
2186 PyObject
* _argo1
= 0;
2187 char *_kwnames
[] = { "self","data", NULL
};
2190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2200 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2201 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2207 wxPy_BEGIN_ALLOW_THREADS
;
2208 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2210 wxPy_END_ALLOW_THREADS
;
2211 if (PyErr_Occurred()) return NULL
;
2212 } _resultobj
= Py_BuildValue("i",_result
);
2216 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2217 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2218 PyObject
* _resultobj
;
2220 wxClipboard
* _arg0
;
2221 wxDataObject
* _arg1
;
2222 PyObject
* _argo0
= 0;
2223 PyObject
* _argo1
= 0;
2224 char *_kwnames
[] = { "self","data", NULL
};
2227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2244 wxPy_BEGIN_ALLOW_THREADS
;
2245 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2247 wxPy_END_ALLOW_THREADS
;
2248 if (PyErr_Occurred()) return NULL
;
2249 } _resultobj
= Py_BuildValue("i",_result
);
2253 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2254 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2255 PyObject
* _resultobj
;
2257 wxClipboard
* _arg0
;
2258 wxDataFormat
* _arg1
;
2259 PyObject
* _argo0
= 0;
2260 PyObject
* _argo1
= 0;
2261 char *_kwnames
[] = { "self","format", NULL
};
2264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2274 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2275 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2281 wxPy_BEGIN_ALLOW_THREADS
;
2282 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2284 wxPy_END_ALLOW_THREADS
;
2285 if (PyErr_Occurred()) return NULL
;
2286 } _resultobj
= Py_BuildValue("i",_result
);
2290 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2291 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2292 PyObject
* _resultobj
;
2294 wxClipboard
* _arg0
;
2295 wxDataObject
* _arg1
;
2296 PyObject
* _argo0
= 0;
2297 PyObject
* _argo1
= 0;
2298 char *_kwnames
[] = { "self","data", NULL
};
2301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2311 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2312 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2318 wxPy_BEGIN_ALLOW_THREADS
;
2319 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2321 wxPy_END_ALLOW_THREADS
;
2322 if (PyErr_Occurred()) return NULL
;
2323 } _resultobj
= Py_BuildValue("i",_result
);
2327 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2328 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2329 PyObject
* _resultobj
;
2330 wxClipboard
* _arg0
;
2331 PyObject
* _argo0
= 0;
2332 char *_kwnames
[] = { "self", NULL
};
2335 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2338 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2339 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2345 wxPy_BEGIN_ALLOW_THREADS
;
2346 wxClipboard_Clear(_arg0
);
2348 wxPy_END_ALLOW_THREADS
;
2349 if (PyErr_Occurred()) return NULL
;
2350 } Py_INCREF(Py_None
);
2351 _resultobj
= Py_None
;
2355 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2356 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2357 PyObject
* _resultobj
;
2359 wxClipboard
* _arg0
;
2360 PyObject
* _argo0
= 0;
2361 char *_kwnames
[] = { "self", NULL
};
2364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2374 wxPy_BEGIN_ALLOW_THREADS
;
2375 _result
= (bool )wxClipboard_Flush(_arg0
);
2377 wxPy_END_ALLOW_THREADS
;
2378 if (PyErr_Occurred()) return NULL
;
2379 } _resultobj
= Py_BuildValue("i",_result
);
2383 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2384 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2385 PyObject
* _resultobj
;
2386 wxClipboard
* _arg0
;
2387 int _arg1
= (int ) FALSE
;
2388 PyObject
* _argo0
= 0;
2389 char *_kwnames
[] = { "self","primary", NULL
};
2392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2402 wxPy_BEGIN_ALLOW_THREADS
;
2403 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2405 wxPy_END_ALLOW_THREADS
;
2406 if (PyErr_Occurred()) return NULL
;
2407 } Py_INCREF(Py_None
);
2408 _resultobj
= Py_None
;
2412 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2413 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2414 PyObject
* _resultobj
;
2415 wxPyDropSource
* _result
;
2416 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2417 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2418 PyObject
* _argo0
= 0;
2419 PyObject
* _argo1
= 0;
2420 char *_kwnames
[] = { "win","go", NULL
};
2424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2434 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2435 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2441 wxPy_BEGIN_ALLOW_THREADS
;
2442 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2444 wxPy_END_ALLOW_THREADS
;
2445 if (PyErr_Occurred()) return NULL
;
2447 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2448 _resultobj
= Py_BuildValue("s",_ptemp
);
2451 _resultobj
= Py_None
;
2456 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2457 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2458 PyObject
* _resultobj
;
2459 wxPyDropSource
* _arg0
;
2463 PyObject
* _argo0
= 0;
2464 PyObject
* _obj1
= 0;
2465 PyObject
* _obj2
= 0;
2466 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2485 wxPy_BEGIN_ALLOW_THREADS
;
2486 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2488 wxPy_END_ALLOW_THREADS
;
2489 if (PyErr_Occurred()) return NULL
;
2490 } Py_INCREF(Py_None
);
2491 _resultobj
= Py_None
;
2495 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2496 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2497 PyObject
* _resultobj
;
2498 wxPyDropSource
* _arg0
;
2499 PyObject
* _argo0
= 0;
2500 char *_kwnames
[] = { "self", NULL
};
2503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2513 wxPy_BEGIN_ALLOW_THREADS
;
2514 delete_wxPyDropSource(_arg0
);
2516 wxPy_END_ALLOW_THREADS
;
2517 if (PyErr_Occurred()) return NULL
;
2518 } Py_INCREF(Py_None
);
2519 _resultobj
= Py_None
;
2523 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2524 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
* _resultobj
;
2526 wxPyDropSource
* _arg0
;
2527 wxDataObject
* _arg1
;
2528 PyObject
* _argo0
= 0;
2529 PyObject
* _argo1
= 0;
2530 char *_kwnames
[] = { "self","data", NULL
};
2533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2543 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2550 wxPy_BEGIN_ALLOW_THREADS
;
2551 wxDropSource_SetData(_arg0
,*_arg1
);
2553 wxPy_END_ALLOW_THREADS
;
2554 if (PyErr_Occurred()) return NULL
;
2555 } Py_INCREF(Py_None
);
2556 _resultobj
= Py_None
;
2560 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2561 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2562 PyObject
* _resultobj
;
2563 wxDataObject
* _result
;
2564 wxPyDropSource
* _arg0
;
2565 PyObject
* _argo0
= 0;
2566 char *_kwnames
[] = { "self", NULL
};
2570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2580 wxPy_BEGIN_ALLOW_THREADS
;
2581 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2583 wxPy_END_ALLOW_THREADS
;
2584 if (PyErr_Occurred()) return NULL
;
2586 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2587 _resultobj
= Py_BuildValue("s",_ptemp
);
2590 _resultobj
= Py_None
;
2595 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2596 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2597 PyObject
* _resultobj
;
2598 wxPyDropSource
* _arg0
;
2601 PyObject
* _argo0
= 0;
2602 PyObject
* _argo2
= 0;
2603 char *_kwnames
[] = { "self","res","cursor", NULL
};
2606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
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 wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2616 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2617 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2623 wxPy_BEGIN_ALLOW_THREADS
;
2624 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2626 wxPy_END_ALLOW_THREADS
;
2627 if (PyErr_Occurred()) return NULL
;
2628 } Py_INCREF(Py_None
);
2629 _resultobj
= Py_None
;
2633 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2634 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2635 PyObject
* _resultobj
;
2636 wxDragResult _result
;
2637 wxPyDropSource
* _arg0
;
2638 int _arg1
= (int ) FALSE
;
2639 PyObject
* _argo0
= 0;
2640 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2653 wxPy_BEGIN_ALLOW_THREADS
;
2654 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2656 wxPy_END_ALLOW_THREADS
;
2657 if (PyErr_Occurred()) return NULL
;
2658 } _resultobj
= Py_BuildValue("i",_result
);
2662 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2663 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2664 PyObject
* _resultobj
;
2666 wxPyDropSource
* _arg0
;
2668 PyObject
* _argo0
= 0;
2669 char *_kwnames
[] = { "self","effect", NULL
};
2672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
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_base_GiveFeedback. Expected _wxPyDropSource_p.");
2682 wxPy_BEGIN_ALLOW_THREADS
;
2683 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2685 wxPy_END_ALLOW_THREADS
;
2686 if (PyErr_Occurred()) return NULL
;
2687 } _resultobj
= Py_BuildValue("i",_result
);
2691 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2692 wxPyDropTarget
*src
;
2694 src
= (wxPyDropTarget
*) ptr
;
2695 dest
= (wxDropTarget
*) src
;
2696 return (void *) dest
;
2699 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2700 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2701 PyObject
* _resultobj
;
2702 wxPyDropTarget
* _result
;
2703 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2704 PyObject
* _argo0
= 0;
2705 char *_kwnames
[] = { "dataObject", NULL
};
2709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2719 wxPy_BEGIN_ALLOW_THREADS
;
2720 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2722 wxPy_END_ALLOW_THREADS
;
2723 if (PyErr_Occurred()) return NULL
;
2725 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2726 _resultobj
= Py_BuildValue("s",_ptemp
);
2729 _resultobj
= Py_None
;
2734 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2735 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2737 wxPyDropTarget
* _arg0
;
2740 PyObject
* _argo0
= 0;
2741 PyObject
* _obj1
= 0;
2742 PyObject
* _obj2
= 0;
2743 char *_kwnames
[] = { "self","self","_class", NULL
};
2746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2762 wxPy_BEGIN_ALLOW_THREADS
;
2763 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2765 wxPy_END_ALLOW_THREADS
;
2766 if (PyErr_Occurred()) return NULL
;
2767 } Py_INCREF(Py_None
);
2768 _resultobj
= Py_None
;
2772 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2773 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2774 PyObject
* _resultobj
;
2775 wxPyDropTarget
* _arg0
;
2776 PyObject
* _argo0
= 0;
2777 char *_kwnames
[] = { "self", NULL
};
2780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2790 wxPy_BEGIN_ALLOW_THREADS
;
2791 delete_wxPyDropTarget(_arg0
);
2793 wxPy_END_ALLOW_THREADS
;
2794 if (PyErr_Occurred()) return NULL
;
2795 } Py_INCREF(Py_None
);
2796 _resultobj
= Py_None
;
2800 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2801 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2802 PyObject
* _resultobj
;
2803 wxDataObject
* _result
;
2804 wxPyDropTarget
* _arg0
;
2805 PyObject
* _argo0
= 0;
2806 char *_kwnames
[] = { "self", NULL
};
2810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2820 wxPy_BEGIN_ALLOW_THREADS
;
2821 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2823 wxPy_END_ALLOW_THREADS
;
2824 if (PyErr_Occurred()) return NULL
;
2826 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2827 _resultobj
= Py_BuildValue("s",_ptemp
);
2830 _resultobj
= Py_None
;
2835 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2836 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2838 wxPyDropTarget
* _arg0
;
2839 wxDataObject
* _arg1
;
2840 PyObject
* _argo0
= 0;
2841 PyObject
* _argo1
= 0;
2842 char *_kwnames
[] = { "self","dataObject", NULL
};
2845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2855 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2856 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2862 wxPy_BEGIN_ALLOW_THREADS
;
2863 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2865 wxPy_END_ALLOW_THREADS
;
2866 if (PyErr_Occurred()) return NULL
;
2867 } Py_INCREF(Py_None
);
2868 _resultobj
= Py_None
;
2872 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2873 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2874 PyObject
* _resultobj
;
2875 wxDragResult _result
;
2876 wxPyDropTarget
* _arg0
;
2880 PyObject
* _argo0
= 0;
2881 char *_kwnames
[] = { "self","x","y","def", NULL
};
2884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2894 wxPy_BEGIN_ALLOW_THREADS
;
2895 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2897 wxPy_END_ALLOW_THREADS
;
2898 if (PyErr_Occurred()) return NULL
;
2899 } _resultobj
= Py_BuildValue("i",_result
);
2903 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2904 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2905 PyObject
* _resultobj
;
2906 wxDragResult _result
;
2907 wxPyDropTarget
* _arg0
;
2911 PyObject
* _argo0
= 0;
2912 char *_kwnames
[] = { "self","x","y","def", NULL
};
2915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2925 wxPy_BEGIN_ALLOW_THREADS
;
2926 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2928 wxPy_END_ALLOW_THREADS
;
2929 if (PyErr_Occurred()) return NULL
;
2930 } _resultobj
= Py_BuildValue("i",_result
);
2934 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2935 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2936 PyObject
* _resultobj
;
2937 wxPyDropTarget
* _arg0
;
2938 PyObject
* _argo0
= 0;
2939 char *_kwnames
[] = { "self", NULL
};
2942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2952 wxPy_BEGIN_ALLOW_THREADS
;
2953 wxPyDropTarget_base_OnLeave(_arg0
);
2955 wxPy_END_ALLOW_THREADS
;
2956 if (PyErr_Occurred()) return NULL
;
2957 } Py_INCREF(Py_None
);
2958 _resultobj
= Py_None
;
2962 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2963 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2964 PyObject
* _resultobj
;
2966 wxPyDropTarget
* _arg0
;
2969 PyObject
* _argo0
= 0;
2970 char *_kwnames
[] = { "self","x","y", NULL
};
2973 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2976 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2977 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2983 wxPy_BEGIN_ALLOW_THREADS
;
2984 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2986 wxPy_END_ALLOW_THREADS
;
2987 if (PyErr_Occurred()) return NULL
;
2988 } _resultobj
= Py_BuildValue("i",_result
);
2992 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2993 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2994 PyObject
* _resultobj
;
2996 wxPyDropTarget
* _arg0
;
2997 PyObject
* _argo0
= 0;
2998 char *_kwnames
[] = { "self", NULL
};
3001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3011 wxPy_BEGIN_ALLOW_THREADS
;
3012 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3014 wxPy_END_ALLOW_THREADS
;
3015 if (PyErr_Occurred()) return NULL
;
3016 } _resultobj
= Py_BuildValue("i",_result
);
3020 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3021 wxPyTextDropTarget
*src
;
3022 wxPyDropTarget
*dest
;
3023 src
= (wxPyTextDropTarget
*) ptr
;
3024 dest
= (wxPyDropTarget
*) src
;
3025 return (void *) dest
;
3028 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3029 wxPyTextDropTarget
*src
;
3031 src
= (wxPyTextDropTarget
*) ptr
;
3032 dest
= (wxDropTarget
*) src
;
3033 return (void *) dest
;
3036 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3037 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3038 PyObject
* _resultobj
;
3039 wxPyTextDropTarget
* _result
;
3040 char *_kwnames
[] = { NULL
};
3044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3047 wxPy_BEGIN_ALLOW_THREADS
;
3048 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3050 wxPy_END_ALLOW_THREADS
;
3051 if (PyErr_Occurred()) return NULL
;
3053 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3054 _resultobj
= Py_BuildValue("s",_ptemp
);
3057 _resultobj
= Py_None
;
3062 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3063 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3064 PyObject
* _resultobj
;
3065 wxPyTextDropTarget
* _arg0
;
3068 PyObject
* _argo0
= 0;
3069 PyObject
* _obj1
= 0;
3070 PyObject
* _obj2
= 0;
3071 char *_kwnames
[] = { "self","self","_class", NULL
};
3074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3090 wxPy_BEGIN_ALLOW_THREADS
;
3091 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3093 wxPy_END_ALLOW_THREADS
;
3094 if (PyErr_Occurred()) return NULL
;
3095 } Py_INCREF(Py_None
);
3096 _resultobj
= Py_None
;
3100 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3101 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3102 PyObject
* _resultobj
;
3103 wxDragResult _result
;
3104 wxPyTextDropTarget
* _arg0
;
3108 PyObject
* _argo0
= 0;
3109 char *_kwnames
[] = { "self","x","y","def", NULL
};
3112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3122 wxPy_BEGIN_ALLOW_THREADS
;
3123 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3125 wxPy_END_ALLOW_THREADS
;
3126 if (PyErr_Occurred()) return NULL
;
3127 } _resultobj
= Py_BuildValue("i",_result
);
3131 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3132 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3133 PyObject
* _resultobj
;
3134 wxDragResult _result
;
3135 wxPyTextDropTarget
* _arg0
;
3139 PyObject
* _argo0
= 0;
3140 char *_kwnames
[] = { "self","x","y","def", NULL
};
3143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3153 wxPy_BEGIN_ALLOW_THREADS
;
3154 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3156 wxPy_END_ALLOW_THREADS
;
3157 if (PyErr_Occurred()) return NULL
;
3158 } _resultobj
= Py_BuildValue("i",_result
);
3162 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3163 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3164 PyObject
* _resultobj
;
3165 wxPyTextDropTarget
* _arg0
;
3166 PyObject
* _argo0
= 0;
3167 char *_kwnames
[] = { "self", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3180 wxPy_BEGIN_ALLOW_THREADS
;
3181 wxTextDropTarget_base_OnLeave(_arg0
);
3183 wxPy_END_ALLOW_THREADS
;
3184 if (PyErr_Occurred()) return NULL
;
3185 } Py_INCREF(Py_None
);
3186 _resultobj
= Py_None
;
3190 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3191 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3192 PyObject
* _resultobj
;
3194 wxPyTextDropTarget
* _arg0
;
3197 PyObject
* _argo0
= 0;
3198 char *_kwnames
[] = { "self","x","y", NULL
};
3201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3211 wxPy_BEGIN_ALLOW_THREADS
;
3212 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3214 wxPy_END_ALLOW_THREADS
;
3215 if (PyErr_Occurred()) return NULL
;
3216 } _resultobj
= Py_BuildValue("i",_result
);
3220 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3221 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3222 PyObject
* _resultobj
;
3223 wxDragResult _result
;
3224 wxPyTextDropTarget
* _arg0
;
3228 PyObject
* _argo0
= 0;
3229 char *_kwnames
[] = { "self","x","y","def", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3242 wxPy_BEGIN_ALLOW_THREADS
;
3243 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3245 wxPy_END_ALLOW_THREADS
;
3246 if (PyErr_Occurred()) return NULL
;
3247 } _resultobj
= Py_BuildValue("i",_result
);
3251 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3252 wxPyFileDropTarget
*src
;
3253 wxPyDropTarget
*dest
;
3254 src
= (wxPyFileDropTarget
*) ptr
;
3255 dest
= (wxPyDropTarget
*) src
;
3256 return (void *) dest
;
3259 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3260 wxPyFileDropTarget
*src
;
3262 src
= (wxPyFileDropTarget
*) ptr
;
3263 dest
= (wxDropTarget
*) src
;
3264 return (void *) dest
;
3267 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3268 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3269 PyObject
* _resultobj
;
3270 wxPyFileDropTarget
* _result
;
3271 char *_kwnames
[] = { NULL
};
3275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3278 wxPy_BEGIN_ALLOW_THREADS
;
3279 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3281 wxPy_END_ALLOW_THREADS
;
3282 if (PyErr_Occurred()) return NULL
;
3284 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3285 _resultobj
= Py_BuildValue("s",_ptemp
);
3288 _resultobj
= Py_None
;
3293 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3294 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3295 PyObject
* _resultobj
;
3296 wxPyFileDropTarget
* _arg0
;
3299 PyObject
* _argo0
= 0;
3300 PyObject
* _obj1
= 0;
3301 PyObject
* _obj2
= 0;
3302 char *_kwnames
[] = { "self","self","_class", NULL
};
3305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3321 wxPy_BEGIN_ALLOW_THREADS
;
3322 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3324 wxPy_END_ALLOW_THREADS
;
3325 if (PyErr_Occurred()) return NULL
;
3326 } Py_INCREF(Py_None
);
3327 _resultobj
= Py_None
;
3331 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3332 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3333 PyObject
* _resultobj
;
3334 wxDragResult _result
;
3335 wxPyFileDropTarget
* _arg0
;
3339 PyObject
* _argo0
= 0;
3340 char *_kwnames
[] = { "self","x","y","def", NULL
};
3343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3353 wxPy_BEGIN_ALLOW_THREADS
;
3354 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3356 wxPy_END_ALLOW_THREADS
;
3357 if (PyErr_Occurred()) return NULL
;
3358 } _resultobj
= Py_BuildValue("i",_result
);
3362 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3363 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3364 PyObject
* _resultobj
;
3365 wxDragResult _result
;
3366 wxPyFileDropTarget
* _arg0
;
3370 PyObject
* _argo0
= 0;
3371 char *_kwnames
[] = { "self","x","y","def", NULL
};
3374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3384 wxPy_BEGIN_ALLOW_THREADS
;
3385 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3387 wxPy_END_ALLOW_THREADS
;
3388 if (PyErr_Occurred()) return NULL
;
3389 } _resultobj
= Py_BuildValue("i",_result
);
3393 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3394 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3395 PyObject
* _resultobj
;
3396 wxPyFileDropTarget
* _arg0
;
3397 PyObject
* _argo0
= 0;
3398 char *_kwnames
[] = { "self", NULL
};
3401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3411 wxPy_BEGIN_ALLOW_THREADS
;
3412 wxFileDropTarget_base_OnLeave(_arg0
);
3414 wxPy_END_ALLOW_THREADS
;
3415 if (PyErr_Occurred()) return NULL
;
3416 } Py_INCREF(Py_None
);
3417 _resultobj
= Py_None
;
3421 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3422 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
* _resultobj
;
3425 wxPyFileDropTarget
* _arg0
;
3428 PyObject
* _argo0
= 0;
3429 char *_kwnames
[] = { "self","x","y", NULL
};
3432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3442 wxPy_BEGIN_ALLOW_THREADS
;
3443 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3445 wxPy_END_ALLOW_THREADS
;
3446 if (PyErr_Occurred()) return NULL
;
3447 } _resultobj
= Py_BuildValue("i",_result
);
3451 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3452 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
* _resultobj
;
3454 wxDragResult _result
;
3455 wxPyFileDropTarget
* _arg0
;
3459 PyObject
* _argo0
= 0;
3460 char *_kwnames
[] = { "self","x","y","def", NULL
};
3463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3473 wxPy_BEGIN_ALLOW_THREADS
;
3474 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3476 wxPy_END_ALLOW_THREADS
;
3477 if (PyErr_Occurred()) return NULL
;
3478 } _resultobj
= Py_BuildValue("i",_result
);
3482 static PyMethodDef clip_dndcMethods
[] = {
3483 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3538 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3539 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3540 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3541 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3576 * This table is used by the pointer type-checker
3578 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3579 { "_signed_long","_long",0},
3580 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3581 { "_wxPrintQuality","_wxCoord",0},
3582 { "_wxPrintQuality","_int",0},
3583 { "_wxPrintQuality","_signed_int",0},
3584 { "_wxPrintQuality","_unsigned_int",0},
3585 { "_wxPrintQuality","_wxWindowID",0},
3586 { "_wxPrintQuality","_uint",0},
3587 { "_wxPrintQuality","_EBool",0},
3588 { "_wxPrintQuality","_size_t",0},
3589 { "_wxPrintQuality","_time_t",0},
3590 { "_byte","_unsigned_char",0},
3591 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3592 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3593 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3594 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3595 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3596 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3597 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3598 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3599 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3600 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3601 { "_long","_unsigned_long",0},
3602 { "_long","_signed_long",0},
3603 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3604 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3605 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3606 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3607 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3608 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3609 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3610 { "_size_t","_wxCoord",0},
3611 { "_size_t","_wxPrintQuality",0},
3612 { "_size_t","_time_t",0},
3613 { "_size_t","_unsigned_int",0},
3614 { "_size_t","_int",0},
3615 { "_size_t","_wxWindowID",0},
3616 { "_size_t","_uint",0},
3617 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3618 { "_uint","_wxCoord",0},
3619 { "_uint","_wxPrintQuality",0},
3620 { "_uint","_time_t",0},
3621 { "_uint","_size_t",0},
3622 { "_uint","_unsigned_int",0},
3623 { "_uint","_int",0},
3624 { "_uint","_wxWindowID",0},
3625 { "_wxChar","_char",0},
3626 { "_char","_wxChar",0},
3627 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3628 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3629 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3630 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3631 { "_EBool","_wxCoord",0},
3632 { "_EBool","_wxPrintQuality",0},
3633 { "_EBool","_signed_int",0},
3634 { "_EBool","_int",0},
3635 { "_EBool","_wxWindowID",0},
3636 { "_unsigned_long","_long",0},
3637 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3638 { "_signed_int","_wxCoord",0},
3639 { "_signed_int","_wxPrintQuality",0},
3640 { "_signed_int","_EBool",0},
3641 { "_signed_int","_wxWindowID",0},
3642 { "_signed_int","_int",0},
3643 { "_WXTYPE","_short",0},
3644 { "_WXTYPE","_signed_short",0},
3645 { "_WXTYPE","_unsigned_short",0},
3646 { "_unsigned_short","_WXTYPE",0},
3647 { "_unsigned_short","_short",0},
3648 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3649 { "_signed_short","_WXTYPE",0},
3650 { "_signed_short","_short",0},
3651 { "_unsigned_char","_byte",0},
3652 { "_unsigned_int","_wxCoord",0},
3653 { "_unsigned_int","_wxPrintQuality",0},
3654 { "_unsigned_int","_time_t",0},
3655 { "_unsigned_int","_size_t",0},
3656 { "_unsigned_int","_uint",0},
3657 { "_unsigned_int","_wxWindowID",0},
3658 { "_unsigned_int","_int",0},
3659 { "_short","_WXTYPE",0},
3660 { "_short","_unsigned_short",0},
3661 { "_short","_signed_short",0},
3662 { "_wxWindowID","_wxCoord",0},
3663 { "_wxWindowID","_wxPrintQuality",0},
3664 { "_wxWindowID","_time_t",0},
3665 { "_wxWindowID","_size_t",0},
3666 { "_wxWindowID","_EBool",0},
3667 { "_wxWindowID","_uint",0},
3668 { "_wxWindowID","_int",0},
3669 { "_wxWindowID","_signed_int",0},
3670 { "_wxWindowID","_unsigned_int",0},
3671 { "_int","_wxCoord",0},
3672 { "_int","_wxPrintQuality",0},
3673 { "_int","_time_t",0},
3674 { "_int","_size_t",0},
3675 { "_int","_EBool",0},
3676 { "_int","_uint",0},
3677 { "_int","_wxWindowID",0},
3678 { "_int","_unsigned_int",0},
3679 { "_int","_signed_int",0},
3680 { "_time_t","_wxCoord",0},
3681 { "_time_t","_wxPrintQuality",0},
3682 { "_time_t","_unsigned_int",0},
3683 { "_time_t","_int",0},
3684 { "_time_t","_wxWindowID",0},
3685 { "_time_t","_uint",0},
3686 { "_time_t","_size_t",0},
3687 { "_wxCoord","_int",0},
3688 { "_wxCoord","_signed_int",0},
3689 { "_wxCoord","_unsigned_int",0},
3690 { "_wxCoord","_wxWindowID",0},
3691 { "_wxCoord","_uint",0},
3692 { "_wxCoord","_EBool",0},
3693 { "_wxCoord","_size_t",0},
3694 { "_wxCoord","_time_t",0},
3695 { "_wxCoord","_wxPrintQuality",0},
3696 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3697 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3698 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3701 static PyObject
*SWIG_globals
;
3705 SWIGEXPORT(void) initclip_dndc() {
3707 SWIG_globals
= SWIG_newvarlink();
3708 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3709 d
= PyModule_GetDict(m
);
3710 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3711 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3712 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3713 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3714 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3715 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3716 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3717 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3718 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3719 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3720 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3721 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3722 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3723 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3724 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3725 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3726 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3727 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3728 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3729 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3730 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3731 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3732 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3733 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3734 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3735 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3736 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3737 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3740 wxPyTheClipboard
= wxTheClipboard
;
3741 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3742 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3743 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3744 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3745 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3746 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3749 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3750 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);