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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initclip_dndc
54 #define SWIG_name "clip_dndc"
57 #include <wx/dataobj.h>
58 #include <wx/clipbrd.h>
61 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
65 } else if (target
== Py_None
) {
69 if (!PyList_Check(target
)) {
71 target
= PyList_New(0);
72 PyList_Append(target
, o2
);
75 PyList_Append(target
,o
);
81 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
87 } else if (target
== Py_None
) {
91 if (!PyTuple_Check(target
)) {
93 target
= PyTuple_New(1);
94 PyTuple_SetItem(target
, 0, o2
);
97 PyTuple_SetItem(o3
, 0, o
);
100 target
= PySequence_Concat(o2
, o3
);
107 #if PYTHON_API_VERSION >= 1009
108 static char* wxStringErrorMsg
= "String or Unicode type required";
110 static char* wxStringErrorMsg
= "String type required";
112 // An alternate constructor...
113 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
114 return new wxDataFormat(id
);
117 wxDataFormat wxPyFormatInvalid
;
118 // Create a new class for wxPython to use
119 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
121 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
122 : wxDataObjectSimple(format
) {}
124 DEC_PYCALLBACK_SIZET_(GetDataSize
);
125 bool GetDataHere(void *buf
);
126 bool SetData(size_t len
, const void *buf
);
130 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
132 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
133 // We need to get the data for this object and write it to buf. I think
134 // the best way to do this for wxPython is to have the Python method
135 // return either a string or None and then act appropriately with the
139 wxPyTState
* state
= wxPyBeginBlockThreads();
140 if (m_myInst
.findCallback("GetDataHere")) {
142 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
144 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
146 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
150 wxPyEndBlockThreads(state
);
154 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
155 // For this one we simply need to make a string from buf and len
156 // and send it to the Python method.
158 wxPyTState
* state
= wxPyBeginBlockThreads();
159 if (m_myInst
.findCallback("SetData")) {
160 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
161 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
164 wxPyEndBlockThreads(state
);
167 // Create a new class for wxPython to use
168 class wxPyTextDataObject
: public wxTextDataObject
{
170 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
171 : wxTextDataObject(text
) {}
173 DEC_PYCALLBACK_SIZET_(GetTextLength
);
174 DEC_PYCALLBACK_STRING_(GetText
);
175 DEC_PYCALLBACK__STRING(SetText
);
179 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
180 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
181 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
183 // Create a new class for wxPython to use
184 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
186 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
187 : wxBitmapDataObject(bitmap
) {}
189 wxBitmap
GetBitmap();
190 void SetBitmap(const wxBitmap
& bitmap
);
194 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
195 wxBitmap
* rval
= &wxNullBitmap
;
196 wxPyTState
* state
= wxPyBeginBlockThreads();
197 if (m_myInst
.findCallback("GetBitmap")) {
200 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
202 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
207 wxPyEndBlockThreads(state
);
211 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
212 wxPyTState
* state
= wxPyBeginBlockThreads();
213 if (m_myInst
.findCallback("SetBitmap")) {
214 m_myInst
.callCallback(Py_BuildValue("(O)",
215 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
217 wxPyEndBlockThreads(state
);
220 // See below in the init function...
221 wxClipboard
* wxPyTheClipboard
;
223 class wxPyDropSource
: public wxDropSource
{
226 wxPyDropSource(wxWindow
*win
= NULL
,
227 const wxCursor
&cursorCopy
= wxNullCursor
,
228 const wxCursor
&cursorMove
= wxNullCursor
,
229 const wxCursor
&cursorStop
= wxNullCursor
)
230 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
232 wxPyDropSource(wxWindow
*win
= NULL
,
233 const wxIcon
&go
= wxNullIcon
)
234 : wxDropSource(win
, go
) {}
236 ~wxPyDropSource() { }
238 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
242 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
245 class wxPyDropTarget
: public wxDropTarget
{
247 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
248 : wxDropTarget(dataObject
) {}
250 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
251 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
253 DEC_PYCALLBACK__(OnLeave
);
254 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
255 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
256 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
257 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
262 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
263 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
265 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
266 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
267 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
268 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
269 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
272 class wxPyTextDropTarget
: public wxTextDropTarget
{
274 wxPyTextDropTarget() {}
276 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
278 DEC_PYCALLBACK__(OnLeave
);
279 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
280 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
281 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
282 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
287 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
288 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
289 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
290 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
291 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
292 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
295 class wxPyFileDropTarget
: public wxFileDropTarget
{
297 wxPyFileDropTarget() {}
299 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
301 DEC_PYCALLBACK__(OnLeave
);
302 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
303 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
304 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
305 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
310 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
311 const wxArrayString
& filenames
) {
313 wxPyTState
* state
= wxPyBeginBlockThreads();
314 PyObject
* list
= PyList_New(0);
315 for (size_t i
=0; i
<filenames
.GetCount(); i
++) {
316 PyObject
* str
= PyString_FromString(filenames
[i
].c_str());
317 PyList_Append(list
, str
);
319 if (m_myInst
.findCallback("OnDropFiles"))
320 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
322 wxPyEndBlockThreads(state
);
328 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
329 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
330 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
331 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
332 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
337 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
338 PyObject
* _resultobj
;
339 wxDataFormat
* _result
;
341 PyObject
* _obj0
= 0;
342 char *_kwnames
[] = { "id", NULL
};
346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
349 #if PYTHON_API_VERSION >= 1009
350 char* tmpPtr
; int tmpSize
;
351 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
355 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
357 _arg0
= new wxString(tmpPtr
, tmpSize
);
359 if (!PyString_Check(_obj0
)) {
360 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
363 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
367 wxPy_BEGIN_ALLOW_THREADS
;
368 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
370 wxPy_END_ALLOW_THREADS
;
371 if (PyErr_Occurred()) return NULL
;
373 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
374 _resultobj
= Py_BuildValue("s",_ptemp
);
377 _resultobj
= Py_None
;
386 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
388 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
392 static PyObject
*_wrap_wxPyFormatInvalid_get() {
396 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
397 pyobj
= PyString_FromString(ptemp
);
401 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
403 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
407 static PyObject
*_wrap_wxPyTheClipboard_get() {
411 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
412 pyobj
= PyString_FromString(ptemp
);
416 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
417 PyObject
* _resultobj
;
420 char *_kwnames
[] = { "res", NULL
};
423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
426 wxPy_BEGIN_ALLOW_THREADS
;
427 _result
= (bool )wxIsDragResultOk(_arg0
);
429 wxPy_END_ALLOW_THREADS
;
430 if (PyErr_Occurred()) return NULL
;
431 } _resultobj
= Py_BuildValue("i",_result
);
435 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
436 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
437 PyObject
* _resultobj
;
438 wxDataFormat
* _result
;
439 wxDataFormatId _arg0
;
440 char *_kwnames
[] = { "type", NULL
};
444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
447 wxPy_BEGIN_ALLOW_THREADS
;
448 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
450 wxPy_END_ALLOW_THREADS
;
451 if (PyErr_Occurred()) return NULL
;
453 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
454 _resultobj
= Py_BuildValue("s",_ptemp
);
457 _resultobj
= Py_None
;
462 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
463 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
464 PyObject
* _resultobj
;
465 wxDataFormat
* _arg0
;
466 PyObject
* _argo0
= 0;
467 char *_kwnames
[] = { "self", NULL
};
470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
480 wxPy_BEGIN_ALLOW_THREADS
;
481 delete_wxDataFormat(_arg0
);
483 wxPy_END_ALLOW_THREADS
;
484 if (PyErr_Occurred()) return NULL
;
485 } Py_INCREF(Py_None
);
486 _resultobj
= Py_None
;
490 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
491 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
492 PyObject
* _resultobj
;
493 wxDataFormat
* _arg0
;
494 wxDataFormatId _arg1
;
495 PyObject
* _argo0
= 0;
496 char *_kwnames
[] = { "self","format", NULL
};
499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
509 wxPy_BEGIN_ALLOW_THREADS
;
510 wxDataFormat_SetType(_arg0
,_arg1
);
512 wxPy_END_ALLOW_THREADS
;
513 if (PyErr_Occurred()) return NULL
;
514 } Py_INCREF(Py_None
);
515 _resultobj
= Py_None
;
519 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
520 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
521 PyObject
* _resultobj
;
522 wxDataFormatId _result
;
523 wxDataFormat
* _arg0
;
524 PyObject
* _argo0
= 0;
525 char *_kwnames
[] = { "self", NULL
};
528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
538 wxPy_BEGIN_ALLOW_THREADS
;
539 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
541 wxPy_END_ALLOW_THREADS
;
542 if (PyErr_Occurred()) return NULL
;
543 } _resultobj
= Py_BuildValue("i",_result
);
547 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
548 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
549 PyObject
* _resultobj
;
551 wxDataFormat
* _arg0
;
552 PyObject
* _argo0
= 0;
553 char *_kwnames
[] = { "self", NULL
};
556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
566 wxPy_BEGIN_ALLOW_THREADS
;
567 _result
= new wxString (wxDataFormat_GetId(_arg0
));
569 wxPy_END_ALLOW_THREADS
;
570 if (PyErr_Occurred()) return NULL
;
572 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
580 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
581 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
582 PyObject
* _resultobj
;
583 wxDataFormat
* _arg0
;
585 PyObject
* _argo0
= 0;
586 char *_kwnames
[] = { "self","format", NULL
};
589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
599 wxPy_BEGIN_ALLOW_THREADS
;
600 wxDataFormat_SetId(_arg0
,_arg1
);
602 wxPy_END_ALLOW_THREADS
;
603 if (PyErr_Occurred()) return NULL
;
604 } Py_INCREF(Py_None
);
605 _resultobj
= Py_None
;
609 #define delete_wxDataObject(_swigobj) (delete _swigobj)
610 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
611 PyObject
* _resultobj
;
612 wxDataObject
* _arg0
;
613 PyObject
* _argo0
= 0;
614 char *_kwnames
[] = { "self", NULL
};
617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
627 wxPy_BEGIN_ALLOW_THREADS
;
628 delete_wxDataObject(_arg0
);
630 wxPy_END_ALLOW_THREADS
;
631 if (PyErr_Occurred()) return NULL
;
632 } Py_INCREF(Py_None
);
633 _resultobj
= Py_None
;
637 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
638 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
639 PyObject
* _resultobj
;
640 wxDataFormat
* _result
;
641 wxDataObject
* _arg0
;
642 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
643 PyObject
* _argo0
= 0;
644 char *_kwnames
[] = { "self","dir", NULL
};
648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
658 wxPy_BEGIN_ALLOW_THREADS
;
659 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
661 wxPy_END_ALLOW_THREADS
;
662 if (PyErr_Occurred()) return NULL
;
663 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
664 _resultobj
= Py_BuildValue("s",_ptemp
);
668 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
669 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
670 PyObject
* _resultobj
;
672 wxDataObject
* _arg0
;
673 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
674 PyObject
* _argo0
= 0;
675 char *_kwnames
[] = { "self","dir", NULL
};
678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
688 wxPy_BEGIN_ALLOW_THREADS
;
689 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
691 wxPy_END_ALLOW_THREADS
;
692 if (PyErr_Occurred()) return NULL
;
693 } _resultobj
= Py_BuildValue("i",_result
);
697 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
698 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
699 PyObject
* _resultobj
;
700 wxDataObject
* _arg0
;
701 wxDataFormat
* _arg1
;
702 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
703 PyObject
* _argo0
= 0;
704 PyObject
* _argo1
= 0;
705 char *_kwnames
[] = { "self","formats","dir", NULL
};
708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
718 if (_argo1
== Py_None
) { _arg1
= NULL
; }
719 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
725 wxPy_BEGIN_ALLOW_THREADS
;
726 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
728 wxPy_END_ALLOW_THREADS
;
729 if (PyErr_Occurred()) return NULL
;
730 } Py_INCREF(Py_None
);
731 _resultobj
= Py_None
;
735 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
736 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
737 PyObject
* _resultobj
;
739 wxDataObject
* _arg0
;
740 wxDataFormat
* _arg1
;
741 PyObject
* _argo0
= 0;
742 PyObject
* _argo1
= 0;
743 char *_kwnames
[] = { "self","format", NULL
};
746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
756 if (_argo1
== Py_None
) { _arg1
= NULL
; }
757 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
763 wxPy_BEGIN_ALLOW_THREADS
;
764 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
766 wxPy_END_ALLOW_THREADS
;
767 if (PyErr_Occurred()) return NULL
;
768 } _resultobj
= Py_BuildValue("i",_result
);
772 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
773 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
774 PyObject
* _resultobj
;
776 wxDataObject
* _arg0
;
777 wxDataFormat
* _arg1
;
779 PyObject
* _argo0
= 0;
780 PyObject
* _argo1
= 0;
781 PyObject
* _argo2
= 0;
782 char *_kwnames
[] = { "self","format","buf", NULL
};
785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
795 if (_argo1
== Py_None
) { _arg1
= NULL
; }
796 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
802 if (_argo2
== Py_None
) { _arg2
= NULL
; }
803 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
809 wxPy_BEGIN_ALLOW_THREADS
;
810 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
812 wxPy_END_ALLOW_THREADS
;
813 if (PyErr_Occurred()) return NULL
;
814 } _resultobj
= Py_BuildValue("i",_result
);
818 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
819 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
820 PyObject
* _resultobj
;
822 wxDataObject
* _arg0
;
823 wxDataFormat
* _arg1
;
826 PyObject
* _argo0
= 0;
827 PyObject
* _argo1
= 0;
828 PyObject
* _argo3
= 0;
829 char *_kwnames
[] = { "self","format","len","buf", NULL
};
832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
842 if (_argo1
== Py_None
) { _arg1
= NULL
; }
843 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
849 if (_argo3
== Py_None
) { _arg3
= NULL
; }
850 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
856 wxPy_BEGIN_ALLOW_THREADS
;
857 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
859 wxPy_END_ALLOW_THREADS
;
860 if (PyErr_Occurred()) return NULL
;
861 } _resultobj
= Py_BuildValue("i",_result
);
865 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
866 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
867 PyObject
* _resultobj
;
869 wxDataObject
* _arg0
;
870 wxDataFormat
* _arg1
;
871 PyObject
* _argo0
= 0;
872 PyObject
* _argo1
= 0;
873 char *_kwnames
[] = { "self","format", NULL
};
876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
886 if (_argo1
== Py_None
) { _arg1
= NULL
; }
887 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
893 wxPy_BEGIN_ALLOW_THREADS
;
894 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
896 wxPy_END_ALLOW_THREADS
;
897 if (PyErr_Occurred()) return NULL
;
898 } _resultobj
= Py_BuildValue("i",_result
);
902 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
903 wxDataObjectSimple
*src
;
905 src
= (wxDataObjectSimple
*) ptr
;
906 dest
= (wxDataObject
*) src
;
907 return (void *) dest
;
910 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
911 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
912 PyObject
* _resultobj
;
913 wxDataObjectSimple
* _result
;
914 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
915 PyObject
* _argo0
= 0;
916 char *_kwnames
[] = { "format", NULL
};
920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
930 wxPy_BEGIN_ALLOW_THREADS
;
931 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
933 wxPy_END_ALLOW_THREADS
;
934 if (PyErr_Occurred()) return NULL
;
936 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
937 _resultobj
= Py_BuildValue("s",_ptemp
);
940 _resultobj
= Py_None
;
945 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
946 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
947 PyObject
* _resultobj
;
948 wxDataFormat
* _result
;
949 wxDataObjectSimple
* _arg0
;
950 PyObject
* _argo0
= 0;
951 char *_kwnames
[] = { "self", NULL
};
955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
965 wxPy_BEGIN_ALLOW_THREADS
;
966 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
967 _result
= (wxDataFormat
*) &_result_ref
;
969 wxPy_END_ALLOW_THREADS
;
970 if (PyErr_Occurred()) return NULL
;
972 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
973 _resultobj
= Py_BuildValue("s",_ptemp
);
976 _resultobj
= Py_None
;
981 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
982 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
983 PyObject
* _resultobj
;
984 wxDataObjectSimple
* _arg0
;
985 wxDataFormat
* _arg1
;
986 PyObject
* _argo0
= 0;
987 PyObject
* _argo1
= 0;
988 char *_kwnames
[] = { "self","format", NULL
};
991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
1001 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1002 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
1003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
1008 wxPy_BEGIN_ALLOW_THREADS
;
1009 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
1011 wxPy_END_ALLOW_THREADS
;
1012 if (PyErr_Occurred()) return NULL
;
1013 } Py_INCREF(Py_None
);
1014 _resultobj
= Py_None
;
1018 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
1019 wxPyDataObjectSimple
*src
;
1020 wxDataObjectSimple
*dest
;
1021 src
= (wxPyDataObjectSimple
*) ptr
;
1022 dest
= (wxDataObjectSimple
*) src
;
1023 return (void *) dest
;
1026 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1027 wxPyDataObjectSimple
*src
;
1029 src
= (wxPyDataObjectSimple
*) ptr
;
1030 dest
= (wxDataObject
*) src
;
1031 return (void *) dest
;
1034 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1035 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1036 PyObject
* _resultobj
;
1037 wxPyDataObjectSimple
* _result
;
1038 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1039 PyObject
* _argo0
= 0;
1040 char *_kwnames
[] = { "format", NULL
};
1044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1054 wxPy_BEGIN_ALLOW_THREADS
;
1055 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1057 wxPy_END_ALLOW_THREADS
;
1058 if (PyErr_Occurred()) return NULL
;
1060 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1061 _resultobj
= Py_BuildValue("s",_ptemp
);
1064 _resultobj
= Py_None
;
1069 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1070 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1071 PyObject
* _resultobj
;
1072 wxPyDataObjectSimple
* _arg0
;
1075 PyObject
* _argo0
= 0;
1076 PyObject
* _obj1
= 0;
1077 PyObject
* _obj2
= 0;
1078 char *_kwnames
[] = { "self","self","_class", NULL
};
1081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1097 wxPy_BEGIN_ALLOW_THREADS
;
1098 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1100 wxPy_END_ALLOW_THREADS
;
1101 if (PyErr_Occurred()) return NULL
;
1102 } Py_INCREF(Py_None
);
1103 _resultobj
= Py_None
;
1107 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1108 wxDataObjectComposite
*src
;
1110 src
= (wxDataObjectComposite
*) ptr
;
1111 dest
= (wxDataObject
*) src
;
1112 return (void *) dest
;
1115 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1116 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1117 PyObject
* _resultobj
;
1118 wxDataObjectComposite
* _result
;
1119 char *_kwnames
[] = { NULL
};
1123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1126 wxPy_BEGIN_ALLOW_THREADS
;
1127 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1129 wxPy_END_ALLOW_THREADS
;
1130 if (PyErr_Occurred()) return NULL
;
1132 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1133 _resultobj
= Py_BuildValue("s",_ptemp
);
1136 _resultobj
= Py_None
;
1141 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1142 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1143 PyObject
* _resultobj
;
1144 wxDataObjectComposite
* _arg0
;
1145 wxDataObjectSimple
* _arg1
;
1146 int _arg2
= (int ) FALSE
;
1147 PyObject
* _argo0
= 0;
1148 PyObject
* _argo1
= 0;
1149 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1162 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1169 wxPy_BEGIN_ALLOW_THREADS
;
1170 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1172 wxPy_END_ALLOW_THREADS
;
1173 if (PyErr_Occurred()) return NULL
;
1174 } Py_INCREF(Py_None
);
1175 _resultobj
= Py_None
;
1179 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1180 wxTextDataObject
*src
;
1181 wxDataObjectSimple
*dest
;
1182 src
= (wxTextDataObject
*) ptr
;
1183 dest
= (wxDataObjectSimple
*) src
;
1184 return (void *) dest
;
1187 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1188 wxTextDataObject
*src
;
1190 src
= (wxTextDataObject
*) ptr
;
1191 dest
= (wxDataObject
*) src
;
1192 return (void *) dest
;
1195 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1196 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1197 PyObject
* _resultobj
;
1198 wxTextDataObject
* _result
;
1199 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1200 PyObject
* _obj0
= 0;
1201 char *_kwnames
[] = { "text", NULL
};
1205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1209 #if PYTHON_API_VERSION >= 1009
1210 char* tmpPtr
; int tmpSize
;
1211 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1212 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1215 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1217 _arg0
= new wxString(tmpPtr
, tmpSize
);
1219 if (!PyString_Check(_obj0
)) {
1220 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1223 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1227 wxPy_BEGIN_ALLOW_THREADS
;
1228 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1230 wxPy_END_ALLOW_THREADS
;
1231 if (PyErr_Occurred()) return NULL
;
1233 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1234 _resultobj
= Py_BuildValue("s",_ptemp
);
1237 _resultobj
= Py_None
;
1246 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1247 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1248 PyObject
* _resultobj
;
1250 wxTextDataObject
* _arg0
;
1251 PyObject
* _argo0
= 0;
1252 char *_kwnames
[] = { "self", NULL
};
1255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1265 wxPy_BEGIN_ALLOW_THREADS
;
1266 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1268 wxPy_END_ALLOW_THREADS
;
1269 if (PyErr_Occurred()) return NULL
;
1270 } _resultobj
= Py_BuildValue("i",_result
);
1274 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1275 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1276 PyObject
* _resultobj
;
1278 wxTextDataObject
* _arg0
;
1279 PyObject
* _argo0
= 0;
1280 char *_kwnames
[] = { "self", NULL
};
1283 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1286 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1287 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1293 wxPy_BEGIN_ALLOW_THREADS
;
1294 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1296 wxPy_END_ALLOW_THREADS
;
1297 if (PyErr_Occurred()) return NULL
;
1299 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1307 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1308 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1309 PyObject
* _resultobj
;
1310 wxTextDataObject
* _arg0
;
1312 PyObject
* _argo0
= 0;
1313 PyObject
* _obj1
= 0;
1314 char *_kwnames
[] = { "self","text", NULL
};
1317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1327 #if PYTHON_API_VERSION >= 1009
1328 char* tmpPtr
; int tmpSize
;
1329 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1330 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1333 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1335 _arg1
= new wxString(tmpPtr
, tmpSize
);
1337 if (!PyString_Check(_obj1
)) {
1338 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1341 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1345 wxPy_BEGIN_ALLOW_THREADS
;
1346 wxTextDataObject_SetText(_arg0
,*_arg1
);
1348 wxPy_END_ALLOW_THREADS
;
1349 if (PyErr_Occurred()) return NULL
;
1350 } Py_INCREF(Py_None
);
1351 _resultobj
= Py_None
;
1359 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1360 wxPyTextDataObject
*src
;
1361 wxTextDataObject
*dest
;
1362 src
= (wxPyTextDataObject
*) ptr
;
1363 dest
= (wxTextDataObject
*) src
;
1364 return (void *) dest
;
1367 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1368 wxPyTextDataObject
*src
;
1369 wxDataObjectSimple
*dest
;
1370 src
= (wxPyTextDataObject
*) ptr
;
1371 dest
= (wxDataObjectSimple
*) src
;
1372 return (void *) dest
;
1375 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1376 wxPyTextDataObject
*src
;
1378 src
= (wxPyTextDataObject
*) ptr
;
1379 dest
= (wxDataObject
*) src
;
1380 return (void *) dest
;
1383 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1384 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1386 wxPyTextDataObject
* _result
;
1387 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1388 PyObject
* _obj0
= 0;
1389 char *_kwnames
[] = { "text", NULL
};
1393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1397 #if PYTHON_API_VERSION >= 1009
1398 char* tmpPtr
; int tmpSize
;
1399 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1400 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1403 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1405 _arg0
= new wxString(tmpPtr
, tmpSize
);
1407 if (!PyString_Check(_obj0
)) {
1408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1411 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1415 wxPy_BEGIN_ALLOW_THREADS
;
1416 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1418 wxPy_END_ALLOW_THREADS
;
1419 if (PyErr_Occurred()) return NULL
;
1421 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1422 _resultobj
= Py_BuildValue("s",_ptemp
);
1425 _resultobj
= Py_None
;
1434 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1435 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1436 PyObject
* _resultobj
;
1437 wxPyTextDataObject
* _arg0
;
1440 PyObject
* _argo0
= 0;
1441 PyObject
* _obj1
= 0;
1442 PyObject
* _obj2
= 0;
1443 char *_kwnames
[] = { "self","self","_class", NULL
};
1446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1462 wxPy_BEGIN_ALLOW_THREADS
;
1463 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1465 wxPy_END_ALLOW_THREADS
;
1466 if (PyErr_Occurred()) return NULL
;
1467 } Py_INCREF(Py_None
);
1468 _resultobj
= Py_None
;
1472 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1473 wxBitmapDataObject
*src
;
1474 wxDataObjectSimple
*dest
;
1475 src
= (wxBitmapDataObject
*) ptr
;
1476 dest
= (wxDataObjectSimple
*) src
;
1477 return (void *) dest
;
1480 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1481 wxBitmapDataObject
*src
;
1483 src
= (wxBitmapDataObject
*) ptr
;
1484 dest
= (wxDataObject
*) src
;
1485 return (void *) dest
;
1488 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1489 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1490 PyObject
* _resultobj
;
1491 wxBitmapDataObject
* _result
;
1492 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1493 PyObject
* _argo0
= 0;
1494 char *_kwnames
[] = { "bitmap", NULL
};
1498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1508 wxPy_BEGIN_ALLOW_THREADS
;
1509 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1511 wxPy_END_ALLOW_THREADS
;
1512 if (PyErr_Occurred()) return NULL
;
1514 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1515 _resultobj
= Py_BuildValue("s",_ptemp
);
1518 _resultobj
= Py_None
;
1523 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1524 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1525 PyObject
* _resultobj
;
1527 wxBitmapDataObject
* _arg0
;
1528 PyObject
* _argo0
= 0;
1529 char *_kwnames
[] = { "self", NULL
};
1533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1543 wxPy_BEGIN_ALLOW_THREADS
;
1544 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1546 wxPy_END_ALLOW_THREADS
;
1547 if (PyErr_Occurred()) return NULL
;
1548 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1549 _resultobj
= Py_BuildValue("s",_ptemp
);
1553 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1554 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1555 PyObject
* _resultobj
;
1556 wxBitmapDataObject
* _arg0
;
1558 PyObject
* _argo0
= 0;
1559 PyObject
* _argo1
= 0;
1560 char *_kwnames
[] = { "self","bitmap", NULL
};
1563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1573 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1574 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1580 wxPy_BEGIN_ALLOW_THREADS
;
1581 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1583 wxPy_END_ALLOW_THREADS
;
1584 if (PyErr_Occurred()) return NULL
;
1585 } Py_INCREF(Py_None
);
1586 _resultobj
= Py_None
;
1590 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1591 wxPyBitmapDataObject
*src
;
1592 wxBitmapDataObject
*dest
;
1593 src
= (wxPyBitmapDataObject
*) ptr
;
1594 dest
= (wxBitmapDataObject
*) src
;
1595 return (void *) dest
;
1598 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1599 wxPyBitmapDataObject
*src
;
1600 wxDataObjectSimple
*dest
;
1601 src
= (wxPyBitmapDataObject
*) ptr
;
1602 dest
= (wxDataObjectSimple
*) src
;
1603 return (void *) dest
;
1606 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1607 wxPyBitmapDataObject
*src
;
1609 src
= (wxPyBitmapDataObject
*) ptr
;
1610 dest
= (wxDataObject
*) src
;
1611 return (void *) dest
;
1614 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1615 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1616 PyObject
* _resultobj
;
1617 wxPyBitmapDataObject
* _result
;
1618 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1619 PyObject
* _argo0
= 0;
1620 char *_kwnames
[] = { "bitmap", NULL
};
1624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1634 wxPy_BEGIN_ALLOW_THREADS
;
1635 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1637 wxPy_END_ALLOW_THREADS
;
1638 if (PyErr_Occurred()) return NULL
;
1640 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1641 _resultobj
= Py_BuildValue("s",_ptemp
);
1644 _resultobj
= Py_None
;
1649 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1650 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1651 PyObject
* _resultobj
;
1652 wxPyBitmapDataObject
* _arg0
;
1655 PyObject
* _argo0
= 0;
1656 PyObject
* _obj1
= 0;
1657 PyObject
* _obj2
= 0;
1658 char *_kwnames
[] = { "self","self","_class", NULL
};
1661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1677 wxPy_BEGIN_ALLOW_THREADS
;
1678 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1680 wxPy_END_ALLOW_THREADS
;
1681 if (PyErr_Occurred()) return NULL
;
1682 } Py_INCREF(Py_None
);
1683 _resultobj
= Py_None
;
1687 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1688 wxFileDataObject
*src
;
1689 wxDataObjectSimple
*dest
;
1690 src
= (wxFileDataObject
*) ptr
;
1691 dest
= (wxDataObjectSimple
*) src
;
1692 return (void *) dest
;
1695 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1696 wxFileDataObject
*src
;
1698 src
= (wxFileDataObject
*) ptr
;
1699 dest
= (wxDataObject
*) src
;
1700 return (void *) dest
;
1703 #define new_wxFileDataObject() (new wxFileDataObject())
1704 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1705 PyObject
* _resultobj
;
1706 wxFileDataObject
* _result
;
1707 char *_kwnames
[] = { NULL
};
1711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1714 wxPy_BEGIN_ALLOW_THREADS
;
1715 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1717 wxPy_END_ALLOW_THREADS
;
1718 if (PyErr_Occurred()) return NULL
;
1720 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1721 _resultobj
= Py_BuildValue("s",_ptemp
);
1724 _resultobj
= Py_None
;
1729 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1730 const wxArrayString
& strings
= self
->GetFilenames();
1731 PyObject
* list
= PyList_New(0);
1732 for (size_t x
=0; x
<strings
.GetCount(); x
++)
1733 PyList_Append(list
, PyString_FromString(strings
[x
]));
1736 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1737 PyObject
* _resultobj
;
1739 wxFileDataObject
* _arg0
;
1740 PyObject
* _argo0
= 0;
1741 char *_kwnames
[] = { "self", NULL
};
1744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1754 wxPy_BEGIN_ALLOW_THREADS
;
1755 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1757 wxPy_END_ALLOW_THREADS
;
1758 if (PyErr_Occurred()) return NULL
;
1760 _resultobj
= _result
;
1765 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1766 wxCustomDataObject
*src
;
1767 wxDataObjectSimple
*dest
;
1768 src
= (wxCustomDataObject
*) ptr
;
1769 dest
= (wxDataObjectSimple
*) src
;
1770 return (void *) dest
;
1773 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1774 wxCustomDataObject
*src
;
1776 src
= (wxCustomDataObject
*) ptr
;
1777 dest
= (wxDataObject
*) src
;
1778 return (void *) dest
;
1781 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1782 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1783 PyObject
* _resultobj
;
1784 wxCustomDataObject
* _result
;
1785 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1786 PyObject
* _argo0
= 0;
1787 char *_kwnames
[] = { "format", NULL
};
1791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1801 wxPy_BEGIN_ALLOW_THREADS
;
1802 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1804 wxPy_END_ALLOW_THREADS
;
1805 if (PyErr_Occurred()) return NULL
;
1807 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1808 _resultobj
= Py_BuildValue("s",_ptemp
);
1811 _resultobj
= Py_None
;
1816 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1817 if (PyString_Check(data
)) {
1818 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1821 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
* _resultobj
;
1823 wxCustomDataObject
* _arg0
;
1825 PyObject
* _argo0
= 0;
1826 PyObject
* _obj1
= 0;
1827 char *_kwnames
[] = { "self","data", NULL
};
1830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1843 wxPy_BEGIN_ALLOW_THREADS
;
1844 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1846 wxPy_END_ALLOW_THREADS
;
1847 if (PyErr_Occurred()) return NULL
;
1848 } Py_INCREF(Py_None
);
1849 _resultobj
= Py_None
;
1853 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1854 if (PyString_Check(data
)) {
1855 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1859 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1860 PyObject
* _resultobj
;
1862 wxCustomDataObject
* _arg0
;
1864 PyObject
* _argo0
= 0;
1865 PyObject
* _obj1
= 0;
1866 char *_kwnames
[] = { "self","data", NULL
};
1869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1882 wxPy_BEGIN_ALLOW_THREADS
;
1883 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1885 wxPy_END_ALLOW_THREADS
;
1886 if (PyErr_Occurred()) return NULL
;
1887 } _resultobj
= Py_BuildValue("i",_result
);
1891 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1892 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1893 PyObject
* _resultobj
;
1895 wxCustomDataObject
* _arg0
;
1896 PyObject
* _argo0
= 0;
1897 char *_kwnames
[] = { "self", NULL
};
1900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1910 wxPy_BEGIN_ALLOW_THREADS
;
1911 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1913 wxPy_END_ALLOW_THREADS
;
1914 if (PyErr_Occurred()) return NULL
;
1915 } _resultobj
= Py_BuildValue("i",_result
);
1919 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1920 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1922 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1923 PyObject
* _resultobj
;
1925 wxCustomDataObject
* _arg0
;
1926 PyObject
* _argo0
= 0;
1927 char *_kwnames
[] = { "self", NULL
};
1930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1940 wxPy_BEGIN_ALLOW_THREADS
;
1941 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1943 wxPy_END_ALLOW_THREADS
;
1944 if (PyErr_Occurred()) return NULL
;
1946 _resultobj
= _result
;
1951 static void *SwigwxClipboardTowxObject(void *ptr
) {
1954 src
= (wxClipboard
*) ptr
;
1955 dest
= (wxObject
*) src
;
1956 return (void *) dest
;
1959 #define new_wxClipboard() (new wxClipboard())
1960 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
* _resultobj
;
1962 wxClipboard
* _result
;
1963 char *_kwnames
[] = { NULL
};
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
1970 wxPy_BEGIN_ALLOW_THREADS
;
1971 _result
= (wxClipboard
*)new_wxClipboard();
1973 wxPy_END_ALLOW_THREADS
;
1974 if (PyErr_Occurred()) return NULL
;
1976 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
1977 _resultobj
= Py_BuildValue("s",_ptemp
);
1980 _resultobj
= Py_None
;
1985 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
1986 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1987 PyObject
* _resultobj
;
1989 wxClipboard
* _arg0
;
1990 PyObject
* _argo0
= 0;
1991 char *_kwnames
[] = { "self", NULL
};
1994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
1997 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1998 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
1999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2004 wxPy_BEGIN_ALLOW_THREADS
;
2005 _result
= (bool )wxClipboard_Open(_arg0
);
2007 wxPy_END_ALLOW_THREADS
;
2008 if (PyErr_Occurred()) return NULL
;
2009 } _resultobj
= Py_BuildValue("i",_result
);
2013 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2014 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2015 PyObject
* _resultobj
;
2016 wxClipboard
* _arg0
;
2017 PyObject
* _argo0
= 0;
2018 char *_kwnames
[] = { "self", NULL
};
2021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2031 wxPy_BEGIN_ALLOW_THREADS
;
2032 wxClipboard_Close(_arg0
);
2034 wxPy_END_ALLOW_THREADS
;
2035 if (PyErr_Occurred()) return NULL
;
2036 } Py_INCREF(Py_None
);
2037 _resultobj
= Py_None
;
2041 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2042 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2043 PyObject
* _resultobj
;
2045 wxClipboard
* _arg0
;
2046 PyObject
* _argo0
= 0;
2047 char *_kwnames
[] = { "self", NULL
};
2050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2060 wxPy_BEGIN_ALLOW_THREADS
;
2061 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2063 wxPy_END_ALLOW_THREADS
;
2064 if (PyErr_Occurred()) return NULL
;
2065 } _resultobj
= Py_BuildValue("i",_result
);
2069 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2070 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2071 PyObject
* _resultobj
;
2073 wxClipboard
* _arg0
;
2074 wxDataObject
* _arg1
;
2075 PyObject
* _argo0
= 0;
2076 PyObject
* _argo1
= 0;
2077 char *_kwnames
[] = { "self","data", NULL
};
2080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2090 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2091 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2097 wxPy_BEGIN_ALLOW_THREADS
;
2098 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2100 wxPy_END_ALLOW_THREADS
;
2101 if (PyErr_Occurred()) return NULL
;
2102 } _resultobj
= Py_BuildValue("i",_result
);
2106 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2107 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2108 PyObject
* _resultobj
;
2110 wxClipboard
* _arg0
;
2111 wxDataObject
* _arg1
;
2112 PyObject
* _argo0
= 0;
2113 PyObject
* _argo1
= 0;
2114 char *_kwnames
[] = { "self","data", NULL
};
2117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2127 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2128 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2134 wxPy_BEGIN_ALLOW_THREADS
;
2135 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2137 wxPy_END_ALLOW_THREADS
;
2138 if (PyErr_Occurred()) return NULL
;
2139 } _resultobj
= Py_BuildValue("i",_result
);
2143 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2144 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2145 PyObject
* _resultobj
;
2147 wxClipboard
* _arg0
;
2148 wxDataFormat
* _arg1
;
2149 PyObject
* _argo0
= 0;
2150 PyObject
* _argo1
= 0;
2151 char *_kwnames
[] = { "self","format", NULL
};
2154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2164 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2165 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2171 wxPy_BEGIN_ALLOW_THREADS
;
2172 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2174 wxPy_END_ALLOW_THREADS
;
2175 if (PyErr_Occurred()) return NULL
;
2176 } _resultobj
= Py_BuildValue("i",_result
);
2180 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2181 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2182 PyObject
* _resultobj
;
2184 wxClipboard
* _arg0
;
2185 wxDataObject
* _arg1
;
2186 PyObject
* _argo0
= 0;
2187 PyObject
* _argo1
= 0;
2188 char *_kwnames
[] = { "self","data", NULL
};
2191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2201 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2202 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2208 wxPy_BEGIN_ALLOW_THREADS
;
2209 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2211 wxPy_END_ALLOW_THREADS
;
2212 if (PyErr_Occurred()) return NULL
;
2213 } _resultobj
= Py_BuildValue("i",_result
);
2217 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2218 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2219 PyObject
* _resultobj
;
2220 wxClipboard
* _arg0
;
2221 PyObject
* _argo0
= 0;
2222 char *_kwnames
[] = { "self", NULL
};
2225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2235 wxPy_BEGIN_ALLOW_THREADS
;
2236 wxClipboard_Clear(_arg0
);
2238 wxPy_END_ALLOW_THREADS
;
2239 if (PyErr_Occurred()) return NULL
;
2240 } Py_INCREF(Py_None
);
2241 _resultobj
= Py_None
;
2245 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2246 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
* _resultobj
;
2249 wxClipboard
* _arg0
;
2250 PyObject
* _argo0
= 0;
2251 char *_kwnames
[] = { "self", NULL
};
2254 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2257 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2258 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2259 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2264 wxPy_BEGIN_ALLOW_THREADS
;
2265 _result
= (bool )wxClipboard_Flush(_arg0
);
2267 wxPy_END_ALLOW_THREADS
;
2268 if (PyErr_Occurred()) return NULL
;
2269 } _resultobj
= Py_BuildValue("i",_result
);
2273 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2274 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2275 PyObject
* _resultobj
;
2276 wxClipboard
* _arg0
;
2277 int _arg1
= (int ) FALSE
;
2278 PyObject
* _argo0
= 0;
2279 char *_kwnames
[] = { "self","primary", NULL
};
2282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2292 wxPy_BEGIN_ALLOW_THREADS
;
2293 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2295 wxPy_END_ALLOW_THREADS
;
2296 if (PyErr_Occurred()) return NULL
;
2297 } Py_INCREF(Py_None
);
2298 _resultobj
= Py_None
;
2302 #define new_wxDropSource(_swigarg0,_swigarg1) (new wxPyDropSource(_swigarg0,_swigarg1))
2303 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2304 PyObject
* _resultobj
;
2305 wxPyDropSource
* _result
;
2306 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2307 wxIcon
* _arg1
= (wxIcon
*) &wxNullIcon
;
2308 PyObject
* _argo0
= 0;
2309 PyObject
* _argo1
= 0;
2310 char *_kwnames
[] = { "win","go", NULL
};
2314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
))
2317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2324 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2325 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxIcon_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxIcon_p.");
2331 wxPy_BEGIN_ALLOW_THREADS
;
2332 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
);
2334 wxPy_END_ALLOW_THREADS
;
2335 if (PyErr_Occurred()) return NULL
;
2337 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2338 _resultobj
= Py_BuildValue("s",_ptemp
);
2341 _resultobj
= Py_None
;
2346 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2347 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
* _resultobj
;
2349 wxPyDropSource
* _arg0
;
2353 PyObject
* _argo0
= 0;
2354 PyObject
* _obj1
= 0;
2355 PyObject
* _obj2
= 0;
2356 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2375 wxPy_BEGIN_ALLOW_THREADS
;
2376 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2378 wxPy_END_ALLOW_THREADS
;
2379 if (PyErr_Occurred()) return NULL
;
2380 } Py_INCREF(Py_None
);
2381 _resultobj
= Py_None
;
2385 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2386 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2387 PyObject
* _resultobj
;
2388 wxPyDropSource
* _arg0
;
2389 PyObject
* _argo0
= 0;
2390 char *_kwnames
[] = { "self", NULL
};
2393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2403 wxPy_BEGIN_ALLOW_THREADS
;
2404 delete_wxPyDropSource(_arg0
);
2406 wxPy_END_ALLOW_THREADS
;
2407 if (PyErr_Occurred()) return NULL
;
2408 } Py_INCREF(Py_None
);
2409 _resultobj
= Py_None
;
2413 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2414 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2415 PyObject
* _resultobj
;
2416 wxPyDropSource
* _arg0
;
2417 wxDataObject
* _arg1
;
2418 PyObject
* _argo0
= 0;
2419 PyObject
* _argo1
= 0;
2420 char *_kwnames
[] = { "self","data", NULL
};
2423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2433 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2434 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2440 wxPy_BEGIN_ALLOW_THREADS
;
2441 wxDropSource_SetData(_arg0
,*_arg1
);
2443 wxPy_END_ALLOW_THREADS
;
2444 if (PyErr_Occurred()) return NULL
;
2445 } Py_INCREF(Py_None
);
2446 _resultobj
= Py_None
;
2450 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2451 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2452 PyObject
* _resultobj
;
2453 wxDataObject
* _result
;
2454 wxPyDropSource
* _arg0
;
2455 PyObject
* _argo0
= 0;
2456 char *_kwnames
[] = { "self", NULL
};
2460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2470 wxPy_BEGIN_ALLOW_THREADS
;
2471 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2473 wxPy_END_ALLOW_THREADS
;
2474 if (PyErr_Occurred()) return NULL
;
2476 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2477 _resultobj
= Py_BuildValue("s",_ptemp
);
2480 _resultobj
= Py_None
;
2485 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2486 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2487 PyObject
* _resultobj
;
2488 wxPyDropSource
* _arg0
;
2491 PyObject
* _argo0
= 0;
2492 PyObject
* _argo2
= 0;
2493 char *_kwnames
[] = { "self","res","cursor", NULL
};
2496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
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 wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2506 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2507 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2513 wxPy_BEGIN_ALLOW_THREADS
;
2514 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2516 wxPy_END_ALLOW_THREADS
;
2517 if (PyErr_Occurred()) return NULL
;
2518 } Py_INCREF(Py_None
);
2519 _resultobj
= Py_None
;
2523 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2524 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
* _resultobj
;
2526 wxDragResult _result
;
2527 wxPyDropSource
* _arg0
;
2528 int _arg1
= (int ) FALSE
;
2529 PyObject
* _argo0
= 0;
2530 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2543 wxPy_BEGIN_ALLOW_THREADS
;
2544 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2546 wxPy_END_ALLOW_THREADS
;
2547 if (PyErr_Occurred()) return NULL
;
2548 } _resultobj
= Py_BuildValue("i",_result
);
2552 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2553 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2556 wxPyDropSource
* _arg0
;
2558 PyObject
* _argo0
= 0;
2559 char *_kwnames
[] = { "self","effect", NULL
};
2562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2572 wxPy_BEGIN_ALLOW_THREADS
;
2573 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2575 wxPy_END_ALLOW_THREADS
;
2576 if (PyErr_Occurred()) return NULL
;
2577 } _resultobj
= Py_BuildValue("i",_result
);
2581 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2582 wxPyDropTarget
*src
;
2584 src
= (wxPyDropTarget
*) ptr
;
2585 dest
= (wxDropTarget
*) src
;
2586 return (void *) dest
;
2589 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2590 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2591 PyObject
* _resultobj
;
2592 wxPyDropTarget
* _result
;
2593 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2594 PyObject
* _argo0
= 0;
2595 char *_kwnames
[] = { "dataObject", NULL
};
2599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2609 wxPy_BEGIN_ALLOW_THREADS
;
2610 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2612 wxPy_END_ALLOW_THREADS
;
2613 if (PyErr_Occurred()) return NULL
;
2615 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2616 _resultobj
= Py_BuildValue("s",_ptemp
);
2619 _resultobj
= Py_None
;
2624 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2625 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2626 PyObject
* _resultobj
;
2627 wxPyDropTarget
* _arg0
;
2630 PyObject
* _argo0
= 0;
2631 PyObject
* _obj1
= 0;
2632 PyObject
* _obj2
= 0;
2633 char *_kwnames
[] = { "self","self","_class", NULL
};
2636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2652 wxPy_BEGIN_ALLOW_THREADS
;
2653 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2655 wxPy_END_ALLOW_THREADS
;
2656 if (PyErr_Occurred()) return NULL
;
2657 } Py_INCREF(Py_None
);
2658 _resultobj
= Py_None
;
2662 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2663 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2664 PyObject
* _resultobj
;
2665 wxPyDropTarget
* _arg0
;
2666 PyObject
* _argo0
= 0;
2667 char *_kwnames
[] = { "self", NULL
};
2670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2680 wxPy_BEGIN_ALLOW_THREADS
;
2681 delete_wxPyDropTarget(_arg0
);
2683 wxPy_END_ALLOW_THREADS
;
2684 if (PyErr_Occurred()) return NULL
;
2685 } Py_INCREF(Py_None
);
2686 _resultobj
= Py_None
;
2690 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2691 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2692 PyObject
* _resultobj
;
2693 wxDataObject
* _result
;
2694 wxPyDropTarget
* _arg0
;
2695 PyObject
* _argo0
= 0;
2696 char *_kwnames
[] = { "self", NULL
};
2700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2710 wxPy_BEGIN_ALLOW_THREADS
;
2711 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2713 wxPy_END_ALLOW_THREADS
;
2714 if (PyErr_Occurred()) return NULL
;
2716 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2717 _resultobj
= Py_BuildValue("s",_ptemp
);
2720 _resultobj
= Py_None
;
2725 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2726 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2727 PyObject
* _resultobj
;
2728 wxPyDropTarget
* _arg0
;
2729 wxDataObject
* _arg1
;
2730 PyObject
* _argo0
= 0;
2731 PyObject
* _argo1
= 0;
2732 char *_kwnames
[] = { "self","dataObject", NULL
};
2735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2745 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2746 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2752 wxPy_BEGIN_ALLOW_THREADS
;
2753 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2755 wxPy_END_ALLOW_THREADS
;
2756 if (PyErr_Occurred()) return NULL
;
2757 } Py_INCREF(Py_None
);
2758 _resultobj
= Py_None
;
2762 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2763 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2764 PyObject
* _resultobj
;
2765 wxDragResult _result
;
2766 wxPyDropTarget
* _arg0
;
2770 PyObject
* _argo0
= 0;
2771 char *_kwnames
[] = { "self","x","y","def", NULL
};
2774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2784 wxPy_BEGIN_ALLOW_THREADS
;
2785 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2787 wxPy_END_ALLOW_THREADS
;
2788 if (PyErr_Occurred()) return NULL
;
2789 } _resultobj
= Py_BuildValue("i",_result
);
2793 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2794 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2795 PyObject
* _resultobj
;
2796 wxDragResult _result
;
2797 wxPyDropTarget
* _arg0
;
2801 PyObject
* _argo0
= 0;
2802 char *_kwnames
[] = { "self","x","y","def", NULL
};
2805 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2808 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2809 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2815 wxPy_BEGIN_ALLOW_THREADS
;
2816 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
2818 wxPy_END_ALLOW_THREADS
;
2819 if (PyErr_Occurred()) return NULL
;
2820 } _resultobj
= Py_BuildValue("i",_result
);
2824 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
2825 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2826 PyObject
* _resultobj
;
2827 wxPyDropTarget
* _arg0
;
2828 PyObject
* _argo0
= 0;
2829 char *_kwnames
[] = { "self", NULL
};
2832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
2835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
2842 wxPy_BEGIN_ALLOW_THREADS
;
2843 wxPyDropTarget_base_OnLeave(_arg0
);
2845 wxPy_END_ALLOW_THREADS
;
2846 if (PyErr_Occurred()) return NULL
;
2847 } Py_INCREF(Py_None
);
2848 _resultobj
= Py_None
;
2852 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
2853 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2854 PyObject
* _resultobj
;
2856 wxPyDropTarget
* _arg0
;
2859 PyObject
* _argo0
= 0;
2860 char *_kwnames
[] = { "self","x","y", NULL
};
2863 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2866 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2867 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2868 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
2873 wxPy_BEGIN_ALLOW_THREADS
;
2874 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
2876 wxPy_END_ALLOW_THREADS
;
2877 if (PyErr_Occurred()) return NULL
;
2878 } _resultobj
= Py_BuildValue("i",_result
);
2882 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
2883 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2884 PyObject
* _resultobj
;
2886 wxPyDropTarget
* _arg0
;
2887 PyObject
* _argo0
= 0;
2888 char *_kwnames
[] = { "self", NULL
};
2891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
2894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
2901 wxPy_BEGIN_ALLOW_THREADS
;
2902 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
2904 wxPy_END_ALLOW_THREADS
;
2905 if (PyErr_Occurred()) return NULL
;
2906 } _resultobj
= Py_BuildValue("i",_result
);
2910 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
2911 wxPyTextDropTarget
*src
;
2912 wxPyDropTarget
*dest
;
2913 src
= (wxPyTextDropTarget
*) ptr
;
2914 dest
= (wxPyDropTarget
*) src
;
2915 return (void *) dest
;
2918 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
2919 wxPyTextDropTarget
*src
;
2921 src
= (wxPyTextDropTarget
*) ptr
;
2922 dest
= (wxDropTarget
*) src
;
2923 return (void *) dest
;
2926 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
2927 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2928 PyObject
* _resultobj
;
2929 wxPyTextDropTarget
* _result
;
2930 char *_kwnames
[] = { NULL
};
2934 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
2937 wxPy_BEGIN_ALLOW_THREADS
;
2938 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
2940 wxPy_END_ALLOW_THREADS
;
2941 if (PyErr_Occurred()) return NULL
;
2943 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
2944 _resultobj
= Py_BuildValue("s",_ptemp
);
2947 _resultobj
= Py_None
;
2952 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2953 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2955 wxPyTextDropTarget
* _arg0
;
2958 PyObject
* _argo0
= 0;
2959 PyObject
* _obj1
= 0;
2960 PyObject
* _obj2
= 0;
2961 char *_kwnames
[] = { "self","self","_class", NULL
};
2964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
2969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
2980 wxPy_BEGIN_ALLOW_THREADS
;
2981 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2983 wxPy_END_ALLOW_THREADS
;
2984 if (PyErr_Occurred()) return NULL
;
2985 } Py_INCREF(Py_None
);
2986 _resultobj
= Py_None
;
2990 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2991 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2992 PyObject
* _resultobj
;
2993 wxDragResult _result
;
2994 wxPyTextDropTarget
* _arg0
;
2998 PyObject
* _argo0
= 0;
2999 char *_kwnames
[] = { "self","x","y","def", NULL
};
3002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3012 wxPy_BEGIN_ALLOW_THREADS
;
3013 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3015 wxPy_END_ALLOW_THREADS
;
3016 if (PyErr_Occurred()) return NULL
;
3017 } _resultobj
= Py_BuildValue("i",_result
);
3021 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3022 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3023 PyObject
* _resultobj
;
3024 wxDragResult _result
;
3025 wxPyTextDropTarget
* _arg0
;
3029 PyObject
* _argo0
= 0;
3030 char *_kwnames
[] = { "self","x","y","def", NULL
};
3033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3043 wxPy_BEGIN_ALLOW_THREADS
;
3044 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3046 wxPy_END_ALLOW_THREADS
;
3047 if (PyErr_Occurred()) return NULL
;
3048 } _resultobj
= Py_BuildValue("i",_result
);
3052 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3053 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3054 PyObject
* _resultobj
;
3055 wxPyTextDropTarget
* _arg0
;
3056 PyObject
* _argo0
= 0;
3057 char *_kwnames
[] = { "self", NULL
};
3060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3070 wxPy_BEGIN_ALLOW_THREADS
;
3071 wxTextDropTarget_base_OnLeave(_arg0
);
3073 wxPy_END_ALLOW_THREADS
;
3074 if (PyErr_Occurred()) return NULL
;
3075 } Py_INCREF(Py_None
);
3076 _resultobj
= Py_None
;
3080 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3081 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3082 PyObject
* _resultobj
;
3084 wxPyTextDropTarget
* _arg0
;
3087 PyObject
* _argo0
= 0;
3088 char *_kwnames
[] = { "self","x","y", NULL
};
3091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3101 wxPy_BEGIN_ALLOW_THREADS
;
3102 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3104 wxPy_END_ALLOW_THREADS
;
3105 if (PyErr_Occurred()) return NULL
;
3106 } _resultobj
= Py_BuildValue("i",_result
);
3110 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3111 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3112 PyObject
* _resultobj
;
3113 wxDragResult _result
;
3114 wxPyTextDropTarget
* _arg0
;
3118 PyObject
* _argo0
= 0;
3119 char *_kwnames
[] = { "self","x","y","def", NULL
};
3122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3132 wxPy_BEGIN_ALLOW_THREADS
;
3133 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3135 wxPy_END_ALLOW_THREADS
;
3136 if (PyErr_Occurred()) return NULL
;
3137 } _resultobj
= Py_BuildValue("i",_result
);
3141 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3142 wxPyFileDropTarget
*src
;
3143 wxPyDropTarget
*dest
;
3144 src
= (wxPyFileDropTarget
*) ptr
;
3145 dest
= (wxPyDropTarget
*) src
;
3146 return (void *) dest
;
3149 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3150 wxPyFileDropTarget
*src
;
3152 src
= (wxPyFileDropTarget
*) ptr
;
3153 dest
= (wxDropTarget
*) src
;
3154 return (void *) dest
;
3157 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3158 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3159 PyObject
* _resultobj
;
3160 wxPyFileDropTarget
* _result
;
3161 char *_kwnames
[] = { NULL
};
3165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3168 wxPy_BEGIN_ALLOW_THREADS
;
3169 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3171 wxPy_END_ALLOW_THREADS
;
3172 if (PyErr_Occurred()) return NULL
;
3174 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3175 _resultobj
= Py_BuildValue("s",_ptemp
);
3178 _resultobj
= Py_None
;
3183 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3184 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3185 PyObject
* _resultobj
;
3186 wxPyFileDropTarget
* _arg0
;
3189 PyObject
* _argo0
= 0;
3190 PyObject
* _obj1
= 0;
3191 PyObject
* _obj2
= 0;
3192 char *_kwnames
[] = { "self","self","_class", NULL
};
3195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3211 wxPy_BEGIN_ALLOW_THREADS
;
3212 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3214 wxPy_END_ALLOW_THREADS
;
3215 if (PyErr_Occurred()) return NULL
;
3216 } Py_INCREF(Py_None
);
3217 _resultobj
= Py_None
;
3221 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3222 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3223 PyObject
* _resultobj
;
3224 wxDragResult _result
;
3225 wxPyFileDropTarget
* _arg0
;
3229 PyObject
* _argo0
= 0;
3230 char *_kwnames
[] = { "self","x","y","def", NULL
};
3233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3243 wxPy_BEGIN_ALLOW_THREADS
;
3244 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3246 wxPy_END_ALLOW_THREADS
;
3247 if (PyErr_Occurred()) return NULL
;
3248 } _resultobj
= Py_BuildValue("i",_result
);
3252 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3253 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
* _resultobj
;
3255 wxDragResult _result
;
3256 wxPyFileDropTarget
* _arg0
;
3260 PyObject
* _argo0
= 0;
3261 char *_kwnames
[] = { "self","x","y","def", NULL
};
3264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3274 wxPy_BEGIN_ALLOW_THREADS
;
3275 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3277 wxPy_END_ALLOW_THREADS
;
3278 if (PyErr_Occurred()) return NULL
;
3279 } _resultobj
= Py_BuildValue("i",_result
);
3283 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3284 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
* _resultobj
;
3286 wxPyFileDropTarget
* _arg0
;
3287 PyObject
* _argo0
= 0;
3288 char *_kwnames
[] = { "self", NULL
};
3291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3301 wxPy_BEGIN_ALLOW_THREADS
;
3302 wxFileDropTarget_base_OnLeave(_arg0
);
3304 wxPy_END_ALLOW_THREADS
;
3305 if (PyErr_Occurred()) return NULL
;
3306 } Py_INCREF(Py_None
);
3307 _resultobj
= Py_None
;
3311 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3312 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3313 PyObject
* _resultobj
;
3315 wxPyFileDropTarget
* _arg0
;
3318 PyObject
* _argo0
= 0;
3319 char *_kwnames
[] = { "self","x","y", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3332 wxPy_BEGIN_ALLOW_THREADS
;
3333 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3335 wxPy_END_ALLOW_THREADS
;
3336 if (PyErr_Occurred()) return NULL
;
3337 } _resultobj
= Py_BuildValue("i",_result
);
3341 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3342 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3343 PyObject
* _resultobj
;
3344 wxDragResult _result
;
3345 wxPyFileDropTarget
* _arg0
;
3349 PyObject
* _argo0
= 0;
3350 char *_kwnames
[] = { "self","x","y","def", NULL
};
3353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3363 wxPy_BEGIN_ALLOW_THREADS
;
3364 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3366 wxPy_END_ALLOW_THREADS
;
3367 if (PyErr_Occurred()) return NULL
;
3368 } _resultobj
= Py_BuildValue("i",_result
);
3372 static PyMethodDef clip_dndcMethods
[] = {
3373 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3374 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3375 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3376 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3377 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3378 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3379 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3380 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3381 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3382 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3383 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3384 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3385 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3386 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3387 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3388 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3389 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3390 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3391 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3392 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3393 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3394 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3395 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3396 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3397 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3398 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3399 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3400 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3401 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3402 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3403 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3404 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3405 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3406 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3407 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3408 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3409 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3410 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3411 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3412 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3413 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3414 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3415 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3416 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3417 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3418 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3419 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3420 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3421 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3422 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3423 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3424 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3425 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3426 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3427 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3428 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3429 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3430 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3463 * This table is used by the pointer type-checker
3465 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3466 { "_signed_long","_long",0},
3467 { "_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3468 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3469 { "_wxPrintQuality","_wxCoord",0},
3470 { "_wxPrintQuality","_int",0},
3471 { "_wxPrintQuality","_signed_int",0},
3472 { "_wxPrintQuality","_unsigned_int",0},
3473 { "_wxPrintQuality","_wxWindowID",0},
3474 { "_wxPrintQuality","_uint",0},
3475 { "_wxPrintQuality","_EBool",0},
3476 { "_wxPrintQuality","_size_t",0},
3477 { "_wxPrintQuality","_time_t",0},
3478 { "_byte","_unsigned_char",0},
3479 { "_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3480 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3481 { "_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3482 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3483 { "_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3484 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3485 { "_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3486 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3487 { "_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3488 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3489 { "_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3490 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3491 { "_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3492 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3493 { "_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3494 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3495 { "_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3496 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3497 { "_long","_unsigned_long",0},
3498 { "_long","_signed_long",0},
3499 { "_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3500 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3501 { "_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3502 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3503 { "_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3504 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3505 { "_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3506 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3507 { "_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3508 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3509 { "_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3510 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3511 { "_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3512 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3513 { "_class_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3514 { "_class_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3515 { "_class_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject
},
3516 { "_class_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3517 { "_size_t","_wxCoord",0},
3518 { "_size_t","_wxPrintQuality",0},
3519 { "_size_t","_time_t",0},
3520 { "_size_t","_unsigned_int",0},
3521 { "_size_t","_int",0},
3522 { "_size_t","_wxWindowID",0},
3523 { "_size_t","_uint",0},
3524 { "_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3525 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3526 { "_class_wxDataObject","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3527 { "_class_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3528 { "_class_wxDataObject","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3529 { "_class_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3530 { "_class_wxDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3531 { "_class_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3532 { "_class_wxDataObject","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3533 { "_class_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3534 { "_class_wxDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3535 { "_class_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3536 { "_class_wxDataObject","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3537 { "_class_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3538 { "_class_wxDataObject","_class_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3539 { "_class_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3540 { "_class_wxDataObject","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3541 { "_class_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3542 { "_class_wxDataObject","_class_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3543 { "_class_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3544 { "_class_wxDataObjectSimple","_class_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3545 { "_class_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3546 { "_class_wxDataObjectSimple","_class_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3547 { "_class_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3548 { "_class_wxDataObjectSimple","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3549 { "_class_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3550 { "_class_wxDataObjectSimple","_class_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3551 { "_class_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3552 { "_class_wxDataObjectSimple","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3553 { "_class_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3554 { "_class_wxDataObjectSimple","_class_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3555 { "_class_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3556 { "_class_wxDataObjectSimple","_class_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3557 { "_class_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3558 { "_uint","_wxCoord",0},
3559 { "_uint","_wxPrintQuality",0},
3560 { "_uint","_time_t",0},
3561 { "_uint","_size_t",0},
3562 { "_uint","_unsigned_int",0},
3563 { "_uint","_int",0},
3564 { "_uint","_wxWindowID",0},
3565 { "_wxChar","_char",0},
3566 { "_char","_wxChar",0},
3567 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3568 { "_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3569 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3570 { "_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3571 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3572 { "_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3573 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3574 { "_EBool","_wxCoord",0},
3575 { "_EBool","_wxPrintQuality",0},
3576 { "_EBool","_signed_int",0},
3577 { "_EBool","_int",0},
3578 { "_EBool","_wxWindowID",0},
3579 { "_class_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3580 { "_class_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3581 { "_class_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3582 { "_class_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3583 { "_unsigned_long","_long",0},
3584 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3585 { "_signed_int","_wxCoord",0},
3586 { "_signed_int","_wxPrintQuality",0},
3587 { "_signed_int","_EBool",0},
3588 { "_signed_int","_wxWindowID",0},
3589 { "_signed_int","_int",0},
3590 { "_class_wxTextDataObject","_class_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3591 { "_class_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3592 { "_WXTYPE","_short",0},
3593 { "_WXTYPE","_signed_short",0},
3594 { "_WXTYPE","_unsigned_short",0},
3595 { "_class_wxDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3596 { "_class_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3597 { "_class_wxDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3598 { "_class_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3599 { "_class_wxDropTarget","_class_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3600 { "_class_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3601 { "_unsigned_short","_WXTYPE",0},
3602 { "_unsigned_short","_short",0},
3603 { "_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject
},
3604 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3605 { "_signed_short","_WXTYPE",0},
3606 { "_signed_short","_short",0},
3607 { "_unsigned_char","_byte",0},
3608 { "_unsigned_int","_wxCoord",0},
3609 { "_unsigned_int","_wxPrintQuality",0},
3610 { "_unsigned_int","_time_t",0},
3611 { "_unsigned_int","_size_t",0},
3612 { "_unsigned_int","_uint",0},
3613 { "_unsigned_int","_wxWindowID",0},
3614 { "_unsigned_int","_int",0},
3615 { "_short","_WXTYPE",0},
3616 { "_short","_unsigned_short",0},
3617 { "_short","_signed_short",0},
3618 { "_wxWindowID","_wxCoord",0},
3619 { "_wxWindowID","_wxPrintQuality",0},
3620 { "_wxWindowID","_time_t",0},
3621 { "_wxWindowID","_size_t",0},
3622 { "_wxWindowID","_EBool",0},
3623 { "_wxWindowID","_uint",0},
3624 { "_wxWindowID","_int",0},
3625 { "_wxWindowID","_signed_int",0},
3626 { "_wxWindowID","_unsigned_int",0},
3627 { "_int","_wxCoord",0},
3628 { "_int","_wxPrintQuality",0},
3629 { "_int","_time_t",0},
3630 { "_int","_size_t",0},
3631 { "_int","_EBool",0},
3632 { "_int","_uint",0},
3633 { "_int","_wxWindowID",0},
3634 { "_int","_unsigned_int",0},
3635 { "_int","_signed_int",0},
3636 { "_time_t","_wxCoord",0},
3637 { "_time_t","_wxPrintQuality",0},
3638 { "_time_t","_unsigned_int",0},
3639 { "_time_t","_int",0},
3640 { "_time_t","_wxWindowID",0},
3641 { "_time_t","_uint",0},
3642 { "_time_t","_size_t",0},
3643 { "_wxCoord","_int",0},
3644 { "_wxCoord","_signed_int",0},
3645 { "_wxCoord","_unsigned_int",0},
3646 { "_wxCoord","_wxWindowID",0},
3647 { "_wxCoord","_uint",0},
3648 { "_wxCoord","_EBool",0},
3649 { "_wxCoord","_size_t",0},
3650 { "_wxCoord","_time_t",0},
3651 { "_wxCoord","_wxPrintQuality",0},
3652 { "_wxPyDropTarget","_class_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3653 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3654 { "_wxPyDropTarget","_class_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3655 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3658 static PyObject
*SWIG_globals
;
3662 SWIGEXPORT(void) initclip_dndc() {
3664 SWIG_globals
= SWIG_newvarlink();
3665 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3666 d
= PyModule_GetDict(m
);
3667 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3668 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3669 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3670 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3671 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3672 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3673 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3674 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3675 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3676 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3677 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3678 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3679 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3680 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3681 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3682 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3683 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3684 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3685 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3686 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3687 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3688 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3689 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3690 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3691 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3692 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3693 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3696 wxPyTheClipboard
= wxTheClipboard
;
3697 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3698 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3699 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3700 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3701 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3702 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3705 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3706 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);