2 * FILE : src/msw/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
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
= wxArrayString2PyList_helper(filenames
);
298 if (m_myInst
.findCallback("OnDropFiles"))
299 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
301 wxPyEndBlockThreads(state
);
307 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
308 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
309 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
310 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
311 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
316 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
317 PyObject
* _resultobj
;
318 wxDataFormat
* _result
;
320 PyObject
* _obj0
= 0;
321 char *_kwnames
[] = { "id", NULL
};
325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
328 #if PYTHON_API_VERSION >= 1009
329 char* tmpPtr
; int tmpSize
;
330 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
331 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
334 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
336 _arg0
= new wxString(tmpPtr
, tmpSize
);
338 if (!PyString_Check(_obj0
)) {
339 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
342 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
346 wxPy_BEGIN_ALLOW_THREADS
;
347 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
349 wxPy_END_ALLOW_THREADS
;
350 if (PyErr_Occurred()) return NULL
;
352 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
353 _resultobj
= Py_BuildValue("s",_ptemp
);
356 _resultobj
= Py_None
;
365 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
367 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
371 static PyObject
*_wrap_wxPyFormatInvalid_get() {
375 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
376 pyobj
= PyString_FromString(ptemp
);
380 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
382 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
386 static PyObject
*_wrap_wxPyTheClipboard_get() {
390 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
391 pyobj
= PyString_FromString(ptemp
);
395 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
396 PyObject
* _resultobj
;
399 char *_kwnames
[] = { "res", NULL
};
402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
405 wxPy_BEGIN_ALLOW_THREADS
;
406 _result
= (bool )wxIsDragResultOk(_arg0
);
408 wxPy_END_ALLOW_THREADS
;
409 if (PyErr_Occurred()) return NULL
;
410 } _resultobj
= Py_BuildValue("i",_result
);
414 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
415 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
416 PyObject
* _resultobj
;
417 wxDataFormat
* _result
;
418 wxDataFormatId _arg0
;
419 char *_kwnames
[] = { "type", NULL
};
423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
426 wxPy_BEGIN_ALLOW_THREADS
;
427 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
429 wxPy_END_ALLOW_THREADS
;
430 if (PyErr_Occurred()) return NULL
;
432 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
433 _resultobj
= Py_BuildValue("s",_ptemp
);
436 _resultobj
= Py_None
;
441 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
442 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
443 PyObject
* _resultobj
;
444 wxDataFormat
* _arg0
;
445 PyObject
* _argo0
= 0;
446 char *_kwnames
[] = { "self", NULL
};
449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
459 wxPy_BEGIN_ALLOW_THREADS
;
460 delete_wxDataFormat(_arg0
);
462 wxPy_END_ALLOW_THREADS
;
463 if (PyErr_Occurred()) return NULL
;
464 } Py_INCREF(Py_None
);
465 _resultobj
= Py_None
;
469 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
470 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
471 PyObject
* _resultobj
;
472 wxDataFormat
* _arg0
;
473 wxDataFormatId _arg1
;
474 PyObject
* _argo0
= 0;
475 char *_kwnames
[] = { "self","format", NULL
};
478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
488 wxPy_BEGIN_ALLOW_THREADS
;
489 wxDataFormat_SetType(_arg0
,_arg1
);
491 wxPy_END_ALLOW_THREADS
;
492 if (PyErr_Occurred()) return NULL
;
493 } Py_INCREF(Py_None
);
494 _resultobj
= Py_None
;
498 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
499 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
500 PyObject
* _resultobj
;
501 wxDataFormatId _result
;
502 wxDataFormat
* _arg0
;
503 PyObject
* _argo0
= 0;
504 char *_kwnames
[] = { "self", NULL
};
507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
517 wxPy_BEGIN_ALLOW_THREADS
;
518 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
520 wxPy_END_ALLOW_THREADS
;
521 if (PyErr_Occurred()) return NULL
;
522 } _resultobj
= Py_BuildValue("i",_result
);
526 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
527 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
528 PyObject
* _resultobj
;
530 wxDataFormat
* _arg0
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
545 wxPy_BEGIN_ALLOW_THREADS
;
546 _result
= new wxString (wxDataFormat_GetId(_arg0
));
548 wxPy_END_ALLOW_THREADS
;
549 if (PyErr_Occurred()) return NULL
;
551 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
559 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
560 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
561 PyObject
* _resultobj
;
562 wxDataFormat
* _arg0
;
564 PyObject
* _argo0
= 0;
565 char *_kwnames
[] = { "self","format", NULL
};
568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
578 wxPy_BEGIN_ALLOW_THREADS
;
579 wxDataFormat_SetId(_arg0
,_arg1
);
581 wxPy_END_ALLOW_THREADS
;
582 if (PyErr_Occurred()) return NULL
;
583 } Py_INCREF(Py_None
);
584 _resultobj
= Py_None
;
588 #define delete_wxDataObject(_swigobj) (delete _swigobj)
589 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
590 PyObject
* _resultobj
;
591 wxDataObject
* _arg0
;
592 PyObject
* _argo0
= 0;
593 char *_kwnames
[] = { "self", NULL
};
596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
606 wxPy_BEGIN_ALLOW_THREADS
;
607 delete_wxDataObject(_arg0
);
609 wxPy_END_ALLOW_THREADS
;
610 if (PyErr_Occurred()) return NULL
;
611 } Py_INCREF(Py_None
);
612 _resultobj
= Py_None
;
616 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
617 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
618 PyObject
* _resultobj
;
619 wxDataFormat
* _result
;
620 wxDataObject
* _arg0
;
621 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
622 PyObject
* _argo0
= 0;
623 char *_kwnames
[] = { "self","dir", NULL
};
627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
637 wxPy_BEGIN_ALLOW_THREADS
;
638 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
640 wxPy_END_ALLOW_THREADS
;
641 if (PyErr_Occurred()) return NULL
;
642 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
643 _resultobj
= Py_BuildValue("s",_ptemp
);
647 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
648 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
651 wxDataObject
* _arg0
;
652 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
653 PyObject
* _argo0
= 0;
654 char *_kwnames
[] = { "self","dir", NULL
};
657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
667 wxPy_BEGIN_ALLOW_THREADS
;
668 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
670 wxPy_END_ALLOW_THREADS
;
671 if (PyErr_Occurred()) return NULL
;
672 } _resultobj
= Py_BuildValue("i",_result
);
676 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
677 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
679 wxDataObject
* _arg0
;
680 wxDataFormat
* _arg1
;
681 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
682 PyObject
* _argo0
= 0;
683 PyObject
* _argo1
= 0;
684 char *_kwnames
[] = { "self","formats","dir", NULL
};
687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
690 if (_argo0
== Py_None
) { _arg0
= NULL
; }
691 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
697 if (_argo1
== Py_None
) { _arg1
= NULL
; }
698 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
704 wxPy_BEGIN_ALLOW_THREADS
;
705 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
707 wxPy_END_ALLOW_THREADS
;
708 if (PyErr_Occurred()) return NULL
;
709 } Py_INCREF(Py_None
);
710 _resultobj
= Py_None
;
714 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
715 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
716 PyObject
* _resultobj
;
718 wxDataObject
* _arg0
;
719 wxDataFormat
* _arg1
;
720 PyObject
* _argo0
= 0;
721 PyObject
* _argo1
= 0;
722 char *_kwnames
[] = { "self","format", NULL
};
725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
735 if (_argo1
== Py_None
) { _arg1
= NULL
; }
736 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
742 wxPy_BEGIN_ALLOW_THREADS
;
743 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
745 wxPy_END_ALLOW_THREADS
;
746 if (PyErr_Occurred()) return NULL
;
747 } _resultobj
= Py_BuildValue("i",_result
);
751 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
752 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
753 PyObject
* _resultobj
;
755 wxDataObject
* _arg0
;
756 wxDataFormat
* _arg1
;
758 PyObject
* _argo0
= 0;
759 PyObject
* _argo1
= 0;
760 PyObject
* _argo2
= 0;
761 char *_kwnames
[] = { "self","format","buf", NULL
};
764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
774 if (_argo1
== Py_None
) { _arg1
= NULL
; }
775 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
781 if (_argo2
== Py_None
) { _arg2
= NULL
; }
782 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
788 wxPy_BEGIN_ALLOW_THREADS
;
789 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
791 wxPy_END_ALLOW_THREADS
;
792 if (PyErr_Occurred()) return NULL
;
793 } _resultobj
= Py_BuildValue("i",_result
);
797 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
798 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
799 PyObject
* _resultobj
;
801 wxDataObject
* _arg0
;
802 wxDataFormat
* _arg1
;
805 PyObject
* _argo0
= 0;
806 PyObject
* _argo1
= 0;
807 PyObject
* _argo3
= 0;
808 char *_kwnames
[] = { "self","format","len","buf", NULL
};
811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
821 if (_argo1
== Py_None
) { _arg1
= NULL
; }
822 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
828 if (_argo3
== Py_None
) { _arg3
= NULL
; }
829 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
835 wxPy_BEGIN_ALLOW_THREADS
;
836 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
838 wxPy_END_ALLOW_THREADS
;
839 if (PyErr_Occurred()) return NULL
;
840 } _resultobj
= Py_BuildValue("i",_result
);
844 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
845 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
846 PyObject
* _resultobj
;
848 wxDataObject
* _arg0
;
849 wxDataFormat
* _arg1
;
850 PyObject
* _argo0
= 0;
851 PyObject
* _argo1
= 0;
852 char *_kwnames
[] = { "self","format", NULL
};
855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
865 if (_argo1
== Py_None
) { _arg1
= NULL
; }
866 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
872 wxPy_BEGIN_ALLOW_THREADS
;
873 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
875 wxPy_END_ALLOW_THREADS
;
876 if (PyErr_Occurred()) return NULL
;
877 } _resultobj
= Py_BuildValue("i",_result
);
881 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
882 wxDataObjectSimple
*src
;
884 src
= (wxDataObjectSimple
*) ptr
;
885 dest
= (wxDataObject
*) src
;
886 return (void *) dest
;
889 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
890 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
891 PyObject
* _resultobj
;
892 wxDataObjectSimple
* _result
;
893 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
894 PyObject
* _argo0
= 0;
895 char *_kwnames
[] = { "format", NULL
};
899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
909 wxPy_BEGIN_ALLOW_THREADS
;
910 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
912 wxPy_END_ALLOW_THREADS
;
913 if (PyErr_Occurred()) return NULL
;
915 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
916 _resultobj
= Py_BuildValue("s",_ptemp
);
919 _resultobj
= Py_None
;
924 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
925 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
926 PyObject
* _resultobj
;
927 wxDataFormat
* _result
;
928 wxDataObjectSimple
* _arg0
;
929 PyObject
* _argo0
= 0;
930 char *_kwnames
[] = { "self", NULL
};
934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
937 if (_argo0
== Py_None
) { _arg0
= NULL
; }
938 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
939 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
944 wxPy_BEGIN_ALLOW_THREADS
;
945 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
946 _result
= (wxDataFormat
*) &_result_ref
;
948 wxPy_END_ALLOW_THREADS
;
949 if (PyErr_Occurred()) return NULL
;
951 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
952 _resultobj
= Py_BuildValue("s",_ptemp
);
955 _resultobj
= Py_None
;
960 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
961 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
963 wxDataObjectSimple
* _arg0
;
964 wxDataFormat
* _arg1
;
965 PyObject
* _argo0
= 0;
966 PyObject
* _argo1
= 0;
967 char *_kwnames
[] = { "self","format", NULL
};
970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
980 if (_argo1
== Py_None
) { _arg1
= NULL
; }
981 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
987 wxPy_BEGIN_ALLOW_THREADS
;
988 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
990 wxPy_END_ALLOW_THREADS
;
991 if (PyErr_Occurred()) return NULL
;
992 } Py_INCREF(Py_None
);
993 _resultobj
= Py_None
;
997 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
998 wxPyDataObjectSimple
*src
;
999 wxDataObjectSimple
*dest
;
1000 src
= (wxPyDataObjectSimple
*) ptr
;
1001 dest
= (wxDataObjectSimple
*) src
;
1002 return (void *) dest
;
1005 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1006 wxPyDataObjectSimple
*src
;
1008 src
= (wxPyDataObjectSimple
*) ptr
;
1009 dest
= (wxDataObject
*) src
;
1010 return (void *) dest
;
1013 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1014 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1015 PyObject
* _resultobj
;
1016 wxPyDataObjectSimple
* _result
;
1017 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1018 PyObject
* _argo0
= 0;
1019 char *_kwnames
[] = { "format", NULL
};
1023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1026 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1027 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1033 wxPy_BEGIN_ALLOW_THREADS
;
1034 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1036 wxPy_END_ALLOW_THREADS
;
1037 if (PyErr_Occurred()) return NULL
;
1039 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1040 _resultobj
= Py_BuildValue("s",_ptemp
);
1043 _resultobj
= Py_None
;
1048 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1049 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
* _resultobj
;
1051 wxPyDataObjectSimple
* _arg0
;
1054 PyObject
* _argo0
= 0;
1055 PyObject
* _obj1
= 0;
1056 PyObject
* _obj2
= 0;
1057 char *_kwnames
[] = { "self","self","_class", NULL
};
1060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1076 wxPy_BEGIN_ALLOW_THREADS
;
1077 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1079 wxPy_END_ALLOW_THREADS
;
1080 if (PyErr_Occurred()) return NULL
;
1081 } Py_INCREF(Py_None
);
1082 _resultobj
= Py_None
;
1086 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1087 wxDataObjectComposite
*src
;
1089 src
= (wxDataObjectComposite
*) ptr
;
1090 dest
= (wxDataObject
*) src
;
1091 return (void *) dest
;
1094 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1095 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1096 PyObject
* _resultobj
;
1097 wxDataObjectComposite
* _result
;
1098 char *_kwnames
[] = { NULL
};
1102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1105 wxPy_BEGIN_ALLOW_THREADS
;
1106 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1108 wxPy_END_ALLOW_THREADS
;
1109 if (PyErr_Occurred()) return NULL
;
1111 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1112 _resultobj
= Py_BuildValue("s",_ptemp
);
1115 _resultobj
= Py_None
;
1120 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1121 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1122 PyObject
* _resultobj
;
1123 wxDataObjectComposite
* _arg0
;
1124 wxDataObjectSimple
* _arg1
;
1125 int _arg2
= (int ) FALSE
;
1126 PyObject
* _argo0
= 0;
1127 PyObject
* _argo1
= 0;
1128 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1141 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1142 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1148 wxPy_BEGIN_ALLOW_THREADS
;
1149 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1151 wxPy_END_ALLOW_THREADS
;
1152 if (PyErr_Occurred()) return NULL
;
1153 } Py_INCREF(Py_None
);
1154 _resultobj
= Py_None
;
1158 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1159 wxTextDataObject
*src
;
1160 wxDataObjectSimple
*dest
;
1161 src
= (wxTextDataObject
*) ptr
;
1162 dest
= (wxDataObjectSimple
*) src
;
1163 return (void *) dest
;
1166 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1167 wxTextDataObject
*src
;
1169 src
= (wxTextDataObject
*) ptr
;
1170 dest
= (wxDataObject
*) src
;
1171 return (void *) dest
;
1174 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1175 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1176 PyObject
* _resultobj
;
1177 wxTextDataObject
* _result
;
1178 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1179 PyObject
* _obj0
= 0;
1180 char *_kwnames
[] = { "text", NULL
};
1184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1188 #if PYTHON_API_VERSION >= 1009
1189 char* tmpPtr
; int tmpSize
;
1190 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1191 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1194 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1196 _arg0
= new wxString(tmpPtr
, tmpSize
);
1198 if (!PyString_Check(_obj0
)) {
1199 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1202 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1206 wxPy_BEGIN_ALLOW_THREADS
;
1207 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1209 wxPy_END_ALLOW_THREADS
;
1210 if (PyErr_Occurred()) return NULL
;
1212 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1213 _resultobj
= Py_BuildValue("s",_ptemp
);
1216 _resultobj
= Py_None
;
1225 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1226 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1227 PyObject
* _resultobj
;
1229 wxTextDataObject
* _arg0
;
1230 PyObject
* _argo0
= 0;
1231 char *_kwnames
[] = { "self", NULL
};
1234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1244 wxPy_BEGIN_ALLOW_THREADS
;
1245 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1247 wxPy_END_ALLOW_THREADS
;
1248 if (PyErr_Occurred()) return NULL
;
1249 } _resultobj
= Py_BuildValue("i",_result
);
1253 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1254 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1255 PyObject
* _resultobj
;
1257 wxTextDataObject
* _arg0
;
1258 PyObject
* _argo0
= 0;
1259 char *_kwnames
[] = { "self", NULL
};
1262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1272 wxPy_BEGIN_ALLOW_THREADS
;
1273 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1275 wxPy_END_ALLOW_THREADS
;
1276 if (PyErr_Occurred()) return NULL
;
1278 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1286 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1287 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1288 PyObject
* _resultobj
;
1289 wxTextDataObject
* _arg0
;
1291 PyObject
* _argo0
= 0;
1292 PyObject
* _obj1
= 0;
1293 char *_kwnames
[] = { "self","text", NULL
};
1296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1306 #if PYTHON_API_VERSION >= 1009
1307 char* tmpPtr
; int tmpSize
;
1308 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1309 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1312 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1314 _arg1
= new wxString(tmpPtr
, tmpSize
);
1316 if (!PyString_Check(_obj1
)) {
1317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1320 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 wxTextDataObject_SetText(_arg0
,*_arg1
);
1327 wxPy_END_ALLOW_THREADS
;
1328 if (PyErr_Occurred()) return NULL
;
1329 } Py_INCREF(Py_None
);
1330 _resultobj
= Py_None
;
1338 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1339 wxPyTextDataObject
*src
;
1340 wxTextDataObject
*dest
;
1341 src
= (wxPyTextDataObject
*) ptr
;
1342 dest
= (wxTextDataObject
*) src
;
1343 return (void *) dest
;
1346 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1347 wxPyTextDataObject
*src
;
1348 wxDataObjectSimple
*dest
;
1349 src
= (wxPyTextDataObject
*) ptr
;
1350 dest
= (wxDataObjectSimple
*) src
;
1351 return (void *) dest
;
1354 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1355 wxPyTextDataObject
*src
;
1357 src
= (wxPyTextDataObject
*) ptr
;
1358 dest
= (wxDataObject
*) src
;
1359 return (void *) dest
;
1362 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1363 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1364 PyObject
* _resultobj
;
1365 wxPyTextDataObject
* _result
;
1366 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1367 PyObject
* _obj0
= 0;
1368 char *_kwnames
[] = { "text", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1376 #if PYTHON_API_VERSION >= 1009
1377 char* tmpPtr
; int tmpSize
;
1378 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1379 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1382 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1384 _arg0
= new wxString(tmpPtr
, tmpSize
);
1386 if (!PyString_Check(_obj0
)) {
1387 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1390 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1394 wxPy_BEGIN_ALLOW_THREADS
;
1395 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1397 wxPy_END_ALLOW_THREADS
;
1398 if (PyErr_Occurred()) return NULL
;
1400 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1401 _resultobj
= Py_BuildValue("s",_ptemp
);
1404 _resultobj
= Py_None
;
1413 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1414 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1415 PyObject
* _resultobj
;
1416 wxPyTextDataObject
* _arg0
;
1419 PyObject
* _argo0
= 0;
1420 PyObject
* _obj1
= 0;
1421 PyObject
* _obj2
= 0;
1422 char *_kwnames
[] = { "self","self","_class", NULL
};
1425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1441 wxPy_BEGIN_ALLOW_THREADS
;
1442 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1444 wxPy_END_ALLOW_THREADS
;
1445 if (PyErr_Occurred()) return NULL
;
1446 } Py_INCREF(Py_None
);
1447 _resultobj
= Py_None
;
1451 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1452 wxBitmapDataObject
*src
;
1453 wxDataObjectSimple
*dest
;
1454 src
= (wxBitmapDataObject
*) ptr
;
1455 dest
= (wxDataObjectSimple
*) src
;
1456 return (void *) dest
;
1459 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1460 wxBitmapDataObject
*src
;
1462 src
= (wxBitmapDataObject
*) ptr
;
1463 dest
= (wxDataObject
*) src
;
1464 return (void *) dest
;
1467 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1468 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1469 PyObject
* _resultobj
;
1470 wxBitmapDataObject
* _result
;
1471 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1472 PyObject
* _argo0
= 0;
1473 char *_kwnames
[] = { "bitmap", NULL
};
1477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1487 wxPy_BEGIN_ALLOW_THREADS
;
1488 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1490 wxPy_END_ALLOW_THREADS
;
1491 if (PyErr_Occurred()) return NULL
;
1493 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1494 _resultobj
= Py_BuildValue("s",_ptemp
);
1497 _resultobj
= Py_None
;
1502 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1503 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1504 PyObject
* _resultobj
;
1506 wxBitmapDataObject
* _arg0
;
1507 PyObject
* _argo0
= 0;
1508 char *_kwnames
[] = { "self", NULL
};
1512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1522 wxPy_BEGIN_ALLOW_THREADS
;
1523 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1525 wxPy_END_ALLOW_THREADS
;
1526 if (PyErr_Occurred()) return NULL
;
1527 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1528 _resultobj
= Py_BuildValue("s",_ptemp
);
1532 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1533 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
* _resultobj
;
1535 wxBitmapDataObject
* _arg0
;
1537 PyObject
* _argo0
= 0;
1538 PyObject
* _argo1
= 0;
1539 char *_kwnames
[] = { "self","bitmap", NULL
};
1542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1552 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1553 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1559 wxPy_BEGIN_ALLOW_THREADS
;
1560 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1562 wxPy_END_ALLOW_THREADS
;
1563 if (PyErr_Occurred()) return NULL
;
1564 } Py_INCREF(Py_None
);
1565 _resultobj
= Py_None
;
1569 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1570 wxPyBitmapDataObject
*src
;
1571 wxBitmapDataObject
*dest
;
1572 src
= (wxPyBitmapDataObject
*) ptr
;
1573 dest
= (wxBitmapDataObject
*) src
;
1574 return (void *) dest
;
1577 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1578 wxPyBitmapDataObject
*src
;
1579 wxDataObjectSimple
*dest
;
1580 src
= (wxPyBitmapDataObject
*) ptr
;
1581 dest
= (wxDataObjectSimple
*) src
;
1582 return (void *) dest
;
1585 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1586 wxPyBitmapDataObject
*src
;
1588 src
= (wxPyBitmapDataObject
*) ptr
;
1589 dest
= (wxDataObject
*) src
;
1590 return (void *) dest
;
1593 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1594 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1595 PyObject
* _resultobj
;
1596 wxPyBitmapDataObject
* _result
;
1597 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1598 PyObject
* _argo0
= 0;
1599 char *_kwnames
[] = { "bitmap", NULL
};
1603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1613 wxPy_BEGIN_ALLOW_THREADS
;
1614 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1616 wxPy_END_ALLOW_THREADS
;
1617 if (PyErr_Occurred()) return NULL
;
1619 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1620 _resultobj
= Py_BuildValue("s",_ptemp
);
1623 _resultobj
= Py_None
;
1628 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1629 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1630 PyObject
* _resultobj
;
1631 wxPyBitmapDataObject
* _arg0
;
1634 PyObject
* _argo0
= 0;
1635 PyObject
* _obj1
= 0;
1636 PyObject
* _obj2
= 0;
1637 char *_kwnames
[] = { "self","self","_class", NULL
};
1640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1656 wxPy_BEGIN_ALLOW_THREADS
;
1657 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1659 wxPy_END_ALLOW_THREADS
;
1660 if (PyErr_Occurred()) return NULL
;
1661 } Py_INCREF(Py_None
);
1662 _resultobj
= Py_None
;
1666 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1667 wxFileDataObject
*src
;
1668 wxDataObjectSimple
*dest
;
1669 src
= (wxFileDataObject
*) ptr
;
1670 dest
= (wxDataObjectSimple
*) src
;
1671 return (void *) dest
;
1674 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1675 wxFileDataObject
*src
;
1677 src
= (wxFileDataObject
*) ptr
;
1678 dest
= (wxDataObject
*) src
;
1679 return (void *) dest
;
1682 #define new_wxFileDataObject() (new wxFileDataObject())
1683 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1684 PyObject
* _resultobj
;
1685 wxFileDataObject
* _result
;
1686 char *_kwnames
[] = { NULL
};
1690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1693 wxPy_BEGIN_ALLOW_THREADS
;
1694 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1696 wxPy_END_ALLOW_THREADS
;
1697 if (PyErr_Occurred()) return NULL
;
1699 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1700 _resultobj
= Py_BuildValue("s",_ptemp
);
1703 _resultobj
= Py_None
;
1708 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1709 const wxArrayString
& strings
= self
->GetFilenames();
1710 return wxArrayString2PyList_helper(strings
);
1712 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1713 PyObject
* _resultobj
;
1715 wxFileDataObject
* _arg0
;
1716 PyObject
* _argo0
= 0;
1717 char *_kwnames
[] = { "self", NULL
};
1720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1730 wxPy_BEGIN_ALLOW_THREADS
;
1731 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1733 wxPy_END_ALLOW_THREADS
;
1734 if (PyErr_Occurred()) return NULL
;
1736 _resultobj
= _result
;
1741 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1742 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1743 PyObject
* _resultobj
;
1744 wxFileDataObject
* _arg0
;
1746 PyObject
* _argo0
= 0;
1747 PyObject
* _obj1
= 0;
1748 char *_kwnames
[] = { "self","filename", NULL
};
1751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1761 #if PYTHON_API_VERSION >= 1009
1762 char* tmpPtr
; int tmpSize
;
1763 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1764 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1767 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1769 _arg1
= new wxString(tmpPtr
, tmpSize
);
1771 if (!PyString_Check(_obj1
)) {
1772 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1775 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1779 wxPy_BEGIN_ALLOW_THREADS
;
1780 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1782 wxPy_END_ALLOW_THREADS
;
1783 if (PyErr_Occurred()) return NULL
;
1784 } Py_INCREF(Py_None
);
1785 _resultobj
= Py_None
;
1793 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1794 wxCustomDataObject
*src
;
1795 wxDataObjectSimple
*dest
;
1796 src
= (wxCustomDataObject
*) ptr
;
1797 dest
= (wxDataObjectSimple
*) src
;
1798 return (void *) dest
;
1801 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1802 wxCustomDataObject
*src
;
1804 src
= (wxCustomDataObject
*) ptr
;
1805 dest
= (wxDataObject
*) src
;
1806 return (void *) dest
;
1809 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1810 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1811 PyObject
* _resultobj
;
1812 wxCustomDataObject
* _result
;
1813 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1814 PyObject
* _argo0
= 0;
1815 char *_kwnames
[] = { "format", NULL
};
1819 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1822 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1823 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1829 wxPy_BEGIN_ALLOW_THREADS
;
1830 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1832 wxPy_END_ALLOW_THREADS
;
1833 if (PyErr_Occurred()) return NULL
;
1835 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1836 _resultobj
= Py_BuildValue("s",_ptemp
);
1839 _resultobj
= Py_None
;
1844 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1845 if (PyString_Check(data
)) {
1846 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1849 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1850 PyObject
* _resultobj
;
1851 wxCustomDataObject
* _arg0
;
1853 PyObject
* _argo0
= 0;
1854 PyObject
* _obj1
= 0;
1855 char *_kwnames
[] = { "self","data", NULL
};
1858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1871 wxPy_BEGIN_ALLOW_THREADS
;
1872 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1874 wxPy_END_ALLOW_THREADS
;
1875 if (PyErr_Occurred()) return NULL
;
1876 } Py_INCREF(Py_None
);
1877 _resultobj
= Py_None
;
1881 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1882 if (PyString_Check(data
)) {
1883 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1887 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1888 PyObject
* _resultobj
;
1890 wxCustomDataObject
* _arg0
;
1892 PyObject
* _argo0
= 0;
1893 PyObject
* _obj1
= 0;
1894 char *_kwnames
[] = { "self","data", NULL
};
1897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1910 wxPy_BEGIN_ALLOW_THREADS
;
1911 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1913 wxPy_END_ALLOW_THREADS
;
1914 if (PyErr_Occurred()) return NULL
;
1915 } _resultobj
= Py_BuildValue("i",_result
);
1919 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1920 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1921 PyObject
* _resultobj
;
1923 wxCustomDataObject
* _arg0
;
1924 PyObject
* _argo0
= 0;
1925 char *_kwnames
[] = { "self", NULL
};
1928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1938 wxPy_BEGIN_ALLOW_THREADS
;
1939 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1941 wxPy_END_ALLOW_THREADS
;
1942 if (PyErr_Occurred()) return NULL
;
1943 } _resultobj
= Py_BuildValue("i",_result
);
1947 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1948 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1950 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1951 PyObject
* _resultobj
;
1953 wxCustomDataObject
* _arg0
;
1954 PyObject
* _argo0
= 0;
1955 char *_kwnames
[] = { "self", NULL
};
1958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1968 wxPy_BEGIN_ALLOW_THREADS
;
1969 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1971 wxPy_END_ALLOW_THREADS
;
1972 if (PyErr_Occurred()) return NULL
;
1974 _resultobj
= _result
;
1979 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1980 wxURLDataObject
*src
;
1981 wxDataObjectComposite
*dest
;
1982 src
= (wxURLDataObject
*) ptr
;
1983 dest
= (wxDataObjectComposite
*) src
;
1984 return (void *) dest
;
1987 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1988 wxURLDataObject
*src
;
1990 src
= (wxURLDataObject
*) ptr
;
1991 dest
= (wxDataObject
*) src
;
1992 return (void *) dest
;
1995 #define new_wxURLDataObject() (new wxURLDataObject())
1996 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1997 PyObject
* _resultobj
;
1998 wxURLDataObject
* _result
;
1999 char *_kwnames
[] = { NULL
};
2003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
2006 wxPy_BEGIN_ALLOW_THREADS
;
2007 _result
= (wxURLDataObject
*)new_wxURLDataObject();
2009 wxPy_END_ALLOW_THREADS
;
2010 if (PyErr_Occurred()) return NULL
;
2012 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
2013 _resultobj
= Py_BuildValue("s",_ptemp
);
2016 _resultobj
= Py_None
;
2021 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
2022 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2023 PyObject
* _resultobj
;
2025 wxURLDataObject
* _arg0
;
2026 PyObject
* _argo0
= 0;
2027 char *_kwnames
[] = { "self", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
2040 wxPy_BEGIN_ALLOW_THREADS
;
2041 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
2043 wxPy_END_ALLOW_THREADS
;
2044 if (PyErr_Occurred()) return NULL
;
2046 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2054 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2055 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2056 PyObject
* _resultobj
;
2057 wxURLDataObject
* _arg0
;
2059 PyObject
* _argo0
= 0;
2060 PyObject
* _obj1
= 0;
2061 char *_kwnames
[] = { "self","url", NULL
};
2064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2074 #if PYTHON_API_VERSION >= 1009
2075 char* tmpPtr
; int tmpSize
;
2076 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2077 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2080 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2082 _arg1
= new wxString(tmpPtr
, tmpSize
);
2084 if (!PyString_Check(_obj1
)) {
2085 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2088 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2092 wxPy_BEGIN_ALLOW_THREADS
;
2093 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2095 wxPy_END_ALLOW_THREADS
;
2096 if (PyErr_Occurred()) return NULL
;
2097 } Py_INCREF(Py_None
);
2098 _resultobj
= Py_None
;
2106 static void *SwigwxClipboardTowxObject(void *ptr
) {
2109 src
= (wxClipboard
*) ptr
;
2110 dest
= (wxObject
*) src
;
2111 return (void *) dest
;
2114 #define new_wxClipboard() (new wxClipboard())
2115 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2116 PyObject
* _resultobj
;
2117 wxClipboard
* _result
;
2118 char *_kwnames
[] = { NULL
};
2122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2125 wxPy_BEGIN_ALLOW_THREADS
;
2126 _result
= (wxClipboard
*)new_wxClipboard();
2128 wxPy_END_ALLOW_THREADS
;
2129 if (PyErr_Occurred()) return NULL
;
2131 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2132 _resultobj
= Py_BuildValue("s",_ptemp
);
2135 _resultobj
= Py_None
;
2140 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2141 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2142 PyObject
* _resultobj
;
2144 wxClipboard
* _arg0
;
2145 PyObject
* _argo0
= 0;
2146 char *_kwnames
[] = { "self", NULL
};
2149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2159 wxPy_BEGIN_ALLOW_THREADS
;
2160 _result
= (bool )wxClipboard_Open(_arg0
);
2162 wxPy_END_ALLOW_THREADS
;
2163 if (PyErr_Occurred()) return NULL
;
2164 } _resultobj
= Py_BuildValue("i",_result
);
2168 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2169 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2170 PyObject
* _resultobj
;
2171 wxClipboard
* _arg0
;
2172 PyObject
* _argo0
= 0;
2173 char *_kwnames
[] = { "self", NULL
};
2176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2186 wxPy_BEGIN_ALLOW_THREADS
;
2187 wxClipboard_Close(_arg0
);
2189 wxPy_END_ALLOW_THREADS
;
2190 if (PyErr_Occurred()) return NULL
;
2191 } Py_INCREF(Py_None
);
2192 _resultobj
= Py_None
;
2196 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2197 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2198 PyObject
* _resultobj
;
2200 wxClipboard
* _arg0
;
2201 PyObject
* _argo0
= 0;
2202 char *_kwnames
[] = { "self", NULL
};
2205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2215 wxPy_BEGIN_ALLOW_THREADS
;
2216 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2218 wxPy_END_ALLOW_THREADS
;
2219 if (PyErr_Occurred()) return NULL
;
2220 } _resultobj
= Py_BuildValue("i",_result
);
2224 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2225 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2226 PyObject
* _resultobj
;
2228 wxClipboard
* _arg0
;
2229 wxDataObject
* _arg1
;
2230 PyObject
* _argo0
= 0;
2231 PyObject
* _argo1
= 0;
2232 char *_kwnames
[] = { "self","data", NULL
};
2235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2252 wxPy_BEGIN_ALLOW_THREADS
;
2253 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2255 wxPy_END_ALLOW_THREADS
;
2256 if (PyErr_Occurred()) return NULL
;
2257 } _resultobj
= Py_BuildValue("i",_result
);
2261 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2262 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2263 PyObject
* _resultobj
;
2265 wxClipboard
* _arg0
;
2266 wxDataObject
* _arg1
;
2267 PyObject
* _argo0
= 0;
2268 PyObject
* _argo1
= 0;
2269 char *_kwnames
[] = { "self","data", NULL
};
2272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2282 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2283 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2289 wxPy_BEGIN_ALLOW_THREADS
;
2290 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2292 wxPy_END_ALLOW_THREADS
;
2293 if (PyErr_Occurred()) return NULL
;
2294 } _resultobj
= Py_BuildValue("i",_result
);
2298 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2299 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
* _resultobj
;
2302 wxClipboard
* _arg0
;
2303 wxDataFormat
* _arg1
;
2304 PyObject
* _argo0
= 0;
2305 PyObject
* _argo1
= 0;
2306 char *_kwnames
[] = { "self","format", NULL
};
2309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2319 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2326 wxPy_BEGIN_ALLOW_THREADS
;
2327 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2329 wxPy_END_ALLOW_THREADS
;
2330 if (PyErr_Occurred()) return NULL
;
2331 } _resultobj
= Py_BuildValue("i",_result
);
2335 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2336 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2339 wxClipboard
* _arg0
;
2340 wxDataObject
* _arg1
;
2341 PyObject
* _argo0
= 0;
2342 PyObject
* _argo1
= 0;
2343 char *_kwnames
[] = { "self","data", NULL
};
2346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2356 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2357 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2363 wxPy_BEGIN_ALLOW_THREADS
;
2364 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2366 wxPy_END_ALLOW_THREADS
;
2367 if (PyErr_Occurred()) return NULL
;
2368 } _resultobj
= Py_BuildValue("i",_result
);
2372 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2373 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2374 PyObject
* _resultobj
;
2375 wxClipboard
* _arg0
;
2376 PyObject
* _argo0
= 0;
2377 char *_kwnames
[] = { "self", NULL
};
2380 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2383 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2384 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2390 wxPy_BEGIN_ALLOW_THREADS
;
2391 wxClipboard_Clear(_arg0
);
2393 wxPy_END_ALLOW_THREADS
;
2394 if (PyErr_Occurred()) return NULL
;
2395 } Py_INCREF(Py_None
);
2396 _resultobj
= Py_None
;
2400 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2401 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2402 PyObject
* _resultobj
;
2404 wxClipboard
* _arg0
;
2405 PyObject
* _argo0
= 0;
2406 char *_kwnames
[] = { "self", NULL
};
2409 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2412 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2413 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2419 wxPy_BEGIN_ALLOW_THREADS
;
2420 _result
= (bool )wxClipboard_Flush(_arg0
);
2422 wxPy_END_ALLOW_THREADS
;
2423 if (PyErr_Occurred()) return NULL
;
2424 } _resultobj
= Py_BuildValue("i",_result
);
2428 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2429 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2430 PyObject
* _resultobj
;
2431 wxClipboard
* _arg0
;
2432 int _arg1
= (int ) FALSE
;
2433 PyObject
* _argo0
= 0;
2434 char *_kwnames
[] = { "self","primary", NULL
};
2437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2447 wxPy_BEGIN_ALLOW_THREADS
;
2448 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2450 wxPy_END_ALLOW_THREADS
;
2451 if (PyErr_Occurred()) return NULL
;
2452 } Py_INCREF(Py_None
);
2453 _resultobj
= Py_None
;
2457 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2458 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2460 wxPyDropSource
* _result
;
2461 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2462 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2463 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2464 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2465 PyObject
* _argo0
= 0;
2466 PyObject
* _argo1
= 0;
2467 PyObject
* _argo2
= 0;
2468 PyObject
* _argo3
= 0;
2469 char *_kwnames
[] = { "win","cursorCopy","cursorMove","cursorStop", NULL
};
2473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2483 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2484 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2490 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2491 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2497 if (_argo3
== Py_None
) { _arg3
= NULL
; }
2498 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2504 wxPy_BEGIN_ALLOW_THREADS
;
2505 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2507 wxPy_END_ALLOW_THREADS
;
2508 if (PyErr_Occurred()) return NULL
;
2510 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2511 _resultobj
= Py_BuildValue("s",_ptemp
);
2514 _resultobj
= Py_None
;
2519 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2520 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2521 PyObject
* _resultobj
;
2522 wxPyDropSource
* _arg0
;
2526 PyObject
* _argo0
= 0;
2527 PyObject
* _obj1
= 0;
2528 PyObject
* _obj2
= 0;
2529 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2532 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2535 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2536 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2548 wxPy_BEGIN_ALLOW_THREADS
;
2549 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2551 wxPy_END_ALLOW_THREADS
;
2552 if (PyErr_Occurred()) return NULL
;
2553 } Py_INCREF(Py_None
);
2554 _resultobj
= Py_None
;
2558 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2559 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2560 PyObject
* _resultobj
;
2561 wxPyDropSource
* _arg0
;
2562 PyObject
* _argo0
= 0;
2563 char *_kwnames
[] = { "self", NULL
};
2566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2576 wxPy_BEGIN_ALLOW_THREADS
;
2577 delete_wxPyDropSource(_arg0
);
2579 wxPy_END_ALLOW_THREADS
;
2580 if (PyErr_Occurred()) return NULL
;
2581 } Py_INCREF(Py_None
);
2582 _resultobj
= Py_None
;
2586 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2587 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2588 PyObject
* _resultobj
;
2589 wxPyDropSource
* _arg0
;
2590 wxDataObject
* _arg1
;
2591 PyObject
* _argo0
= 0;
2592 PyObject
* _argo1
= 0;
2593 char *_kwnames
[] = { "self","data", NULL
};
2596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2606 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2607 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2613 wxPy_BEGIN_ALLOW_THREADS
;
2614 wxDropSource_SetData(_arg0
,*_arg1
);
2616 wxPy_END_ALLOW_THREADS
;
2617 if (PyErr_Occurred()) return NULL
;
2618 } Py_INCREF(Py_None
);
2619 _resultobj
= Py_None
;
2623 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2624 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2625 PyObject
* _resultobj
;
2626 wxDataObject
* _result
;
2627 wxPyDropSource
* _arg0
;
2628 PyObject
* _argo0
= 0;
2629 char *_kwnames
[] = { "self", NULL
};
2633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2643 wxPy_BEGIN_ALLOW_THREADS
;
2644 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2646 wxPy_END_ALLOW_THREADS
;
2647 if (PyErr_Occurred()) return NULL
;
2649 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2650 _resultobj
= Py_BuildValue("s",_ptemp
);
2653 _resultobj
= Py_None
;
2658 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2659 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2660 PyObject
* _resultobj
;
2661 wxPyDropSource
* _arg0
;
2664 PyObject
* _argo0
= 0;
2665 PyObject
* _argo2
= 0;
2666 char *_kwnames
[] = { "self","res","cursor", NULL
};
2669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2679 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2680 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2686 wxPy_BEGIN_ALLOW_THREADS
;
2687 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2689 wxPy_END_ALLOW_THREADS
;
2690 if (PyErr_Occurred()) return NULL
;
2691 } Py_INCREF(Py_None
);
2692 _resultobj
= Py_None
;
2696 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2697 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2698 PyObject
* _resultobj
;
2699 wxDragResult _result
;
2700 wxPyDropSource
* _arg0
;
2701 int _arg1
= (int ) FALSE
;
2702 PyObject
* _argo0
= 0;
2703 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2716 wxPy_BEGIN_ALLOW_THREADS
;
2717 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2719 wxPy_END_ALLOW_THREADS
;
2720 if (PyErr_Occurred()) return NULL
;
2721 } _resultobj
= Py_BuildValue("i",_result
);
2725 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2726 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2727 PyObject
* _resultobj
;
2729 wxPyDropSource
* _arg0
;
2731 PyObject
* _argo0
= 0;
2732 char *_kwnames
[] = { "self","effect", NULL
};
2735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2745 wxPy_BEGIN_ALLOW_THREADS
;
2746 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2748 wxPy_END_ALLOW_THREADS
;
2749 if (PyErr_Occurred()) return NULL
;
2750 } _resultobj
= Py_BuildValue("i",_result
);
2754 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2755 wxPyDropTarget
*src
;
2757 src
= (wxPyDropTarget
*) ptr
;
2758 dest
= (wxDropTarget
*) src
;
2759 return (void *) dest
;
2762 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2763 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2764 PyObject
* _resultobj
;
2765 wxPyDropTarget
* _result
;
2766 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2767 PyObject
* _argo0
= 0;
2768 char *_kwnames
[] = { "dataObject", NULL
};
2772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2782 wxPy_BEGIN_ALLOW_THREADS
;
2783 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2785 wxPy_END_ALLOW_THREADS
;
2786 if (PyErr_Occurred()) return NULL
;
2788 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2789 _resultobj
= Py_BuildValue("s",_ptemp
);
2792 _resultobj
= Py_None
;
2797 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2798 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2799 PyObject
* _resultobj
;
2800 wxPyDropTarget
* _arg0
;
2803 PyObject
* _argo0
= 0;
2804 PyObject
* _obj1
= 0;
2805 PyObject
* _obj2
= 0;
2806 char *_kwnames
[] = { "self","self","_class", NULL
};
2809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2825 wxPy_BEGIN_ALLOW_THREADS
;
2826 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2828 wxPy_END_ALLOW_THREADS
;
2829 if (PyErr_Occurred()) return NULL
;
2830 } Py_INCREF(Py_None
);
2831 _resultobj
= Py_None
;
2835 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2836 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2837 PyObject
* _resultobj
;
2838 wxPyDropTarget
* _arg0
;
2839 PyObject
* _argo0
= 0;
2840 char *_kwnames
[] = { "self", NULL
};
2843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2853 wxPy_BEGIN_ALLOW_THREADS
;
2854 delete_wxPyDropTarget(_arg0
);
2856 wxPy_END_ALLOW_THREADS
;
2857 if (PyErr_Occurred()) return NULL
;
2858 } Py_INCREF(Py_None
);
2859 _resultobj
= Py_None
;
2863 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2864 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2865 PyObject
* _resultobj
;
2866 wxDataObject
* _result
;
2867 wxPyDropTarget
* _arg0
;
2868 PyObject
* _argo0
= 0;
2869 char *_kwnames
[] = { "self", NULL
};
2873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2883 wxPy_BEGIN_ALLOW_THREADS
;
2884 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2886 wxPy_END_ALLOW_THREADS
;
2887 if (PyErr_Occurred()) return NULL
;
2889 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2890 _resultobj
= Py_BuildValue("s",_ptemp
);
2893 _resultobj
= Py_None
;
2898 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2899 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2900 PyObject
* _resultobj
;
2901 wxPyDropTarget
* _arg0
;
2902 wxDataObject
* _arg1
;
2903 PyObject
* _argo0
= 0;
2904 PyObject
* _argo1
= 0;
2905 char *_kwnames
[] = { "self","dataObject", NULL
};
2908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2918 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2919 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2925 wxPy_BEGIN_ALLOW_THREADS
;
2926 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2928 wxPy_END_ALLOW_THREADS
;
2929 if (PyErr_Occurred()) return NULL
;
2930 } Py_INCREF(Py_None
);
2931 _resultobj
= Py_None
;
2935 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2936 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2938 wxDragResult _result
;
2939 wxPyDropTarget
* _arg0
;
2943 PyObject
* _argo0
= 0;
2944 char *_kwnames
[] = { "self","x","y","def", NULL
};
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2957 wxPy_BEGIN_ALLOW_THREADS
;
2958 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2960 wxPy_END_ALLOW_THREADS
;
2961 if (PyErr_Occurred()) return NULL
;
2962 } _resultobj
= Py_BuildValue("i",_result
);
2966 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2967 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2968 PyObject
* _resultobj
;
2969 wxDragResult _result
;
2970 wxPyDropTarget
* _arg0
;
2974 PyObject
* _argo0
= 0;
2975 char *_kwnames
[] = { "self","x","y","def", NULL
};
2978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2988 wxPy_BEGIN_ALLOW_THREADS
;
2989 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2991 wxPy_END_ALLOW_THREADS
;
2992 if (PyErr_Occurred()) return NULL
;
2993 } _resultobj
= Py_BuildValue("i",_result
);
2997 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2998 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2999 PyObject
* _resultobj
;
3000 wxPyDropTarget
* _arg0
;
3001 PyObject
* _argo0
= 0;
3002 char *_kwnames
[] = { "self", NULL
};
3005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3015 wxPy_BEGIN_ALLOW_THREADS
;
3016 wxPyDropTarget_base_OnLeave(_arg0
);
3018 wxPy_END_ALLOW_THREADS
;
3019 if (PyErr_Occurred()) return NULL
;
3020 } Py_INCREF(Py_None
);
3021 _resultobj
= Py_None
;
3025 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3026 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3027 PyObject
* _resultobj
;
3029 wxPyDropTarget
* _arg0
;
3032 PyObject
* _argo0
= 0;
3033 char *_kwnames
[] = { "self","x","y", NULL
};
3036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3046 wxPy_BEGIN_ALLOW_THREADS
;
3047 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3049 wxPy_END_ALLOW_THREADS
;
3050 if (PyErr_Occurred()) return NULL
;
3051 } _resultobj
= Py_BuildValue("i",_result
);
3055 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3056 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3057 PyObject
* _resultobj
;
3059 wxPyDropTarget
* _arg0
;
3060 PyObject
* _argo0
= 0;
3061 char *_kwnames
[] = { "self", NULL
};
3064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3074 wxPy_BEGIN_ALLOW_THREADS
;
3075 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3077 wxPy_END_ALLOW_THREADS
;
3078 if (PyErr_Occurred()) return NULL
;
3079 } _resultobj
= Py_BuildValue("i",_result
);
3083 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3084 wxPyTextDropTarget
*src
;
3085 wxPyDropTarget
*dest
;
3086 src
= (wxPyTextDropTarget
*) ptr
;
3087 dest
= (wxPyDropTarget
*) src
;
3088 return (void *) dest
;
3091 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3092 wxPyTextDropTarget
*src
;
3094 src
= (wxPyTextDropTarget
*) ptr
;
3095 dest
= (wxDropTarget
*) src
;
3096 return (void *) dest
;
3099 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3100 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3101 PyObject
* _resultobj
;
3102 wxPyTextDropTarget
* _result
;
3103 char *_kwnames
[] = { NULL
};
3107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3110 wxPy_BEGIN_ALLOW_THREADS
;
3111 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3113 wxPy_END_ALLOW_THREADS
;
3114 if (PyErr_Occurred()) return NULL
;
3116 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3117 _resultobj
= Py_BuildValue("s",_ptemp
);
3120 _resultobj
= Py_None
;
3125 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3126 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
* _resultobj
;
3128 wxPyTextDropTarget
* _arg0
;
3131 PyObject
* _argo0
= 0;
3132 PyObject
* _obj1
= 0;
3133 PyObject
* _obj2
= 0;
3134 char *_kwnames
[] = { "self","self","_class", NULL
};
3137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3153 wxPy_BEGIN_ALLOW_THREADS
;
3154 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3156 wxPy_END_ALLOW_THREADS
;
3157 if (PyErr_Occurred()) return NULL
;
3158 } Py_INCREF(Py_None
);
3159 _resultobj
= Py_None
;
3163 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3164 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3165 PyObject
* _resultobj
;
3166 wxDragResult _result
;
3167 wxPyTextDropTarget
* _arg0
;
3171 PyObject
* _argo0
= 0;
3172 char *_kwnames
[] = { "self","x","y","def", NULL
};
3175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3185 wxPy_BEGIN_ALLOW_THREADS
;
3186 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3188 wxPy_END_ALLOW_THREADS
;
3189 if (PyErr_Occurred()) return NULL
;
3190 } _resultobj
= Py_BuildValue("i",_result
);
3194 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3195 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
* _resultobj
;
3197 wxDragResult _result
;
3198 wxPyTextDropTarget
* _arg0
;
3202 PyObject
* _argo0
= 0;
3203 char *_kwnames
[] = { "self","x","y","def", NULL
};
3206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3216 wxPy_BEGIN_ALLOW_THREADS
;
3217 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3219 wxPy_END_ALLOW_THREADS
;
3220 if (PyErr_Occurred()) return NULL
;
3221 } _resultobj
= Py_BuildValue("i",_result
);
3225 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3226 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3228 wxPyTextDropTarget
* _arg0
;
3229 PyObject
* _argo0
= 0;
3230 char *_kwnames
[] = { "self", NULL
};
3233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3243 wxPy_BEGIN_ALLOW_THREADS
;
3244 wxTextDropTarget_base_OnLeave(_arg0
);
3246 wxPy_END_ALLOW_THREADS
;
3247 if (PyErr_Occurred()) return NULL
;
3248 } Py_INCREF(Py_None
);
3249 _resultobj
= Py_None
;
3253 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3254 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3255 PyObject
* _resultobj
;
3257 wxPyTextDropTarget
* _arg0
;
3260 PyObject
* _argo0
= 0;
3261 char *_kwnames
[] = { "self","x","y", NULL
};
3264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3274 wxPy_BEGIN_ALLOW_THREADS
;
3275 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3277 wxPy_END_ALLOW_THREADS
;
3278 if (PyErr_Occurred()) return NULL
;
3279 } _resultobj
= Py_BuildValue("i",_result
);
3283 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3284 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
* _resultobj
;
3286 wxDragResult _result
;
3287 wxPyTextDropTarget
* _arg0
;
3291 PyObject
* _argo0
= 0;
3292 char *_kwnames
[] = { "self","x","y","def", NULL
};
3295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3305 wxPy_BEGIN_ALLOW_THREADS
;
3306 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3308 wxPy_END_ALLOW_THREADS
;
3309 if (PyErr_Occurred()) return NULL
;
3310 } _resultobj
= Py_BuildValue("i",_result
);
3314 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3315 wxPyFileDropTarget
*src
;
3316 wxPyDropTarget
*dest
;
3317 src
= (wxPyFileDropTarget
*) ptr
;
3318 dest
= (wxPyDropTarget
*) src
;
3319 return (void *) dest
;
3322 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3323 wxPyFileDropTarget
*src
;
3325 src
= (wxPyFileDropTarget
*) ptr
;
3326 dest
= (wxDropTarget
*) src
;
3327 return (void *) dest
;
3330 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3331 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3332 PyObject
* _resultobj
;
3333 wxPyFileDropTarget
* _result
;
3334 char *_kwnames
[] = { NULL
};
3338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3341 wxPy_BEGIN_ALLOW_THREADS
;
3342 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3344 wxPy_END_ALLOW_THREADS
;
3345 if (PyErr_Occurred()) return NULL
;
3347 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3348 _resultobj
= Py_BuildValue("s",_ptemp
);
3351 _resultobj
= Py_None
;
3356 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3357 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3358 PyObject
* _resultobj
;
3359 wxPyFileDropTarget
* _arg0
;
3362 PyObject
* _argo0
= 0;
3363 PyObject
* _obj1
= 0;
3364 PyObject
* _obj2
= 0;
3365 char *_kwnames
[] = { "self","self","_class", NULL
};
3368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3384 wxPy_BEGIN_ALLOW_THREADS
;
3385 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3387 wxPy_END_ALLOW_THREADS
;
3388 if (PyErr_Occurred()) return NULL
;
3389 } Py_INCREF(Py_None
);
3390 _resultobj
= Py_None
;
3394 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3395 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3397 wxDragResult _result
;
3398 wxPyFileDropTarget
* _arg0
;
3402 PyObject
* _argo0
= 0;
3403 char *_kwnames
[] = { "self","x","y","def", NULL
};
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3416 wxPy_BEGIN_ALLOW_THREADS
;
3417 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3419 wxPy_END_ALLOW_THREADS
;
3420 if (PyErr_Occurred()) return NULL
;
3421 } _resultobj
= Py_BuildValue("i",_result
);
3425 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3426 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3427 PyObject
* _resultobj
;
3428 wxDragResult _result
;
3429 wxPyFileDropTarget
* _arg0
;
3433 PyObject
* _argo0
= 0;
3434 char *_kwnames
[] = { "self","x","y","def", NULL
};
3437 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3440 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3441 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3447 wxPy_BEGIN_ALLOW_THREADS
;
3448 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3450 wxPy_END_ALLOW_THREADS
;
3451 if (PyErr_Occurred()) return NULL
;
3452 } _resultobj
= Py_BuildValue("i",_result
);
3456 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3457 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3458 PyObject
* _resultobj
;
3459 wxPyFileDropTarget
* _arg0
;
3460 PyObject
* _argo0
= 0;
3461 char *_kwnames
[] = { "self", NULL
};
3464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3474 wxPy_BEGIN_ALLOW_THREADS
;
3475 wxFileDropTarget_base_OnLeave(_arg0
);
3477 wxPy_END_ALLOW_THREADS
;
3478 if (PyErr_Occurred()) return NULL
;
3479 } Py_INCREF(Py_None
);
3480 _resultobj
= Py_None
;
3484 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3485 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3486 PyObject
* _resultobj
;
3488 wxPyFileDropTarget
* _arg0
;
3491 PyObject
* _argo0
= 0;
3492 char *_kwnames
[] = { "self","x","y", NULL
};
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3505 wxPy_BEGIN_ALLOW_THREADS
;
3506 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3508 wxPy_END_ALLOW_THREADS
;
3509 if (PyErr_Occurred()) return NULL
;
3510 } _resultobj
= Py_BuildValue("i",_result
);
3514 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3515 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3516 PyObject
* _resultobj
;
3517 wxDragResult _result
;
3518 wxPyFileDropTarget
* _arg0
;
3522 PyObject
* _argo0
= 0;
3523 char *_kwnames
[] = { "self","x","y","def", NULL
};
3526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3536 wxPy_BEGIN_ALLOW_THREADS
;
3537 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3539 wxPy_END_ALLOW_THREADS
;
3540 if (PyErr_Occurred()) return NULL
;
3541 } _resultobj
= Py_BuildValue("i",_result
);
3545 static PyMethodDef clip_dndcMethods
[] = {
3546 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3563 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3564 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3565 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3566 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3573 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3574 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3575 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3576 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3577 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3578 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3579 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3580 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3581 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3582 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3640 * This table is used by the pointer type-checker
3642 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3643 { "_signed_long","_long",0},
3644 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3645 { "_wxPrintQuality","_wxCoord",0},
3646 { "_wxPrintQuality","_int",0},
3647 { "_wxPrintQuality","_signed_int",0},
3648 { "_wxPrintQuality","_unsigned_int",0},
3649 { "_wxPrintQuality","_wxWindowID",0},
3650 { "_wxPrintQuality","_uint",0},
3651 { "_wxPrintQuality","_EBool",0},
3652 { "_wxPrintQuality","_size_t",0},
3653 { "_wxPrintQuality","_time_t",0},
3654 { "_byte","_unsigned_char",0},
3655 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3656 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3657 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3658 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3659 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3660 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3661 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3662 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3663 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3664 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3665 { "_long","_unsigned_long",0},
3666 { "_long","_signed_long",0},
3667 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3668 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3669 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3670 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3671 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3672 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3673 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3674 { "_size_t","_wxCoord",0},
3675 { "_size_t","_wxPrintQuality",0},
3676 { "_size_t","_time_t",0},
3677 { "_size_t","_unsigned_int",0},
3678 { "_size_t","_int",0},
3679 { "_size_t","_wxWindowID",0},
3680 { "_size_t","_uint",0},
3681 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3682 { "_uint","_wxCoord",0},
3683 { "_uint","_wxPrintQuality",0},
3684 { "_uint","_time_t",0},
3685 { "_uint","_size_t",0},
3686 { "_uint","_unsigned_int",0},
3687 { "_uint","_int",0},
3688 { "_uint","_wxWindowID",0},
3689 { "_wxChar","_char",0},
3690 { "_char","_wxChar",0},
3691 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3692 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3693 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3694 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3695 { "_EBool","_wxCoord",0},
3696 { "_EBool","_wxPrintQuality",0},
3697 { "_EBool","_signed_int",0},
3698 { "_EBool","_int",0},
3699 { "_EBool","_wxWindowID",0},
3700 { "_unsigned_long","_long",0},
3701 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3702 { "_signed_int","_wxCoord",0},
3703 { "_signed_int","_wxPrintQuality",0},
3704 { "_signed_int","_EBool",0},
3705 { "_signed_int","_wxWindowID",0},
3706 { "_signed_int","_int",0},
3707 { "_WXTYPE","_short",0},
3708 { "_WXTYPE","_signed_short",0},
3709 { "_WXTYPE","_unsigned_short",0},
3710 { "_unsigned_short","_WXTYPE",0},
3711 { "_unsigned_short","_short",0},
3712 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3713 { "_signed_short","_WXTYPE",0},
3714 { "_signed_short","_short",0},
3715 { "_unsigned_char","_byte",0},
3716 { "_unsigned_int","_wxCoord",0},
3717 { "_unsigned_int","_wxPrintQuality",0},
3718 { "_unsigned_int","_time_t",0},
3719 { "_unsigned_int","_size_t",0},
3720 { "_unsigned_int","_uint",0},
3721 { "_unsigned_int","_wxWindowID",0},
3722 { "_unsigned_int","_int",0},
3723 { "_short","_WXTYPE",0},
3724 { "_short","_unsigned_short",0},
3725 { "_short","_signed_short",0},
3726 { "_wxWindowID","_wxCoord",0},
3727 { "_wxWindowID","_wxPrintQuality",0},
3728 { "_wxWindowID","_time_t",0},
3729 { "_wxWindowID","_size_t",0},
3730 { "_wxWindowID","_EBool",0},
3731 { "_wxWindowID","_uint",0},
3732 { "_wxWindowID","_int",0},
3733 { "_wxWindowID","_signed_int",0},
3734 { "_wxWindowID","_unsigned_int",0},
3735 { "_int","_wxCoord",0},
3736 { "_int","_wxPrintQuality",0},
3737 { "_int","_time_t",0},
3738 { "_int","_size_t",0},
3739 { "_int","_EBool",0},
3740 { "_int","_uint",0},
3741 { "_int","_wxWindowID",0},
3742 { "_int","_unsigned_int",0},
3743 { "_int","_signed_int",0},
3744 { "_time_t","_wxCoord",0},
3745 { "_time_t","_wxPrintQuality",0},
3746 { "_time_t","_unsigned_int",0},
3747 { "_time_t","_int",0},
3748 { "_time_t","_wxWindowID",0},
3749 { "_time_t","_uint",0},
3750 { "_time_t","_size_t",0},
3751 { "_wxCoord","_int",0},
3752 { "_wxCoord","_signed_int",0},
3753 { "_wxCoord","_unsigned_int",0},
3754 { "_wxCoord","_wxWindowID",0},
3755 { "_wxCoord","_uint",0},
3756 { "_wxCoord","_EBool",0},
3757 { "_wxCoord","_size_t",0},
3758 { "_wxCoord","_time_t",0},
3759 { "_wxCoord","_wxPrintQuality",0},
3760 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3761 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3762 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3765 static PyObject
*SWIG_globals
;
3769 SWIGEXPORT(void) initclip_dndc() {
3771 SWIG_globals
= SWIG_newvarlink();
3772 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3773 d
= PyModule_GetDict(m
);
3774 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3775 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3776 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3777 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3778 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3779 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3780 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3781 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3782 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3783 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3784 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3785 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3786 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3787 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3788 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3789 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3790 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3791 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3792 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3793 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3794 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3795 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3796 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3797 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3798 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3799 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3800 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3801 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3804 wxPyTheClipboard
= wxTheClipboard
;
3805 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3806 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3807 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3808 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3809 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3810 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3813 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3814 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);