2 * FILE : src/gtk/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
90 #if PYTHON_API_VERSION >= 1009
91 static char* wxStringErrorMsg
= "String or Unicode type required";
93 static char* wxStringErrorMsg
= "String type required";
95 // An alternate constructor...
96 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
97 return new wxDataFormat(id
);
100 wxDataFormat wxPyFormatInvalid
;
101 // Create a new class for wxPython to use
102 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
104 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
105 : wxDataObjectSimple(format
) {}
107 DEC_PYCALLBACK_SIZET_(GetDataSize
);
108 bool GetDataHere(void *buf
);
109 bool SetData(size_t len
, const void *buf
);
113 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
115 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
116 // We need to get the data for this object and write it to buf. I think
117 // the best way to do this for wxPython is to have the Python method
118 // return either a string or None and then act appropriately with the
122 wxPyTState
* state
= wxPyBeginBlockThreads();
123 if (m_myInst
.findCallback("GetDataHere")) {
125 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
127 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
129 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
133 wxPyEndBlockThreads(state
);
137 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
138 // For this one we simply need to make a string from buf and len
139 // and send it to the Python method.
141 wxPyTState
* state
= wxPyBeginBlockThreads();
142 if (m_myInst
.findCallback("SetData")) {
143 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
144 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
147 wxPyEndBlockThreads(state
);
150 // Create a new class for wxPython to use
151 class wxPyTextDataObject
: public wxTextDataObject
{
153 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
154 : wxTextDataObject(text
) {}
156 DEC_PYCALLBACK_SIZET_(GetTextLength
);
157 DEC_PYCALLBACK_STRING_(GetText
);
158 DEC_PYCALLBACK__STRING(SetText
);
162 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
163 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
164 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
166 // Create a new class for wxPython to use
167 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
169 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
170 : wxBitmapDataObject(bitmap
) {}
172 wxBitmap
GetBitmap();
173 void SetBitmap(const wxBitmap
& bitmap
);
177 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
178 wxBitmap
* rval
= &wxNullBitmap
;
179 wxPyTState
* state
= wxPyBeginBlockThreads();
180 if (m_myInst
.findCallback("GetBitmap")) {
183 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
185 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
190 wxPyEndBlockThreads(state
);
194 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
195 wxPyTState
* state
= wxPyBeginBlockThreads();
196 if (m_myInst
.findCallback("SetBitmap")) {
197 m_myInst
.callCallback(Py_BuildValue("(O)",
198 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
200 wxPyEndBlockThreads(state
);
203 // See below in the init function...
204 wxClipboard
* wxPyTheClipboard
;
206 class wxPyDropSource
: public wxDropSource
{
209 wxPyDropSource(wxWindow
*win
= NULL
,
210 const wxCursor
&cursorCopy
= wxNullCursor
,
211 const wxCursor
&cursorMove
= wxNullCursor
,
212 const wxCursor
&cursorStop
= wxNullCursor
)
213 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
215 wxPyDropSource(wxWindow
*win
= NULL
,
216 const wxIcon
&go
= wxNullIcon
)
217 : wxDropSource(win
, go
) {}
219 ~wxPyDropSource() { }
221 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
225 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
228 class wxPyDropTarget
: public wxDropTarget
{
230 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
231 : wxDropTarget(dataObject
) {}
233 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
234 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
236 DEC_PYCALLBACK__(OnLeave
);
237 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
238 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
239 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
240 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
245 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
246 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
248 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
249 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
250 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
251 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
252 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
255 class wxPyTextDropTarget
: public wxTextDropTarget
{
257 wxPyTextDropTarget() {}
259 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
261 DEC_PYCALLBACK__(OnLeave
);
262 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
263 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
264 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
265 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
270 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
271 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
275 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
278 class wxPyFileDropTarget
: public wxFileDropTarget
{
280 wxPyFileDropTarget() {}
282 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
284 DEC_PYCALLBACK__(OnLeave
);
285 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
286 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
287 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
288 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
293 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
294 const wxArrayString
& filenames
) {
296 wxPyTState
* state
= wxPyBeginBlockThreads();
297 PyObject
* list
= 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 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1742 wxCustomDataObject
*src
;
1743 wxDataObjectSimple
*dest
;
1744 src
= (wxCustomDataObject
*) ptr
;
1745 dest
= (wxDataObjectSimple
*) src
;
1746 return (void *) dest
;
1749 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1750 wxCustomDataObject
*src
;
1752 src
= (wxCustomDataObject
*) ptr
;
1753 dest
= (wxDataObject
*) src
;
1754 return (void *) dest
;
1757 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1758 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1759 PyObject
* _resultobj
;
1760 wxCustomDataObject
* _result
;
1761 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1762 PyObject
* _argo0
= 0;
1763 char *_kwnames
[] = { "format", NULL
};
1767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1777 wxPy_BEGIN_ALLOW_THREADS
;
1778 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1780 wxPy_END_ALLOW_THREADS
;
1781 if (PyErr_Occurred()) return NULL
;
1783 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1784 _resultobj
= Py_BuildValue("s",_ptemp
);
1787 _resultobj
= Py_None
;
1792 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1793 if (PyString_Check(data
)) {
1794 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1797 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1798 PyObject
* _resultobj
;
1799 wxCustomDataObject
* _arg0
;
1801 PyObject
* _argo0
= 0;
1802 PyObject
* _obj1
= 0;
1803 char *_kwnames
[] = { "self","data", NULL
};
1806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1819 wxPy_BEGIN_ALLOW_THREADS
;
1820 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1822 wxPy_END_ALLOW_THREADS
;
1823 if (PyErr_Occurred()) return NULL
;
1824 } Py_INCREF(Py_None
);
1825 _resultobj
= Py_None
;
1829 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1830 if (PyString_Check(data
)) {
1831 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1835 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1836 PyObject
* _resultobj
;
1838 wxCustomDataObject
* _arg0
;
1840 PyObject
* _argo0
= 0;
1841 PyObject
* _obj1
= 0;
1842 char *_kwnames
[] = { "self","data", NULL
};
1845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1858 wxPy_BEGIN_ALLOW_THREADS
;
1859 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1861 wxPy_END_ALLOW_THREADS
;
1862 if (PyErr_Occurred()) return NULL
;
1863 } _resultobj
= Py_BuildValue("i",_result
);
1867 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1868 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1869 PyObject
* _resultobj
;
1871 wxCustomDataObject
* _arg0
;
1872 PyObject
* _argo0
= 0;
1873 char *_kwnames
[] = { "self", NULL
};
1876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1886 wxPy_BEGIN_ALLOW_THREADS
;
1887 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1889 wxPy_END_ALLOW_THREADS
;
1890 if (PyErr_Occurred()) return NULL
;
1891 } _resultobj
= Py_BuildValue("i",_result
);
1895 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1896 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1898 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1901 wxCustomDataObject
* _arg0
;
1902 PyObject
* _argo0
= 0;
1903 char *_kwnames
[] = { "self", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1916 wxPy_BEGIN_ALLOW_THREADS
;
1917 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1919 wxPy_END_ALLOW_THREADS
;
1920 if (PyErr_Occurred()) return NULL
;
1922 _resultobj
= _result
;
1927 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1928 wxURLDataObject
*src
;
1929 wxDataObjectComposite
*dest
;
1930 src
= (wxURLDataObject
*) ptr
;
1931 dest
= (wxDataObjectComposite
*) src
;
1932 return (void *) dest
;
1935 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1936 wxURLDataObject
*src
;
1938 src
= (wxURLDataObject
*) ptr
;
1939 dest
= (wxDataObject
*) src
;
1940 return (void *) dest
;
1943 #define new_wxURLDataObject() (new wxURLDataObject())
1944 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1945 PyObject
* _resultobj
;
1946 wxURLDataObject
* _result
;
1947 char *_kwnames
[] = { NULL
};
1951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1954 wxPy_BEGIN_ALLOW_THREADS
;
1955 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1957 wxPy_END_ALLOW_THREADS
;
1958 if (PyErr_Occurred()) return NULL
;
1960 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1961 _resultobj
= Py_BuildValue("s",_ptemp
);
1964 _resultobj
= Py_None
;
1969 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1970 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1971 PyObject
* _resultobj
;
1973 wxURLDataObject
* _arg0
;
1974 PyObject
* _argo0
= 0;
1975 char *_kwnames
[] = { "self", NULL
};
1978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1988 wxPy_BEGIN_ALLOW_THREADS
;
1989 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1991 wxPy_END_ALLOW_THREADS
;
1992 if (PyErr_Occurred()) return NULL
;
1994 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2002 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2003 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2004 PyObject
* _resultobj
;
2005 wxURLDataObject
* _arg0
;
2007 PyObject
* _argo0
= 0;
2008 PyObject
* _obj1
= 0;
2009 char *_kwnames
[] = { "self","url", NULL
};
2012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2022 #if PYTHON_API_VERSION >= 1009
2023 char* tmpPtr
; int tmpSize
;
2024 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2025 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2028 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2030 _arg1
= new wxString(tmpPtr
, tmpSize
);
2032 if (!PyString_Check(_obj1
)) {
2033 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2036 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2040 wxPy_BEGIN_ALLOW_THREADS
;
2041 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2043 wxPy_END_ALLOW_THREADS
;
2044 if (PyErr_Occurred()) return NULL
;
2045 } Py_INCREF(Py_None
);
2046 _resultobj
= Py_None
;
2054 static void *SwigwxClipboardTowxObject(void *ptr
) {
2057 src
= (wxClipboard
*) ptr
;
2058 dest
= (wxObject
*) src
;
2059 return (void *) dest
;
2062 #define new_wxClipboard() (new wxClipboard())
2063 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2064 PyObject
* _resultobj
;
2065 wxClipboard
* _result
;
2066 char *_kwnames
[] = { NULL
};
2070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2073 wxPy_BEGIN_ALLOW_THREADS
;
2074 _result
= (wxClipboard
*)new_wxClipboard();
2076 wxPy_END_ALLOW_THREADS
;
2077 if (PyErr_Occurred()) return NULL
;
2079 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2080 _resultobj
= Py_BuildValue("s",_ptemp
);
2083 _resultobj
= Py_None
;
2088 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2089 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2090 PyObject
* _resultobj
;
2092 wxClipboard
* _arg0
;
2093 PyObject
* _argo0
= 0;
2094 char *_kwnames
[] = { "self", NULL
};
2097 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2100 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2101 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2107 wxPy_BEGIN_ALLOW_THREADS
;
2108 _result
= (bool )wxClipboard_Open(_arg0
);
2110 wxPy_END_ALLOW_THREADS
;
2111 if (PyErr_Occurred()) return NULL
;
2112 } _resultobj
= Py_BuildValue("i",_result
);
2116 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2117 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2118 PyObject
* _resultobj
;
2119 wxClipboard
* _arg0
;
2120 PyObject
* _argo0
= 0;
2121 char *_kwnames
[] = { "self", NULL
};
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2134 wxPy_BEGIN_ALLOW_THREADS
;
2135 wxClipboard_Close(_arg0
);
2137 wxPy_END_ALLOW_THREADS
;
2138 if (PyErr_Occurred()) return NULL
;
2139 } Py_INCREF(Py_None
);
2140 _resultobj
= Py_None
;
2144 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2145 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2146 PyObject
* _resultobj
;
2148 wxClipboard
* _arg0
;
2149 PyObject
* _argo0
= 0;
2150 char *_kwnames
[] = { "self", NULL
};
2153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2163 wxPy_BEGIN_ALLOW_THREADS
;
2164 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2166 wxPy_END_ALLOW_THREADS
;
2167 if (PyErr_Occurred()) return NULL
;
2168 } _resultobj
= Py_BuildValue("i",_result
);
2172 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2173 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2174 PyObject
* _resultobj
;
2176 wxClipboard
* _arg0
;
2177 wxDataObject
* _arg1
;
2178 PyObject
* _argo0
= 0;
2179 PyObject
* _argo1
= 0;
2180 char *_kwnames
[] = { "self","data", NULL
};
2183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2193 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2194 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2200 wxPy_BEGIN_ALLOW_THREADS
;
2201 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2203 wxPy_END_ALLOW_THREADS
;
2204 if (PyErr_Occurred()) return NULL
;
2205 } _resultobj
= Py_BuildValue("i",_result
);
2209 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2210 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2211 PyObject
* _resultobj
;
2213 wxClipboard
* _arg0
;
2214 wxDataObject
* _arg1
;
2215 PyObject
* _argo0
= 0;
2216 PyObject
* _argo1
= 0;
2217 char *_kwnames
[] = { "self","data", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2230 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2231 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2237 wxPy_BEGIN_ALLOW_THREADS
;
2238 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2240 wxPy_END_ALLOW_THREADS
;
2241 if (PyErr_Occurred()) return NULL
;
2242 } _resultobj
= Py_BuildValue("i",_result
);
2246 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2247 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2248 PyObject
* _resultobj
;
2250 wxClipboard
* _arg0
;
2251 wxDataFormat
* _arg1
;
2252 PyObject
* _argo0
= 0;
2253 PyObject
* _argo1
= 0;
2254 char *_kwnames
[] = { "self","format", NULL
};
2257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2267 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2268 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2274 wxPy_BEGIN_ALLOW_THREADS
;
2275 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2277 wxPy_END_ALLOW_THREADS
;
2278 if (PyErr_Occurred()) return NULL
;
2279 } _resultobj
= Py_BuildValue("i",_result
);
2283 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2284 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2285 PyObject
* _resultobj
;
2287 wxClipboard
* _arg0
;
2288 wxDataObject
* _arg1
;
2289 PyObject
* _argo0
= 0;
2290 PyObject
* _argo1
= 0;
2291 char *_kwnames
[] = { "self","data", NULL
};
2294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2304 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2305 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2311 wxPy_BEGIN_ALLOW_THREADS
;
2312 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2314 wxPy_END_ALLOW_THREADS
;
2315 if (PyErr_Occurred()) return NULL
;
2316 } _resultobj
= Py_BuildValue("i",_result
);
2320 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2321 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2322 PyObject
* _resultobj
;
2323 wxClipboard
* _arg0
;
2324 PyObject
* _argo0
= 0;
2325 char *_kwnames
[] = { "self", NULL
};
2328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2338 wxPy_BEGIN_ALLOW_THREADS
;
2339 wxClipboard_Clear(_arg0
);
2341 wxPy_END_ALLOW_THREADS
;
2342 if (PyErr_Occurred()) return NULL
;
2343 } Py_INCREF(Py_None
);
2344 _resultobj
= Py_None
;
2348 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2349 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2350 PyObject
* _resultobj
;
2352 wxClipboard
* _arg0
;
2353 PyObject
* _argo0
= 0;
2354 char *_kwnames
[] = { "self", NULL
};
2357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2367 wxPy_BEGIN_ALLOW_THREADS
;
2368 _result
= (bool )wxClipboard_Flush(_arg0
);
2370 wxPy_END_ALLOW_THREADS
;
2371 if (PyErr_Occurred()) return NULL
;
2372 } _resultobj
= Py_BuildValue("i",_result
);
2376 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2377 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2378 PyObject
* _resultobj
;
2379 wxClipboard
* _arg0
;
2380 int _arg1
= (int ) FALSE
;
2381 PyObject
* _argo0
= 0;
2382 char *_kwnames
[] = { "self","primary", NULL
};
2385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2395 wxPy_BEGIN_ALLOW_THREADS
;
2396 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2398 wxPy_END_ALLOW_THREADS
;
2399 if (PyErr_Occurred()) return NULL
;
2400 } Py_INCREF(Py_None
);
2401 _resultobj
= Py_None
;
2405 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2406 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2407 PyObject
* _resultobj
;
2408 wxPyDropSource
* _result
;
2409 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2410 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2411 PyObject
* _argo0
= 0;
2412 PyObject
* _argo1
= 0;
2413 char *_kwnames
[] = { "win","go", NULL
};
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2427 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2428 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2434 wxPy_BEGIN_ALLOW_THREADS
;
2435 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2437 wxPy_END_ALLOW_THREADS
;
2438 if (PyErr_Occurred()) return NULL
;
2440 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2441 _resultobj
= Py_BuildValue("s",_ptemp
);
2444 _resultobj
= Py_None
;
2449 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2450 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2451 PyObject
* _resultobj
;
2452 wxPyDropSource
* _arg0
;
2456 PyObject
* _argo0
= 0;
2457 PyObject
* _obj1
= 0;
2458 PyObject
* _obj2
= 0;
2459 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2478 wxPy_BEGIN_ALLOW_THREADS
;
2479 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2481 wxPy_END_ALLOW_THREADS
;
2482 if (PyErr_Occurred()) return NULL
;
2483 } Py_INCREF(Py_None
);
2484 _resultobj
= Py_None
;
2488 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2489 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2490 PyObject
* _resultobj
;
2491 wxPyDropSource
* _arg0
;
2492 PyObject
* _argo0
= 0;
2493 char *_kwnames
[] = { "self", NULL
};
2496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2506 wxPy_BEGIN_ALLOW_THREADS
;
2507 delete_wxPyDropSource(_arg0
);
2509 wxPy_END_ALLOW_THREADS
;
2510 if (PyErr_Occurred()) return NULL
;
2511 } Py_INCREF(Py_None
);
2512 _resultobj
= Py_None
;
2516 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2517 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2518 PyObject
* _resultobj
;
2519 wxPyDropSource
* _arg0
;
2520 wxDataObject
* _arg1
;
2521 PyObject
* _argo0
= 0;
2522 PyObject
* _argo1
= 0;
2523 char *_kwnames
[] = { "self","data", NULL
};
2526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2536 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2543 wxPy_BEGIN_ALLOW_THREADS
;
2544 wxDropSource_SetData(_arg0
,*_arg1
);
2546 wxPy_END_ALLOW_THREADS
;
2547 if (PyErr_Occurred()) return NULL
;
2548 } Py_INCREF(Py_None
);
2549 _resultobj
= Py_None
;
2553 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2554 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2555 PyObject
* _resultobj
;
2556 wxDataObject
* _result
;
2557 wxPyDropSource
* _arg0
;
2558 PyObject
* _argo0
= 0;
2559 char *_kwnames
[] = { "self", NULL
};
2563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2573 wxPy_BEGIN_ALLOW_THREADS
;
2574 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2576 wxPy_END_ALLOW_THREADS
;
2577 if (PyErr_Occurred()) return NULL
;
2579 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2580 _resultobj
= Py_BuildValue("s",_ptemp
);
2583 _resultobj
= Py_None
;
2588 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2589 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2590 PyObject
* _resultobj
;
2591 wxPyDropSource
* _arg0
;
2594 PyObject
* _argo0
= 0;
2595 PyObject
* _argo2
= 0;
2596 char *_kwnames
[] = { "self","res","cursor", NULL
};
2599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2609 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2610 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2616 wxPy_BEGIN_ALLOW_THREADS
;
2617 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2619 wxPy_END_ALLOW_THREADS
;
2620 if (PyErr_Occurred()) return NULL
;
2621 } Py_INCREF(Py_None
);
2622 _resultobj
= Py_None
;
2626 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2627 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2628 PyObject
* _resultobj
;
2629 wxDragResult _result
;
2630 wxPyDropSource
* _arg0
;
2631 int _arg1
= (int ) FALSE
;
2632 PyObject
* _argo0
= 0;
2633 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2646 wxPy_BEGIN_ALLOW_THREADS
;
2647 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2649 wxPy_END_ALLOW_THREADS
;
2650 if (PyErr_Occurred()) return NULL
;
2651 } _resultobj
= Py_BuildValue("i",_result
);
2655 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2656 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2657 PyObject
* _resultobj
;
2659 wxPyDropSource
* _arg0
;
2661 PyObject
* _argo0
= 0;
2662 char *_kwnames
[] = { "self","effect", NULL
};
2665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2675 wxPy_BEGIN_ALLOW_THREADS
;
2676 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2678 wxPy_END_ALLOW_THREADS
;
2679 if (PyErr_Occurred()) return NULL
;
2680 } _resultobj
= Py_BuildValue("i",_result
);
2684 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2685 wxPyDropTarget
*src
;
2687 src
= (wxPyDropTarget
*) ptr
;
2688 dest
= (wxDropTarget
*) src
;
2689 return (void *) dest
;
2692 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2693 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2694 PyObject
* _resultobj
;
2695 wxPyDropTarget
* _result
;
2696 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2697 PyObject
* _argo0
= 0;
2698 char *_kwnames
[] = { "dataObject", NULL
};
2702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2712 wxPy_BEGIN_ALLOW_THREADS
;
2713 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2715 wxPy_END_ALLOW_THREADS
;
2716 if (PyErr_Occurred()) return NULL
;
2718 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2719 _resultobj
= Py_BuildValue("s",_ptemp
);
2722 _resultobj
= Py_None
;
2727 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2728 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2729 PyObject
* _resultobj
;
2730 wxPyDropTarget
* _arg0
;
2733 PyObject
* _argo0
= 0;
2734 PyObject
* _obj1
= 0;
2735 PyObject
* _obj2
= 0;
2736 char *_kwnames
[] = { "self","self","_class", NULL
};
2739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2755 wxPy_BEGIN_ALLOW_THREADS
;
2756 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2758 wxPy_END_ALLOW_THREADS
;
2759 if (PyErr_Occurred()) return NULL
;
2760 } Py_INCREF(Py_None
);
2761 _resultobj
= Py_None
;
2765 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2766 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2767 PyObject
* _resultobj
;
2768 wxPyDropTarget
* _arg0
;
2769 PyObject
* _argo0
= 0;
2770 char *_kwnames
[] = { "self", NULL
};
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2783 wxPy_BEGIN_ALLOW_THREADS
;
2784 delete_wxPyDropTarget(_arg0
);
2786 wxPy_END_ALLOW_THREADS
;
2787 if (PyErr_Occurred()) return NULL
;
2788 } Py_INCREF(Py_None
);
2789 _resultobj
= Py_None
;
2793 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2794 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2795 PyObject
* _resultobj
;
2796 wxDataObject
* _result
;
2797 wxPyDropTarget
* _arg0
;
2798 PyObject
* _argo0
= 0;
2799 char *_kwnames
[] = { "self", NULL
};
2803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2813 wxPy_BEGIN_ALLOW_THREADS
;
2814 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2816 wxPy_END_ALLOW_THREADS
;
2817 if (PyErr_Occurred()) return NULL
;
2819 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2820 _resultobj
= Py_BuildValue("s",_ptemp
);
2823 _resultobj
= Py_None
;
2828 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2829 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2830 PyObject
* _resultobj
;
2831 wxPyDropTarget
* _arg0
;
2832 wxDataObject
* _arg1
;
2833 PyObject
* _argo0
= 0;
2834 PyObject
* _argo1
= 0;
2835 char *_kwnames
[] = { "self","dataObject", NULL
};
2838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2841 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2842 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2848 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2849 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2855 wxPy_BEGIN_ALLOW_THREADS
;
2856 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2858 wxPy_END_ALLOW_THREADS
;
2859 if (PyErr_Occurred()) return NULL
;
2860 } Py_INCREF(Py_None
);
2861 _resultobj
= Py_None
;
2865 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2866 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2867 PyObject
* _resultobj
;
2868 wxDragResult _result
;
2869 wxPyDropTarget
* _arg0
;
2873 PyObject
* _argo0
= 0;
2874 char *_kwnames
[] = { "self","x","y","def", NULL
};
2877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2887 wxPy_BEGIN_ALLOW_THREADS
;
2888 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2890 wxPy_END_ALLOW_THREADS
;
2891 if (PyErr_Occurred()) return NULL
;
2892 } _resultobj
= Py_BuildValue("i",_result
);
2896 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2897 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2898 PyObject
* _resultobj
;
2899 wxDragResult _result
;
2900 wxPyDropTarget
* _arg0
;
2904 PyObject
* _argo0
= 0;
2905 char *_kwnames
[] = { "self","x","y","def", NULL
};
2908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
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_base_OnDragOver. Expected _wxPyDropTarget_p.");
2918 wxPy_BEGIN_ALLOW_THREADS
;
2919 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2921 wxPy_END_ALLOW_THREADS
;
2922 if (PyErr_Occurred()) return NULL
;
2923 } _resultobj
= Py_BuildValue("i",_result
);
2927 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2928 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2929 PyObject
* _resultobj
;
2930 wxPyDropTarget
* _arg0
;
2931 PyObject
* _argo0
= 0;
2932 char *_kwnames
[] = { "self", NULL
};
2935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2945 wxPy_BEGIN_ALLOW_THREADS
;
2946 wxPyDropTarget_base_OnLeave(_arg0
);
2948 wxPy_END_ALLOW_THREADS
;
2949 if (PyErr_Occurred()) return NULL
;
2950 } Py_INCREF(Py_None
);
2951 _resultobj
= Py_None
;
2955 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2956 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2957 PyObject
* _resultobj
;
2959 wxPyDropTarget
* _arg0
;
2962 PyObject
* _argo0
= 0;
2963 char *_kwnames
[] = { "self","x","y", NULL
};
2966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2976 wxPy_BEGIN_ALLOW_THREADS
;
2977 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2979 wxPy_END_ALLOW_THREADS
;
2980 if (PyErr_Occurred()) return NULL
;
2981 } _resultobj
= Py_BuildValue("i",_result
);
2985 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2986 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2987 PyObject
* _resultobj
;
2989 wxPyDropTarget
* _arg0
;
2990 PyObject
* _argo0
= 0;
2991 char *_kwnames
[] = { "self", NULL
};
2994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3004 wxPy_BEGIN_ALLOW_THREADS
;
3005 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3007 wxPy_END_ALLOW_THREADS
;
3008 if (PyErr_Occurred()) return NULL
;
3009 } _resultobj
= Py_BuildValue("i",_result
);
3013 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3014 wxPyTextDropTarget
*src
;
3015 wxPyDropTarget
*dest
;
3016 src
= (wxPyTextDropTarget
*) ptr
;
3017 dest
= (wxPyDropTarget
*) src
;
3018 return (void *) dest
;
3021 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3022 wxPyTextDropTarget
*src
;
3024 src
= (wxPyTextDropTarget
*) ptr
;
3025 dest
= (wxDropTarget
*) src
;
3026 return (void *) dest
;
3029 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3030 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3031 PyObject
* _resultobj
;
3032 wxPyTextDropTarget
* _result
;
3033 char *_kwnames
[] = { NULL
};
3037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3040 wxPy_BEGIN_ALLOW_THREADS
;
3041 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3043 wxPy_END_ALLOW_THREADS
;
3044 if (PyErr_Occurred()) return NULL
;
3046 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3047 _resultobj
= Py_BuildValue("s",_ptemp
);
3050 _resultobj
= Py_None
;
3055 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3056 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3057 PyObject
* _resultobj
;
3058 wxPyTextDropTarget
* _arg0
;
3061 PyObject
* _argo0
= 0;
3062 PyObject
* _obj1
= 0;
3063 PyObject
* _obj2
= 0;
3064 char *_kwnames
[] = { "self","self","_class", NULL
};
3067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3083 wxPy_BEGIN_ALLOW_THREADS
;
3084 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3086 wxPy_END_ALLOW_THREADS
;
3087 if (PyErr_Occurred()) return NULL
;
3088 } Py_INCREF(Py_None
);
3089 _resultobj
= Py_None
;
3093 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3094 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3095 PyObject
* _resultobj
;
3096 wxDragResult _result
;
3097 wxPyTextDropTarget
* _arg0
;
3101 PyObject
* _argo0
= 0;
3102 char *_kwnames
[] = { "self","x","y","def", NULL
};
3105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3115 wxPy_BEGIN_ALLOW_THREADS
;
3116 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3118 wxPy_END_ALLOW_THREADS
;
3119 if (PyErr_Occurred()) return NULL
;
3120 } _resultobj
= Py_BuildValue("i",_result
);
3124 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3125 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3126 PyObject
* _resultobj
;
3127 wxDragResult _result
;
3128 wxPyTextDropTarget
* _arg0
;
3132 PyObject
* _argo0
= 0;
3133 char *_kwnames
[] = { "self","x","y","def", NULL
};
3136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3146 wxPy_BEGIN_ALLOW_THREADS
;
3147 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3149 wxPy_END_ALLOW_THREADS
;
3150 if (PyErr_Occurred()) return NULL
;
3151 } _resultobj
= Py_BuildValue("i",_result
);
3155 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3156 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3157 PyObject
* _resultobj
;
3158 wxPyTextDropTarget
* _arg0
;
3159 PyObject
* _argo0
= 0;
3160 char *_kwnames
[] = { "self", NULL
};
3163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3173 wxPy_BEGIN_ALLOW_THREADS
;
3174 wxTextDropTarget_base_OnLeave(_arg0
);
3176 wxPy_END_ALLOW_THREADS
;
3177 if (PyErr_Occurred()) return NULL
;
3178 } Py_INCREF(Py_None
);
3179 _resultobj
= Py_None
;
3183 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3184 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3185 PyObject
* _resultobj
;
3187 wxPyTextDropTarget
* _arg0
;
3190 PyObject
* _argo0
= 0;
3191 char *_kwnames
[] = { "self","x","y", NULL
};
3194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3204 wxPy_BEGIN_ALLOW_THREADS
;
3205 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3207 wxPy_END_ALLOW_THREADS
;
3208 if (PyErr_Occurred()) return NULL
;
3209 } _resultobj
= Py_BuildValue("i",_result
);
3213 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3214 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3215 PyObject
* _resultobj
;
3216 wxDragResult _result
;
3217 wxPyTextDropTarget
* _arg0
;
3221 PyObject
* _argo0
= 0;
3222 char *_kwnames
[] = { "self","x","y","def", NULL
};
3225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3235 wxPy_BEGIN_ALLOW_THREADS
;
3236 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3238 wxPy_END_ALLOW_THREADS
;
3239 if (PyErr_Occurred()) return NULL
;
3240 } _resultobj
= Py_BuildValue("i",_result
);
3244 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3245 wxPyFileDropTarget
*src
;
3246 wxPyDropTarget
*dest
;
3247 src
= (wxPyFileDropTarget
*) ptr
;
3248 dest
= (wxPyDropTarget
*) src
;
3249 return (void *) dest
;
3252 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3253 wxPyFileDropTarget
*src
;
3255 src
= (wxPyFileDropTarget
*) ptr
;
3256 dest
= (wxDropTarget
*) src
;
3257 return (void *) dest
;
3260 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3261 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3262 PyObject
* _resultobj
;
3263 wxPyFileDropTarget
* _result
;
3264 char *_kwnames
[] = { NULL
};
3268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3271 wxPy_BEGIN_ALLOW_THREADS
;
3272 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3274 wxPy_END_ALLOW_THREADS
;
3275 if (PyErr_Occurred()) return NULL
;
3277 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3278 _resultobj
= Py_BuildValue("s",_ptemp
);
3281 _resultobj
= Py_None
;
3286 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3287 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3288 PyObject
* _resultobj
;
3289 wxPyFileDropTarget
* _arg0
;
3292 PyObject
* _argo0
= 0;
3293 PyObject
* _obj1
= 0;
3294 PyObject
* _obj2
= 0;
3295 char *_kwnames
[] = { "self","self","_class", NULL
};
3298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3314 wxPy_BEGIN_ALLOW_THREADS
;
3315 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3317 wxPy_END_ALLOW_THREADS
;
3318 if (PyErr_Occurred()) return NULL
;
3319 } Py_INCREF(Py_None
);
3320 _resultobj
= Py_None
;
3324 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3325 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3326 PyObject
* _resultobj
;
3327 wxDragResult _result
;
3328 wxPyFileDropTarget
* _arg0
;
3332 PyObject
* _argo0
= 0;
3333 char *_kwnames
[] = { "self","x","y","def", NULL
};
3336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3346 wxPy_BEGIN_ALLOW_THREADS
;
3347 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3349 wxPy_END_ALLOW_THREADS
;
3350 if (PyErr_Occurred()) return NULL
;
3351 } _resultobj
= Py_BuildValue("i",_result
);
3355 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3356 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3357 PyObject
* _resultobj
;
3358 wxDragResult _result
;
3359 wxPyFileDropTarget
* _arg0
;
3363 PyObject
* _argo0
= 0;
3364 char *_kwnames
[] = { "self","x","y","def", NULL
};
3367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3377 wxPy_BEGIN_ALLOW_THREADS
;
3378 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3380 wxPy_END_ALLOW_THREADS
;
3381 if (PyErr_Occurred()) return NULL
;
3382 } _resultobj
= Py_BuildValue("i",_result
);
3386 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3387 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3388 PyObject
* _resultobj
;
3389 wxPyFileDropTarget
* _arg0
;
3390 PyObject
* _argo0
= 0;
3391 char *_kwnames
[] = { "self", NULL
};
3394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3404 wxPy_BEGIN_ALLOW_THREADS
;
3405 wxFileDropTarget_base_OnLeave(_arg0
);
3407 wxPy_END_ALLOW_THREADS
;
3408 if (PyErr_Occurred()) return NULL
;
3409 } Py_INCREF(Py_None
);
3410 _resultobj
= Py_None
;
3414 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3415 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3416 PyObject
* _resultobj
;
3418 wxPyFileDropTarget
* _arg0
;
3421 PyObject
* _argo0
= 0;
3422 char *_kwnames
[] = { "self","x","y", NULL
};
3425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3435 wxPy_BEGIN_ALLOW_THREADS
;
3436 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3438 wxPy_END_ALLOW_THREADS
;
3439 if (PyErr_Occurred()) return NULL
;
3440 } _resultobj
= Py_BuildValue("i",_result
);
3444 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3445 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3446 PyObject
* _resultobj
;
3447 wxDragResult _result
;
3448 wxPyFileDropTarget
* _arg0
;
3452 PyObject
* _argo0
= 0;
3453 char *_kwnames
[] = { "self","x","y","def", NULL
};
3456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3466 wxPy_BEGIN_ALLOW_THREADS
;
3467 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3469 wxPy_END_ALLOW_THREADS
;
3470 if (PyErr_Occurred()) return NULL
;
3471 } _resultobj
= Py_BuildValue("i",_result
);
3475 static PyMethodDef clip_dndcMethods
[] = {
3476 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3538 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3539 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3540 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3541 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3569 * This table is used by the pointer type-checker
3571 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3572 { "_signed_long","_long",0},
3573 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3574 { "_wxPrintQuality","_wxCoord",0},
3575 { "_wxPrintQuality","_int",0},
3576 { "_wxPrintQuality","_signed_int",0},
3577 { "_wxPrintQuality","_unsigned_int",0},
3578 { "_wxPrintQuality","_wxWindowID",0},
3579 { "_wxPrintQuality","_uint",0},
3580 { "_wxPrintQuality","_EBool",0},
3581 { "_wxPrintQuality","_size_t",0},
3582 { "_wxPrintQuality","_time_t",0},
3583 { "_byte","_unsigned_char",0},
3584 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3585 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3586 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3587 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3588 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3589 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3590 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3591 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3592 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3593 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3594 { "_long","_unsigned_long",0},
3595 { "_long","_signed_long",0},
3596 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3597 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3598 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3599 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3600 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3601 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3602 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3603 { "_size_t","_wxCoord",0},
3604 { "_size_t","_wxPrintQuality",0},
3605 { "_size_t","_time_t",0},
3606 { "_size_t","_unsigned_int",0},
3607 { "_size_t","_int",0},
3608 { "_size_t","_wxWindowID",0},
3609 { "_size_t","_uint",0},
3610 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3611 { "_uint","_wxCoord",0},
3612 { "_uint","_wxPrintQuality",0},
3613 { "_uint","_time_t",0},
3614 { "_uint","_size_t",0},
3615 { "_uint","_unsigned_int",0},
3616 { "_uint","_int",0},
3617 { "_uint","_wxWindowID",0},
3618 { "_wxChar","_char",0},
3619 { "_char","_wxChar",0},
3620 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3621 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3622 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3623 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3624 { "_EBool","_wxCoord",0},
3625 { "_EBool","_wxPrintQuality",0},
3626 { "_EBool","_signed_int",0},
3627 { "_EBool","_int",0},
3628 { "_EBool","_wxWindowID",0},
3629 { "_unsigned_long","_long",0},
3630 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3631 { "_signed_int","_wxCoord",0},
3632 { "_signed_int","_wxPrintQuality",0},
3633 { "_signed_int","_EBool",0},
3634 { "_signed_int","_wxWindowID",0},
3635 { "_signed_int","_int",0},
3636 { "_WXTYPE","_short",0},
3637 { "_WXTYPE","_signed_short",0},
3638 { "_WXTYPE","_unsigned_short",0},
3639 { "_unsigned_short","_WXTYPE",0},
3640 { "_unsigned_short","_short",0},
3641 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3642 { "_signed_short","_WXTYPE",0},
3643 { "_signed_short","_short",0},
3644 { "_unsigned_char","_byte",0},
3645 { "_unsigned_int","_wxCoord",0},
3646 { "_unsigned_int","_wxPrintQuality",0},
3647 { "_unsigned_int","_time_t",0},
3648 { "_unsigned_int","_size_t",0},
3649 { "_unsigned_int","_uint",0},
3650 { "_unsigned_int","_wxWindowID",0},
3651 { "_unsigned_int","_int",0},
3652 { "_short","_WXTYPE",0},
3653 { "_short","_unsigned_short",0},
3654 { "_short","_signed_short",0},
3655 { "_wxWindowID","_wxCoord",0},
3656 { "_wxWindowID","_wxPrintQuality",0},
3657 { "_wxWindowID","_time_t",0},
3658 { "_wxWindowID","_size_t",0},
3659 { "_wxWindowID","_EBool",0},
3660 { "_wxWindowID","_uint",0},
3661 { "_wxWindowID","_int",0},
3662 { "_wxWindowID","_signed_int",0},
3663 { "_wxWindowID","_unsigned_int",0},
3664 { "_int","_wxCoord",0},
3665 { "_int","_wxPrintQuality",0},
3666 { "_int","_time_t",0},
3667 { "_int","_size_t",0},
3668 { "_int","_EBool",0},
3669 { "_int","_uint",0},
3670 { "_int","_wxWindowID",0},
3671 { "_int","_unsigned_int",0},
3672 { "_int","_signed_int",0},
3673 { "_time_t","_wxCoord",0},
3674 { "_time_t","_wxPrintQuality",0},
3675 { "_time_t","_unsigned_int",0},
3676 { "_time_t","_int",0},
3677 { "_time_t","_wxWindowID",0},
3678 { "_time_t","_uint",0},
3679 { "_time_t","_size_t",0},
3680 { "_wxCoord","_int",0},
3681 { "_wxCoord","_signed_int",0},
3682 { "_wxCoord","_unsigned_int",0},
3683 { "_wxCoord","_wxWindowID",0},
3684 { "_wxCoord","_uint",0},
3685 { "_wxCoord","_EBool",0},
3686 { "_wxCoord","_size_t",0},
3687 { "_wxCoord","_time_t",0},
3688 { "_wxCoord","_wxPrintQuality",0},
3689 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3690 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3691 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3694 static PyObject
*SWIG_globals
;
3698 SWIGEXPORT(void) initclip_dndc() {
3700 SWIG_globals
= SWIG_newvarlink();
3701 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3702 d
= PyModule_GetDict(m
);
3703 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3704 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3705 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3706 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3707 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3708 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3709 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3710 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3711 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3712 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3713 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3714 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3715 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3716 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3717 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3718 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3719 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3720 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3721 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3722 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3723 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3724 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3725 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3726 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3727 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3728 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3729 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3730 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3733 wxPyTheClipboard
= wxTheClipboard
;
3734 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3735 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3736 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3737 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3738 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3739 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3742 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3743 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);