2 * FILE : src/msw/clip_dnd.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initclip_dndc
56 #define SWIG_name "clip_dndc"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
90 #if PYTHON_API_VERSION >= 1009
91 static char* wxStringErrorMsg
= "String or Unicode type required";
93 static char* wxStringErrorMsg
= "String type required";
95 // An alternate constructor...
96 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
97 return new wxDataFormat(id
);
100 wxDataFormat wxPyFormatInvalid
;
101 // Create a new class for wxPython to use
102 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
104 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
105 : wxDataObjectSimple(format
) {}
107 DEC_PYCALLBACK_SIZET_(GetDataSize
);
108 bool GetDataHere(void *buf
);
109 bool SetData(size_t len
, const void *buf
);
113 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
115 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
116 // We need to get the data for this object and write it to buf. I think
117 // the best way to do this for wxPython is to have the Python method
118 // return either a string or None and then act appropriately with the
122 wxPyBeginBlockThreads();
123 if (m_myInst
.findCallback("GetDataHere")) {
125 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
127 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
129 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
133 wxPyEndBlockThreads();
137 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
138 // For this one we simply need to make a string from buf and len
139 // and send it to the Python method.
141 wxPyBeginBlockThreads();
142 if (m_myInst
.findCallback("SetData")) {
143 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
144 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
147 wxPyEndBlockThreads();
150 // Create a new class for wxPython to use
151 class wxPyTextDataObject
: public wxTextDataObject
{
153 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
154 : wxTextDataObject(text
) {}
156 DEC_PYCALLBACK_SIZET_(GetTextLength
);
157 DEC_PYCALLBACK_STRING_(GetText
);
158 DEC_PYCALLBACK__STRING(SetText
);
162 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
163 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
164 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
166 // Create a new class for wxPython to use
167 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
169 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
170 : wxBitmapDataObject(bitmap
) {}
172 wxBitmap
GetBitmap();
173 void SetBitmap(const wxBitmap
& bitmap
);
177 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
178 wxBitmap
* rval
= &wxNullBitmap
;
179 wxPyBeginBlockThreads();
180 if (m_myInst
.findCallback("GetBitmap")) {
183 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
185 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
190 wxPyEndBlockThreads();
194 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
195 wxPyBeginBlockThreads();
196 if (m_myInst
.findCallback("SetBitmap")) {
197 m_myInst
.callCallback(Py_BuildValue("(O)",
198 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
200 wxPyEndBlockThreads();
203 #include <wx/metafile.h>
205 // See below in the init function...
206 wxClipboard
* wxPyTheClipboard
;
208 class wxPyDropSource
: public wxDropSource
{
211 wxPyDropSource(wxWindow
*win
= NULL
,
212 const wxCursor
&cursorCopy
= wxNullCursor
,
213 const wxCursor
&cursorMove
= wxNullCursor
,
214 const wxCursor
&cursorStop
= wxNullCursor
)
215 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
217 wxPyDropSource(wxWindow
*win
= NULL
,
218 const wxIcon
&go
= wxNullIcon
)
219 : wxDropSource(win
, go
) {}
221 ~wxPyDropSource() { }
223 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
227 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
230 class wxPyDropTarget
: public wxDropTarget
{
232 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
233 : wxDropTarget(dataObject
) {}
235 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
236 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
238 DEC_PYCALLBACK__(OnLeave
);
239 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
240 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
241 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
242 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
247 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
248 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
250 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
251 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
252 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
253 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
254 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
257 class wxPyTextDropTarget
: public wxTextDropTarget
{
259 wxPyTextDropTarget() {}
261 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
263 DEC_PYCALLBACK__(OnLeave
);
264 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
265 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
266 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
267 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
272 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
273 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
275 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
276 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
277 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
280 class wxPyFileDropTarget
: public wxFileDropTarget
{
282 wxPyFileDropTarget() {}
284 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
286 DEC_PYCALLBACK__(OnLeave
);
287 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
288 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
289 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
290 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
295 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
296 const wxArrayString
& filenames
) {
298 wxPyBeginBlockThreads();
299 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
300 if (m_myInst
.findCallback("OnDropFiles"))
301 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
303 wxPyEndBlockThreads();
309 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
310 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
311 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
312 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
313 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
318 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
319 PyObject
* _resultobj
;
320 wxDataFormat
* _result
;
322 PyObject
* _obj0
= 0;
323 char *_kwnames
[] = { "id", NULL
};
327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
330 #if PYTHON_API_VERSION >= 1009
331 char* tmpPtr
; int tmpSize
;
332 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
333 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
336 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
338 _arg0
= new wxString(tmpPtr
, tmpSize
);
340 if (!PyString_Check(_obj0
)) {
341 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
344 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
349 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
351 wxPyEndAllowThreads(__tstate
);
352 if (PyErr_Occurred()) return NULL
;
354 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
355 _resultobj
= Py_BuildValue("s",_ptemp
);
358 _resultobj
= Py_None
;
367 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
369 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
373 static PyObject
*_wrap_wxPyFormatInvalid_get() {
377 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
378 pyobj
= PyString_FromString(ptemp
);
382 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
384 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
388 static PyObject
*_wrap_wxPyTheClipboard_get() {
392 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
393 pyobj
= PyString_FromString(ptemp
);
397 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
398 PyObject
* _resultobj
;
401 char *_kwnames
[] = { "res", NULL
};
404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
408 _result
= (bool )wxIsDragResultOk(_arg0
);
410 wxPyEndAllowThreads(__tstate
);
411 if (PyErr_Occurred()) return NULL
;
412 } _resultobj
= Py_BuildValue("i",_result
);
416 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
417 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
418 PyObject
* _resultobj
;
419 wxDataFormat
* _result
;
420 wxDataFormatId _arg0
;
421 char *_kwnames
[] = { "type", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
429 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
431 wxPyEndAllowThreads(__tstate
);
432 if (PyErr_Occurred()) return NULL
;
434 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
435 _resultobj
= Py_BuildValue("s",_ptemp
);
438 _resultobj
= Py_None
;
443 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
444 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
445 PyObject
* _resultobj
;
446 wxDataFormat
* _arg0
;
447 PyObject
* _argo0
= 0;
448 char *_kwnames
[] = { "self", NULL
};
451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
461 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
462 delete_wxDataFormat(_arg0
);
464 wxPyEndAllowThreads(__tstate
);
465 if (PyErr_Occurred()) return NULL
;
466 } Py_INCREF(Py_None
);
467 _resultobj
= Py_None
;
471 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
472 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
473 PyObject
* _resultobj
;
474 wxDataFormat
* _arg0
;
475 wxDataFormatId _arg1
;
476 PyObject
* _argo0
= 0;
477 char *_kwnames
[] = { "self","format", NULL
};
480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
491 wxDataFormat_SetType(_arg0
,_arg1
);
493 wxPyEndAllowThreads(__tstate
);
494 if (PyErr_Occurred()) return NULL
;
495 } Py_INCREF(Py_None
);
496 _resultobj
= Py_None
;
500 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
501 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
502 PyObject
* _resultobj
;
503 wxDataFormatId _result
;
504 wxDataFormat
* _arg0
;
505 PyObject
* _argo0
= 0;
506 char *_kwnames
[] = { "self", NULL
};
509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
520 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
522 wxPyEndAllowThreads(__tstate
);
523 if (PyErr_Occurred()) return NULL
;
524 } _resultobj
= Py_BuildValue("i",_result
);
528 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
529 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
530 PyObject
* _resultobj
;
532 wxDataFormat
* _arg0
;
533 PyObject
* _argo0
= 0;
534 char *_kwnames
[] = { "self", NULL
};
537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
547 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
548 _result
= new wxString (wxDataFormat_GetId(_arg0
));
550 wxPyEndAllowThreads(__tstate
);
551 if (PyErr_Occurred()) return NULL
;
553 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
561 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
562 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
563 PyObject
* _resultobj
;
564 wxDataFormat
* _arg0
;
566 PyObject
* _argo0
= 0;
567 char *_kwnames
[] = { "self","format", NULL
};
570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
581 wxDataFormat_SetId(_arg0
,_arg1
);
583 wxPyEndAllowThreads(__tstate
);
584 if (PyErr_Occurred()) return NULL
;
585 } Py_INCREF(Py_None
);
586 _resultobj
= Py_None
;
590 #define delete_wxDataObject(_swigobj) (delete _swigobj)
591 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
592 PyObject
* _resultobj
;
593 wxDataObject
* _arg0
;
594 PyObject
* _argo0
= 0;
595 char *_kwnames
[] = { "self", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
609 delete_wxDataObject(_arg0
);
611 wxPyEndAllowThreads(__tstate
);
612 if (PyErr_Occurred()) return NULL
;
613 } Py_INCREF(Py_None
);
614 _resultobj
= Py_None
;
618 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
619 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
620 PyObject
* _resultobj
;
621 wxDataFormat
* _result
;
622 wxDataObject
* _arg0
;
623 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
624 PyObject
* _argo0
= 0;
625 char *_kwnames
[] = { "self","dir", NULL
};
629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
640 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
642 wxPyEndAllowThreads(__tstate
);
643 if (PyErr_Occurred()) return NULL
;
644 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
645 _resultobj
= Py_BuildValue("s",_ptemp
);
649 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
650 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
651 PyObject
* _resultobj
;
653 wxDataObject
* _arg0
;
654 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
655 PyObject
* _argo0
= 0;
656 char *_kwnames
[] = { "self","dir", NULL
};
659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
670 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
672 wxPyEndAllowThreads(__tstate
);
673 if (PyErr_Occurred()) return NULL
;
674 } _resultobj
= Py_BuildValue("i",_result
);
678 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
679 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
680 PyObject
* _resultobj
;
681 wxDataObject
* _arg0
;
682 wxDataFormat
* _arg1
;
683 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
684 PyObject
* _argo0
= 0;
685 PyObject
* _argo1
= 0;
686 char *_kwnames
[] = { "self","formats","dir", NULL
};
689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
699 if (_argo1
== Py_None
) { _arg1
= NULL
; }
700 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
707 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
709 wxPyEndAllowThreads(__tstate
);
710 if (PyErr_Occurred()) return NULL
;
711 } Py_INCREF(Py_None
);
712 _resultobj
= Py_None
;
716 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
717 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
718 PyObject
* _resultobj
;
720 wxDataObject
* _arg0
;
721 wxDataFormat
* _arg1
;
722 PyObject
* _argo0
= 0;
723 PyObject
* _argo1
= 0;
724 char *_kwnames
[] = { "self","format", NULL
};
727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
737 if (_argo1
== Py_None
) { _arg1
= NULL
; }
738 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
744 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
745 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
747 wxPyEndAllowThreads(__tstate
);
748 if (PyErr_Occurred()) return NULL
;
749 } _resultobj
= Py_BuildValue("i",_result
);
753 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
754 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
755 PyObject
* _resultobj
;
757 wxDataObject
* _arg0
;
758 wxDataFormat
* _arg1
;
760 PyObject
* _argo0
= 0;
761 PyObject
* _argo1
= 0;
762 PyObject
* _argo2
= 0;
763 char *_kwnames
[] = { "self","format","buf", NULL
};
766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
776 if (_argo1
== Py_None
) { _arg1
= NULL
; }
777 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
783 if (_argo2
== Py_None
) { _arg2
= NULL
; }
784 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
790 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
791 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
793 wxPyEndAllowThreads(__tstate
);
794 if (PyErr_Occurred()) return NULL
;
795 } _resultobj
= Py_BuildValue("i",_result
);
799 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
800 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
801 PyObject
* _resultobj
;
803 wxDataObject
* _arg0
;
804 wxDataFormat
* _arg1
;
807 PyObject
* _argo0
= 0;
808 PyObject
* _argo1
= 0;
809 PyObject
* _argo3
= 0;
810 char *_kwnames
[] = { "self","format","len","buf", NULL
};
813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
823 if (_argo1
== Py_None
) { _arg1
= NULL
; }
824 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
830 if (_argo3
== Py_None
) { _arg3
= NULL
; }
831 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
838 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
840 wxPyEndAllowThreads(__tstate
);
841 if (PyErr_Occurred()) return NULL
;
842 } _resultobj
= Py_BuildValue("i",_result
);
846 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
847 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
848 PyObject
* _resultobj
;
850 wxDataObject
* _arg0
;
851 wxDataFormat
* _arg1
;
852 PyObject
* _argo0
= 0;
853 PyObject
* _argo1
= 0;
854 char *_kwnames
[] = { "self","format", NULL
};
857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
867 if (_argo1
== Py_None
) { _arg1
= NULL
; }
868 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
875 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
877 wxPyEndAllowThreads(__tstate
);
878 if (PyErr_Occurred()) return NULL
;
879 } _resultobj
= Py_BuildValue("i",_result
);
883 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
884 wxDataObjectSimple
*src
;
886 src
= (wxDataObjectSimple
*) ptr
;
887 dest
= (wxDataObject
*) src
;
888 return (void *) dest
;
891 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
892 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
893 PyObject
* _resultobj
;
894 wxDataObjectSimple
* _result
;
895 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
896 PyObject
* _argo0
= 0;
897 char *_kwnames
[] = { "format", NULL
};
901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) return NULL
;
917 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
918 _resultobj
= Py_BuildValue("s",_ptemp
);
921 _resultobj
= Py_None
;
926 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
927 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
928 PyObject
* _resultobj
;
929 wxDataFormat
* _result
;
930 wxDataObjectSimple
* _arg0
;
931 PyObject
* _argo0
= 0;
932 char *_kwnames
[] = { "self", NULL
};
936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
947 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
948 _result
= (wxDataFormat
*) &_result_ref
;
950 wxPyEndAllowThreads(__tstate
);
951 if (PyErr_Occurred()) return NULL
;
953 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
954 _resultobj
= Py_BuildValue("s",_ptemp
);
957 _resultobj
= Py_None
;
962 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
963 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
964 PyObject
* _resultobj
;
965 wxDataObjectSimple
* _arg0
;
966 wxDataFormat
* _arg1
;
967 PyObject
* _argo0
= 0;
968 PyObject
* _argo1
= 0;
969 char *_kwnames
[] = { "self","format", NULL
};
972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
982 if (_argo1
== Py_None
) { _arg1
= NULL
; }
983 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
990 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
992 wxPyEndAllowThreads(__tstate
);
993 if (PyErr_Occurred()) return NULL
;
994 } Py_INCREF(Py_None
);
995 _resultobj
= Py_None
;
999 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
1000 wxPyDataObjectSimple
*src
;
1001 wxDataObjectSimple
*dest
;
1002 src
= (wxPyDataObjectSimple
*) ptr
;
1003 dest
= (wxDataObjectSimple
*) src
;
1004 return (void *) dest
;
1007 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
1008 wxPyDataObjectSimple
*src
;
1010 src
= (wxPyDataObjectSimple
*) ptr
;
1011 dest
= (wxDataObject
*) src
;
1012 return (void *) dest
;
1015 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1016 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1017 PyObject
* _resultobj
;
1018 wxPyDataObjectSimple
* _result
;
1019 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1020 PyObject
* _argo0
= 0;
1021 char *_kwnames
[] = { "format", NULL
};
1025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1036 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1038 wxPyEndAllowThreads(__tstate
);
1039 if (PyErr_Occurred()) return NULL
;
1041 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1042 _resultobj
= Py_BuildValue("s",_ptemp
);
1045 _resultobj
= Py_None
;
1050 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1051 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1052 PyObject
* _resultobj
;
1053 wxPyDataObjectSimple
* _arg0
;
1056 PyObject
* _argo0
= 0;
1057 PyObject
* _obj1
= 0;
1058 PyObject
* _obj2
= 0;
1059 char *_kwnames
[] = { "self","self","_class", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1079 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1081 wxPyEndAllowThreads(__tstate
);
1082 if (PyErr_Occurred()) return NULL
;
1083 } Py_INCREF(Py_None
);
1084 _resultobj
= Py_None
;
1088 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1089 wxDataObjectComposite
*src
;
1091 src
= (wxDataObjectComposite
*) ptr
;
1092 dest
= (wxDataObject
*) src
;
1093 return (void *) dest
;
1096 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1097 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1098 PyObject
* _resultobj
;
1099 wxDataObjectComposite
* _result
;
1100 char *_kwnames
[] = { NULL
};
1104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1107 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1108 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1110 wxPyEndAllowThreads(__tstate
);
1111 if (PyErr_Occurred()) return NULL
;
1113 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1114 _resultobj
= Py_BuildValue("s",_ptemp
);
1117 _resultobj
= Py_None
;
1122 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1123 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1124 PyObject
* _resultobj
;
1125 wxDataObjectComposite
* _arg0
;
1126 wxDataObjectSimple
* _arg1
;
1127 int _arg2
= (int ) FALSE
;
1128 PyObject
* _argo0
= 0;
1129 PyObject
* _argo1
= 0;
1130 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1143 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1144 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1151 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1153 wxPyEndAllowThreads(__tstate
);
1154 if (PyErr_Occurred()) return NULL
;
1155 } Py_INCREF(Py_None
);
1156 _resultobj
= Py_None
;
1160 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1161 wxTextDataObject
*src
;
1162 wxDataObjectSimple
*dest
;
1163 src
= (wxTextDataObject
*) ptr
;
1164 dest
= (wxDataObjectSimple
*) src
;
1165 return (void *) dest
;
1168 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1169 wxTextDataObject
*src
;
1171 src
= (wxTextDataObject
*) ptr
;
1172 dest
= (wxDataObject
*) src
;
1173 return (void *) dest
;
1176 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1177 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1178 PyObject
* _resultobj
;
1179 wxTextDataObject
* _result
;
1180 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1181 PyObject
* _obj0
= 0;
1182 char *_kwnames
[] = { "text", NULL
};
1186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1190 #if PYTHON_API_VERSION >= 1009
1191 char* tmpPtr
; int tmpSize
;
1192 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1193 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1196 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1198 _arg0
= new wxString(tmpPtr
, tmpSize
);
1200 if (!PyString_Check(_obj0
)) {
1201 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1204 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1209 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1211 wxPyEndAllowThreads(__tstate
);
1212 if (PyErr_Occurred()) return NULL
;
1214 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1215 _resultobj
= Py_BuildValue("s",_ptemp
);
1218 _resultobj
= Py_None
;
1227 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1228 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1229 PyObject
* _resultobj
;
1231 wxTextDataObject
* _arg0
;
1232 PyObject
* _argo0
= 0;
1233 char *_kwnames
[] = { "self", NULL
};
1236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1247 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1249 wxPyEndAllowThreads(__tstate
);
1250 if (PyErr_Occurred()) return NULL
;
1251 } _resultobj
= Py_BuildValue("i",_result
);
1255 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1256 static PyObject
*_wrap_wxTextDataObject_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1257 PyObject
* _resultobj
;
1259 wxTextDataObject
* _arg0
;
1260 PyObject
* _argo0
= 0;
1261 char *_kwnames
[] = { "self", NULL
};
1264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetText",_kwnames
,&_argo0
))
1267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1275 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1277 wxPyEndAllowThreads(__tstate
);
1278 if (PyErr_Occurred()) return NULL
;
1280 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1288 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1289 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1291 wxTextDataObject
* _arg0
;
1293 PyObject
* _argo0
= 0;
1294 PyObject
* _obj1
= 0;
1295 char *_kwnames
[] = { "self","text", NULL
};
1298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1308 #if PYTHON_API_VERSION >= 1009
1309 char* tmpPtr
; int tmpSize
;
1310 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1311 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1314 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1316 _arg1
= new wxString(tmpPtr
, tmpSize
);
1318 if (!PyString_Check(_obj1
)) {
1319 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1322 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1327 wxTextDataObject_SetText(_arg0
,*_arg1
);
1329 wxPyEndAllowThreads(__tstate
);
1330 if (PyErr_Occurred()) return NULL
;
1331 } Py_INCREF(Py_None
);
1332 _resultobj
= Py_None
;
1340 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1341 wxPyTextDataObject
*src
;
1342 wxTextDataObject
*dest
;
1343 src
= (wxPyTextDataObject
*) ptr
;
1344 dest
= (wxTextDataObject
*) src
;
1345 return (void *) dest
;
1348 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1349 wxPyTextDataObject
*src
;
1350 wxDataObjectSimple
*dest
;
1351 src
= (wxPyTextDataObject
*) ptr
;
1352 dest
= (wxDataObjectSimple
*) src
;
1353 return (void *) dest
;
1356 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1357 wxPyTextDataObject
*src
;
1359 src
= (wxPyTextDataObject
*) ptr
;
1360 dest
= (wxDataObject
*) src
;
1361 return (void *) dest
;
1364 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1365 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1366 PyObject
* _resultobj
;
1367 wxPyTextDataObject
* _result
;
1368 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1369 PyObject
* _obj0
= 0;
1370 char *_kwnames
[] = { "text", NULL
};
1374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1378 #if PYTHON_API_VERSION >= 1009
1379 char* tmpPtr
; int tmpSize
;
1380 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1381 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1384 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1386 _arg0
= new wxString(tmpPtr
, tmpSize
);
1388 if (!PyString_Check(_obj0
)) {
1389 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1392 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1397 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1399 wxPyEndAllowThreads(__tstate
);
1400 if (PyErr_Occurred()) return NULL
;
1402 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1403 _resultobj
= Py_BuildValue("s",_ptemp
);
1406 _resultobj
= Py_None
;
1415 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1416 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1417 PyObject
* _resultobj
;
1418 wxPyTextDataObject
* _arg0
;
1421 PyObject
* _argo0
= 0;
1422 PyObject
* _obj1
= 0;
1423 PyObject
* _obj2
= 0;
1424 char *_kwnames
[] = { "self","self","_class", NULL
};
1427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1444 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1446 wxPyEndAllowThreads(__tstate
);
1447 if (PyErr_Occurred()) return NULL
;
1448 } Py_INCREF(Py_None
);
1449 _resultobj
= Py_None
;
1453 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1454 wxBitmapDataObject
*src
;
1455 wxDataObjectSimple
*dest
;
1456 src
= (wxBitmapDataObject
*) ptr
;
1457 dest
= (wxDataObjectSimple
*) src
;
1458 return (void *) dest
;
1461 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1462 wxBitmapDataObject
*src
;
1464 src
= (wxBitmapDataObject
*) ptr
;
1465 dest
= (wxDataObject
*) src
;
1466 return (void *) dest
;
1469 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1470 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1471 PyObject
* _resultobj
;
1472 wxBitmapDataObject
* _result
;
1473 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1474 PyObject
* _argo0
= 0;
1475 char *_kwnames
[] = { "bitmap", NULL
};
1479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1490 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1492 wxPyEndAllowThreads(__tstate
);
1493 if (PyErr_Occurred()) return NULL
;
1495 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1496 _resultobj
= Py_BuildValue("s",_ptemp
);
1499 _resultobj
= Py_None
;
1504 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1505 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1506 PyObject
* _resultobj
;
1508 wxBitmapDataObject
* _arg0
;
1509 PyObject
* _argo0
= 0;
1510 char *_kwnames
[] = { "self", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1525 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1527 wxPyEndAllowThreads(__tstate
);
1528 if (PyErr_Occurred()) return NULL
;
1529 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1530 _resultobj
= Py_BuildValue("s",_ptemp
);
1534 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1535 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1536 PyObject
* _resultobj
;
1537 wxBitmapDataObject
* _arg0
;
1539 PyObject
* _argo0
= 0;
1540 PyObject
* _argo1
= 0;
1541 char *_kwnames
[] = { "self","bitmap", NULL
};
1544 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1547 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1548 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1549 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1554 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1555 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1561 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1562 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1564 wxPyEndAllowThreads(__tstate
);
1565 if (PyErr_Occurred()) return NULL
;
1566 } Py_INCREF(Py_None
);
1567 _resultobj
= Py_None
;
1571 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1572 wxPyBitmapDataObject
*src
;
1573 wxBitmapDataObject
*dest
;
1574 src
= (wxPyBitmapDataObject
*) ptr
;
1575 dest
= (wxBitmapDataObject
*) src
;
1576 return (void *) dest
;
1579 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1580 wxPyBitmapDataObject
*src
;
1581 wxDataObjectSimple
*dest
;
1582 src
= (wxPyBitmapDataObject
*) ptr
;
1583 dest
= (wxDataObjectSimple
*) src
;
1584 return (void *) dest
;
1587 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1588 wxPyBitmapDataObject
*src
;
1590 src
= (wxPyBitmapDataObject
*) ptr
;
1591 dest
= (wxDataObject
*) src
;
1592 return (void *) dest
;
1595 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1596 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1597 PyObject
* _resultobj
;
1598 wxPyBitmapDataObject
* _result
;
1599 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1600 PyObject
* _argo0
= 0;
1601 char *_kwnames
[] = { "bitmap", NULL
};
1605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1616 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1618 wxPyEndAllowThreads(__tstate
);
1619 if (PyErr_Occurred()) return NULL
;
1621 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1622 _resultobj
= Py_BuildValue("s",_ptemp
);
1625 _resultobj
= Py_None
;
1630 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1631 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1632 PyObject
* _resultobj
;
1633 wxPyBitmapDataObject
* _arg0
;
1636 PyObject
* _argo0
= 0;
1637 PyObject
* _obj1
= 0;
1638 PyObject
* _obj2
= 0;
1639 char *_kwnames
[] = { "self","self","_class", NULL
};
1642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1659 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1661 wxPyEndAllowThreads(__tstate
);
1662 if (PyErr_Occurred()) return NULL
;
1663 } Py_INCREF(Py_None
);
1664 _resultobj
= Py_None
;
1668 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1669 wxFileDataObject
*src
;
1670 wxDataObjectSimple
*dest
;
1671 src
= (wxFileDataObject
*) ptr
;
1672 dest
= (wxDataObjectSimple
*) src
;
1673 return (void *) dest
;
1676 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1677 wxFileDataObject
*src
;
1679 src
= (wxFileDataObject
*) ptr
;
1680 dest
= (wxDataObject
*) src
;
1681 return (void *) dest
;
1684 #define new_wxFileDataObject() (new wxFileDataObject())
1685 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1686 PyObject
* _resultobj
;
1687 wxFileDataObject
* _result
;
1688 char *_kwnames
[] = { NULL
};
1692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1695 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1696 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1698 wxPyEndAllowThreads(__tstate
);
1699 if (PyErr_Occurred()) return NULL
;
1701 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1702 _resultobj
= Py_BuildValue("s",_ptemp
);
1705 _resultobj
= Py_None
;
1710 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1711 const wxArrayString
& strings
= self
->GetFilenames();
1712 return wxArrayString2PyList_helper(strings
);
1714 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1715 PyObject
* _resultobj
;
1717 wxFileDataObject
* _arg0
;
1718 PyObject
* _argo0
= 0;
1719 char *_kwnames
[] = { "self", NULL
};
1722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1733 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1735 wxPyEndAllowThreads(__tstate
);
1736 if (PyErr_Occurred()) return NULL
;
1738 _resultobj
= _result
;
1743 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1744 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1745 PyObject
* _resultobj
;
1746 wxFileDataObject
* _arg0
;
1748 PyObject
* _argo0
= 0;
1749 PyObject
* _obj1
= 0;
1750 char *_kwnames
[] = { "self","filename", NULL
};
1753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1763 #if PYTHON_API_VERSION >= 1009
1764 char* tmpPtr
; int tmpSize
;
1765 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1766 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1769 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1771 _arg1
= new wxString(tmpPtr
, tmpSize
);
1773 if (!PyString_Check(_obj1
)) {
1774 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1777 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1781 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1782 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1784 wxPyEndAllowThreads(__tstate
);
1785 if (PyErr_Occurred()) return NULL
;
1786 } Py_INCREF(Py_None
);
1787 _resultobj
= Py_None
;
1795 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1796 wxCustomDataObject
*src
;
1797 wxDataObjectSimple
*dest
;
1798 src
= (wxCustomDataObject
*) ptr
;
1799 dest
= (wxDataObjectSimple
*) src
;
1800 return (void *) dest
;
1803 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1804 wxCustomDataObject
*src
;
1806 src
= (wxCustomDataObject
*) ptr
;
1807 dest
= (wxDataObject
*) src
;
1808 return (void *) dest
;
1811 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1812 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1813 PyObject
* _resultobj
;
1814 wxCustomDataObject
* _result
;
1815 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1816 PyObject
* _argo0
= 0;
1817 char *_kwnames
[] = { "format", NULL
};
1821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1831 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1832 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1834 wxPyEndAllowThreads(__tstate
);
1835 if (PyErr_Occurred()) return NULL
;
1837 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1838 _resultobj
= Py_BuildValue("s",_ptemp
);
1841 _resultobj
= Py_None
;
1846 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1847 if (PyString_Check(data
)) {
1848 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1851 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1852 PyObject
* _resultobj
;
1853 wxCustomDataObject
* _arg0
;
1855 PyObject
* _argo0
= 0;
1856 PyObject
* _obj1
= 0;
1857 char *_kwnames
[] = { "self","data", NULL
};
1860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1873 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1874 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1876 wxPyEndAllowThreads(__tstate
);
1877 if (PyErr_Occurred()) return NULL
;
1878 } Py_INCREF(Py_None
);
1879 _resultobj
= Py_None
;
1883 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1884 if (PyString_Check(data
)) {
1885 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1889 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1890 PyObject
* _resultobj
;
1892 wxCustomDataObject
* _arg0
;
1894 PyObject
* _argo0
= 0;
1895 PyObject
* _obj1
= 0;
1896 char *_kwnames
[] = { "self","data", NULL
};
1899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1902 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1903 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1904 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1913 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1915 wxPyEndAllowThreads(__tstate
);
1916 if (PyErr_Occurred()) return NULL
;
1917 } _resultobj
= Py_BuildValue("i",_result
);
1921 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1922 static PyObject
*_wrap_wxCustomDataObject_GetSize(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_GetSize",_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_GetSize. Expected _wxCustomDataObject_p.");
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) return NULL
;
1945 } _resultobj
= Py_BuildValue("i",_result
);
1949 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1950 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1952 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1953 PyObject
* _resultobj
;
1955 wxCustomDataObject
* _arg0
;
1956 PyObject
* _argo0
= 0;
1957 char *_kwnames
[] = { "self", NULL
};
1960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1971 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1973 wxPyEndAllowThreads(__tstate
);
1974 if (PyErr_Occurred()) return NULL
;
1976 _resultobj
= _result
;
1981 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1982 wxURLDataObject
*src
;
1983 wxDataObjectComposite
*dest
;
1984 src
= (wxURLDataObject
*) ptr
;
1985 dest
= (wxDataObjectComposite
*) src
;
1986 return (void *) dest
;
1989 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1990 wxURLDataObject
*src
;
1992 src
= (wxURLDataObject
*) ptr
;
1993 dest
= (wxDataObject
*) src
;
1994 return (void *) dest
;
1997 #define new_wxURLDataObject() (new wxURLDataObject())
1998 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1999 PyObject
* _resultobj
;
2000 wxURLDataObject
* _result
;
2001 char *_kwnames
[] = { NULL
};
2005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
2008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2009 _result
= (wxURLDataObject
*)new_wxURLDataObject();
2011 wxPyEndAllowThreads(__tstate
);
2012 if (PyErr_Occurred()) return NULL
;
2014 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
2015 _resultobj
= Py_BuildValue("s",_ptemp
);
2018 _resultobj
= Py_None
;
2023 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
2024 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2025 PyObject
* _resultobj
;
2027 wxURLDataObject
* _arg0
;
2028 PyObject
* _argo0
= 0;
2029 char *_kwnames
[] = { "self", NULL
};
2032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
2035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
2042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2043 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
2045 wxPyEndAllowThreads(__tstate
);
2046 if (PyErr_Occurred()) return NULL
;
2048 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2056 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2057 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2058 PyObject
* _resultobj
;
2059 wxURLDataObject
* _arg0
;
2061 PyObject
* _argo0
= 0;
2062 PyObject
* _obj1
= 0;
2063 char *_kwnames
[] = { "self","url", NULL
};
2066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2076 #if PYTHON_API_VERSION >= 1009
2077 char* tmpPtr
; int tmpSize
;
2078 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2079 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2082 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2084 _arg1
= new wxString(tmpPtr
, tmpSize
);
2086 if (!PyString_Check(_obj1
)) {
2087 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2090 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2094 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2095 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2097 wxPyEndAllowThreads(__tstate
);
2098 if (PyErr_Occurred()) return NULL
;
2099 } Py_INCREF(Py_None
);
2100 _resultobj
= Py_None
;
2108 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2109 wxMetafileDataObject
*src
;
2110 wxDataObjectSimple
*dest
;
2111 src
= (wxMetafileDataObject
*) ptr
;
2112 dest
= (wxDataObjectSimple
*) src
;
2113 return (void *) dest
;
2116 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2117 wxMetafileDataObject
*src
;
2119 src
= (wxMetafileDataObject
*) ptr
;
2120 dest
= (wxDataObject
*) src
;
2121 return (void *) dest
;
2124 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2125 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2126 PyObject
* _resultobj
;
2127 wxMetafileDataObject
* _result
;
2128 char *_kwnames
[] = { NULL
};
2132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2136 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2138 wxPyEndAllowThreads(__tstate
);
2139 if (PyErr_Occurred()) return NULL
;
2141 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2142 _resultobj
= Py_BuildValue("s",_ptemp
);
2145 _resultobj
= Py_None
;
2150 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2151 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2152 PyObject
* _resultobj
;
2153 wxMetafileDataObject
* _arg0
;
2155 PyObject
* _argo0
= 0;
2156 PyObject
* _argo1
= 0;
2157 char *_kwnames
[] = { "self","metafile", NULL
};
2160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2170 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2171 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2177 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2178 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2180 wxPyEndAllowThreads(__tstate
);
2181 if (PyErr_Occurred()) return NULL
;
2182 } Py_INCREF(Py_None
);
2183 _resultobj
= Py_None
;
2187 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2188 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2189 PyObject
* _resultobj
;
2190 wxMetafile
* _result
;
2191 wxMetafileDataObject
* _arg0
;
2192 PyObject
* _argo0
= 0;
2193 char *_kwnames
[] = { "self", NULL
};
2197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2208 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2210 wxPyEndAllowThreads(__tstate
);
2211 if (PyErr_Occurred()) return NULL
;
2212 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2213 _resultobj
= Py_BuildValue("s",_ptemp
);
2217 static void *SwigwxClipboardTowxObject(void *ptr
) {
2220 src
= (wxClipboard
*) ptr
;
2221 dest
= (wxObject
*) src
;
2222 return (void *) dest
;
2225 #define new_wxClipboard() (new wxClipboard())
2226 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2227 PyObject
* _resultobj
;
2228 wxClipboard
* _result
;
2229 char *_kwnames
[] = { NULL
};
2233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2236 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2237 _result
= (wxClipboard
*)new_wxClipboard();
2239 wxPyEndAllowThreads(__tstate
);
2240 if (PyErr_Occurred()) return NULL
;
2242 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2243 _resultobj
= Py_BuildValue("s",_ptemp
);
2246 _resultobj
= Py_None
;
2251 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2252 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2253 PyObject
* _resultobj
;
2255 wxClipboard
* _arg0
;
2256 PyObject
* _argo0
= 0;
2257 char *_kwnames
[] = { "self", NULL
};
2260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2271 _result
= (bool )wxClipboard_Open(_arg0
);
2273 wxPyEndAllowThreads(__tstate
);
2274 if (PyErr_Occurred()) return NULL
;
2275 } _resultobj
= Py_BuildValue("i",_result
);
2279 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2280 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2281 PyObject
* _resultobj
;
2282 wxClipboard
* _arg0
;
2283 PyObject
* _argo0
= 0;
2284 char *_kwnames
[] = { "self", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2297 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2298 wxClipboard_Close(_arg0
);
2300 wxPyEndAllowThreads(__tstate
);
2301 if (PyErr_Occurred()) return NULL
;
2302 } Py_INCREF(Py_None
);
2303 _resultobj
= Py_None
;
2307 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2308 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2309 PyObject
* _resultobj
;
2311 wxClipboard
* _arg0
;
2312 PyObject
* _argo0
= 0;
2313 char *_kwnames
[] = { "self", NULL
};
2316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2326 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2327 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2329 wxPyEndAllowThreads(__tstate
);
2330 if (PyErr_Occurred()) return NULL
;
2331 } _resultobj
= Py_BuildValue("i",_result
);
2335 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2336 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2337 PyObject
* _resultobj
;
2339 wxClipboard
* _arg0
;
2340 wxDataObject
* _arg1
;
2341 PyObject
* _argo0
= 0;
2342 PyObject
* _argo1
= 0;
2343 char *_kwnames
[] = { "self","data", NULL
};
2346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2356 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2357 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2363 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2364 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2366 wxPyEndAllowThreads(__tstate
);
2367 if (PyErr_Occurred()) return NULL
;
2368 } _resultobj
= Py_BuildValue("i",_result
);
2372 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2373 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2374 PyObject
* _resultobj
;
2376 wxClipboard
* _arg0
;
2377 wxDataObject
* _arg1
;
2378 PyObject
* _argo0
= 0;
2379 PyObject
* _argo1
= 0;
2380 char *_kwnames
[] = { "self","data", NULL
};
2383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2393 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2394 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2401 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2403 wxPyEndAllowThreads(__tstate
);
2404 if (PyErr_Occurred()) return NULL
;
2405 } _resultobj
= Py_BuildValue("i",_result
);
2409 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2410 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2411 PyObject
* _resultobj
;
2413 wxClipboard
* _arg0
;
2414 wxDataFormat
* _arg1
;
2415 PyObject
* _argo0
= 0;
2416 PyObject
* _argo1
= 0;
2417 char *_kwnames
[] = { "self","format", NULL
};
2420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2430 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2431 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2438 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2440 wxPyEndAllowThreads(__tstate
);
2441 if (PyErr_Occurred()) return NULL
;
2442 } _resultobj
= Py_BuildValue("i",_result
);
2446 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2447 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2448 PyObject
* _resultobj
;
2450 wxClipboard
* _arg0
;
2451 wxDataObject
* _arg1
;
2452 PyObject
* _argo0
= 0;
2453 PyObject
* _argo1
= 0;
2454 char *_kwnames
[] = { "self","data", NULL
};
2457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2467 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2468 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2475 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2477 wxPyEndAllowThreads(__tstate
);
2478 if (PyErr_Occurred()) return NULL
;
2479 } _resultobj
= Py_BuildValue("i",_result
);
2483 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2484 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2485 PyObject
* _resultobj
;
2486 wxClipboard
* _arg0
;
2487 PyObject
* _argo0
= 0;
2488 char *_kwnames
[] = { "self", NULL
};
2491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 wxClipboard_Clear(_arg0
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) return NULL
;
2506 } Py_INCREF(Py_None
);
2507 _resultobj
= Py_None
;
2511 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2512 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2513 PyObject
* _resultobj
;
2515 wxClipboard
* _arg0
;
2516 PyObject
* _argo0
= 0;
2517 char *_kwnames
[] = { "self", NULL
};
2520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 _result
= (bool )wxClipboard_Flush(_arg0
);
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) return NULL
;
2535 } _resultobj
= Py_BuildValue("i",_result
);
2539 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2540 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2541 PyObject
* _resultobj
;
2542 wxClipboard
* _arg0
;
2543 int _arg1
= (int ) FALSE
;
2544 PyObject
* _argo0
= 0;
2545 char *_kwnames
[] = { "self","primary", NULL
};
2548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2559 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2561 wxPyEndAllowThreads(__tstate
);
2562 if (PyErr_Occurred()) return NULL
;
2563 } Py_INCREF(Py_None
);
2564 _resultobj
= Py_None
;
2568 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2569 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2570 PyObject
* _resultobj
;
2571 wxPyDropSource
* _result
;
2572 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2573 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2574 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2575 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2576 PyObject
* _argo0
= 0;
2577 PyObject
* _argo1
= 0;
2578 PyObject
* _argo2
= 0;
2579 PyObject
* _argo3
= 0;
2580 char *_kwnames
[] = { "win","cursorCopy","cursorMove","cursorStop", NULL
};
2584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2594 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2601 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2602 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2608 if (_argo3
== Py_None
) { _arg3
= NULL
; }
2609 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2616 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2618 wxPyEndAllowThreads(__tstate
);
2619 if (PyErr_Occurred()) return NULL
;
2621 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2622 _resultobj
= Py_BuildValue("s",_ptemp
);
2625 _resultobj
= Py_None
;
2630 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2631 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2632 PyObject
* _resultobj
;
2633 wxPyDropSource
* _arg0
;
2637 PyObject
* _argo0
= 0;
2638 PyObject
* _obj1
= 0;
2639 PyObject
* _obj2
= 0;
2640 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2660 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2662 wxPyEndAllowThreads(__tstate
);
2663 if (PyErr_Occurred()) return NULL
;
2664 } Py_INCREF(Py_None
);
2665 _resultobj
= Py_None
;
2669 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2670 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2671 PyObject
* _resultobj
;
2672 wxPyDropSource
* _arg0
;
2673 PyObject
* _argo0
= 0;
2674 char *_kwnames
[] = { "self", NULL
};
2677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2688 delete_wxPyDropSource(_arg0
);
2690 wxPyEndAllowThreads(__tstate
);
2691 if (PyErr_Occurred()) return NULL
;
2692 } Py_INCREF(Py_None
);
2693 _resultobj
= Py_None
;
2697 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2698 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2699 PyObject
* _resultobj
;
2700 wxPyDropSource
* _arg0
;
2701 wxDataObject
* _arg1
;
2702 PyObject
* _argo0
= 0;
2703 PyObject
* _argo1
= 0;
2704 char *_kwnames
[] = { "self","data", NULL
};
2707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2717 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2724 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2725 wxDropSource_SetData(_arg0
,*_arg1
);
2727 wxPyEndAllowThreads(__tstate
);
2728 if (PyErr_Occurred()) return NULL
;
2729 } Py_INCREF(Py_None
);
2730 _resultobj
= Py_None
;
2734 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2735 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2737 wxDataObject
* _result
;
2738 wxPyDropSource
* _arg0
;
2739 PyObject
* _argo0
= 0;
2740 char *_kwnames
[] = { "self", NULL
};
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2755 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2757 wxPyEndAllowThreads(__tstate
);
2758 if (PyErr_Occurred()) return NULL
;
2760 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2761 _resultobj
= Py_BuildValue("s",_ptemp
);
2764 _resultobj
= Py_None
;
2769 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2770 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2771 PyObject
* _resultobj
;
2772 wxPyDropSource
* _arg0
;
2775 PyObject
* _argo0
= 0;
2776 PyObject
* _argo2
= 0;
2777 char *_kwnames
[] = { "self","res","cursor", NULL
};
2780 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2783 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2784 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2785 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2790 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2791 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2798 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2800 wxPyEndAllowThreads(__tstate
);
2801 if (PyErr_Occurred()) return NULL
;
2802 } Py_INCREF(Py_None
);
2803 _resultobj
= Py_None
;
2807 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2808 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2809 PyObject
* _resultobj
;
2810 wxDragResult _result
;
2811 wxPyDropSource
* _arg0
;
2812 int _arg1
= (int ) FALSE
;
2813 PyObject
* _argo0
= 0;
2814 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2828 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2830 wxPyEndAllowThreads(__tstate
);
2831 if (PyErr_Occurred()) return NULL
;
2832 } _resultobj
= Py_BuildValue("i",_result
);
2836 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2837 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
* _resultobj
;
2840 wxPyDropSource
* _arg0
;
2842 PyObject
* _argo0
= 0;
2843 char *_kwnames
[] = { "self","effect", NULL
};
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2857 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2859 wxPyEndAllowThreads(__tstate
);
2860 if (PyErr_Occurred()) return NULL
;
2861 } _resultobj
= Py_BuildValue("i",_result
);
2865 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2866 wxPyDropTarget
*src
;
2868 src
= (wxPyDropTarget
*) ptr
;
2869 dest
= (wxDropTarget
*) src
;
2870 return (void *) dest
;
2873 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2874 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2876 wxPyDropTarget
* _result
;
2877 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2878 PyObject
* _argo0
= 0;
2879 char *_kwnames
[] = { "dataObject", NULL
};
2883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2894 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2896 wxPyEndAllowThreads(__tstate
);
2897 if (PyErr_Occurred()) return NULL
;
2899 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2900 _resultobj
= Py_BuildValue("s",_ptemp
);
2903 _resultobj
= Py_None
;
2908 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2909 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2910 PyObject
* _resultobj
;
2911 wxPyDropTarget
* _arg0
;
2914 PyObject
* _argo0
= 0;
2915 PyObject
* _obj1
= 0;
2916 PyObject
* _obj2
= 0;
2917 char *_kwnames
[] = { "self","self","_class", NULL
};
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2937 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2939 wxPyEndAllowThreads(__tstate
);
2940 if (PyErr_Occurred()) return NULL
;
2941 } Py_INCREF(Py_None
);
2942 _resultobj
= Py_None
;
2946 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2947 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2948 PyObject
* _resultobj
;
2949 wxPyDropTarget
* _arg0
;
2950 PyObject
* _argo0
= 0;
2951 char *_kwnames
[] = { "self", NULL
};
2954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2965 delete_wxPyDropTarget(_arg0
);
2967 wxPyEndAllowThreads(__tstate
);
2968 if (PyErr_Occurred()) return NULL
;
2969 } Py_INCREF(Py_None
);
2970 _resultobj
= Py_None
;
2974 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2975 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2976 PyObject
* _resultobj
;
2977 wxDataObject
* _result
;
2978 wxPyDropTarget
* _arg0
;
2979 PyObject
* _argo0
= 0;
2980 char *_kwnames
[] = { "self", NULL
};
2984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2995 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2997 wxPyEndAllowThreads(__tstate
);
2998 if (PyErr_Occurred()) return NULL
;
3000 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
3001 _resultobj
= Py_BuildValue("s",_ptemp
);
3004 _resultobj
= Py_None
;
3009 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
3010 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3011 PyObject
* _resultobj
;
3012 wxPyDropTarget
* _arg0
;
3013 wxDataObject
* _arg1
;
3014 PyObject
* _argo0
= 0;
3015 PyObject
* _argo1
= 0;
3016 char *_kwnames
[] = { "self","dataObject", NULL
};
3019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
3022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
3029 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3030 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
3031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
3036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3037 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
3039 wxPyEndAllowThreads(__tstate
);
3040 if (PyErr_Occurred()) return NULL
;
3041 } Py_INCREF(Py_None
);
3042 _resultobj
= Py_None
;
3046 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3047 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3048 PyObject
* _resultobj
;
3049 wxDragResult _result
;
3050 wxPyDropTarget
* _arg0
;
3054 PyObject
* _argo0
= 0;
3055 char *_kwnames
[] = { "self","x","y","def", NULL
};
3058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
3068 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3069 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3071 wxPyEndAllowThreads(__tstate
);
3072 if (PyErr_Occurred()) return NULL
;
3073 } _resultobj
= Py_BuildValue("i",_result
);
3077 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3078 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3079 PyObject
* _resultobj
;
3080 wxDragResult _result
;
3081 wxPyDropTarget
* _arg0
;
3085 PyObject
* _argo0
= 0;
3086 char *_kwnames
[] = { "self","x","y","def", NULL
};
3089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
3099 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3100 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3102 wxPyEndAllowThreads(__tstate
);
3103 if (PyErr_Occurred()) return NULL
;
3104 } _resultobj
= Py_BuildValue("i",_result
);
3108 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3109 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3110 PyObject
* _resultobj
;
3111 wxPyDropTarget
* _arg0
;
3112 PyObject
* _argo0
= 0;
3113 char *_kwnames
[] = { "self", NULL
};
3116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3127 wxPyDropTarget_base_OnLeave(_arg0
);
3129 wxPyEndAllowThreads(__tstate
);
3130 if (PyErr_Occurred()) return NULL
;
3131 } Py_INCREF(Py_None
);
3132 _resultobj
= Py_None
;
3136 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3137 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3138 PyObject
* _resultobj
;
3140 wxPyDropTarget
* _arg0
;
3143 PyObject
* _argo0
= 0;
3144 char *_kwnames
[] = { "self","x","y", NULL
};
3147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3158 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3160 wxPyEndAllowThreads(__tstate
);
3161 if (PyErr_Occurred()) return NULL
;
3162 } _resultobj
= Py_BuildValue("i",_result
);
3166 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3167 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3168 PyObject
* _resultobj
;
3170 wxPyDropTarget
* _arg0
;
3171 PyObject
* _argo0
= 0;
3172 char *_kwnames
[] = { "self", NULL
};
3175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3185 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3186 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3188 wxPyEndAllowThreads(__tstate
);
3189 if (PyErr_Occurred()) return NULL
;
3190 } _resultobj
= Py_BuildValue("i",_result
);
3194 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3195 wxPyTextDropTarget
*src
;
3196 wxPyDropTarget
*dest
;
3197 src
= (wxPyTextDropTarget
*) ptr
;
3198 dest
= (wxPyDropTarget
*) src
;
3199 return (void *) dest
;
3202 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3203 wxPyTextDropTarget
*src
;
3205 src
= (wxPyTextDropTarget
*) ptr
;
3206 dest
= (wxDropTarget
*) src
;
3207 return (void *) dest
;
3210 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3211 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3212 PyObject
* _resultobj
;
3213 wxPyTextDropTarget
* _result
;
3214 char *_kwnames
[] = { NULL
};
3218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3221 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3222 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3224 wxPyEndAllowThreads(__tstate
);
3225 if (PyErr_Occurred()) return NULL
;
3227 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3228 _resultobj
= Py_BuildValue("s",_ptemp
);
3231 _resultobj
= Py_None
;
3236 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3237 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3238 PyObject
* _resultobj
;
3239 wxPyTextDropTarget
* _arg0
;
3242 PyObject
* _argo0
= 0;
3243 PyObject
* _obj1
= 0;
3244 PyObject
* _obj2
= 0;
3245 char *_kwnames
[] = { "self","self","_class", NULL
};
3248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3264 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3265 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3267 wxPyEndAllowThreads(__tstate
);
3268 if (PyErr_Occurred()) return NULL
;
3269 } Py_INCREF(Py_None
);
3270 _resultobj
= Py_None
;
3274 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3275 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3276 PyObject
* _resultobj
;
3277 wxDragResult _result
;
3278 wxPyTextDropTarget
* _arg0
;
3282 PyObject
* _argo0
= 0;
3283 char *_kwnames
[] = { "self","x","y","def", NULL
};
3286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3296 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3297 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3299 wxPyEndAllowThreads(__tstate
);
3300 if (PyErr_Occurred()) return NULL
;
3301 } _resultobj
= Py_BuildValue("i",_result
);
3305 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3306 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3307 PyObject
* _resultobj
;
3308 wxDragResult _result
;
3309 wxPyTextDropTarget
* _arg0
;
3313 PyObject
* _argo0
= 0;
3314 char *_kwnames
[] = { "self","x","y","def", NULL
};
3317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3328 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3330 wxPyEndAllowThreads(__tstate
);
3331 if (PyErr_Occurred()) return NULL
;
3332 } _resultobj
= Py_BuildValue("i",_result
);
3336 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3337 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3338 PyObject
* _resultobj
;
3339 wxPyTextDropTarget
* _arg0
;
3340 PyObject
* _argo0
= 0;
3341 char *_kwnames
[] = { "self", NULL
};
3344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3355 wxTextDropTarget_base_OnLeave(_arg0
);
3357 wxPyEndAllowThreads(__tstate
);
3358 if (PyErr_Occurred()) return NULL
;
3359 } Py_INCREF(Py_None
);
3360 _resultobj
= Py_None
;
3364 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3365 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3366 PyObject
* _resultobj
;
3368 wxPyTextDropTarget
* _arg0
;
3371 PyObject
* _argo0
= 0;
3372 char *_kwnames
[] = { "self","x","y", NULL
};
3375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3386 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3388 wxPyEndAllowThreads(__tstate
);
3389 if (PyErr_Occurred()) return NULL
;
3390 } _resultobj
= Py_BuildValue("i",_result
);
3394 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3395 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3396 PyObject
* _resultobj
;
3397 wxDragResult _result
;
3398 wxPyTextDropTarget
* _arg0
;
3402 PyObject
* _argo0
= 0;
3403 char *_kwnames
[] = { "self","x","y","def", NULL
};
3406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3416 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3417 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3419 wxPyEndAllowThreads(__tstate
);
3420 if (PyErr_Occurred()) return NULL
;
3421 } _resultobj
= Py_BuildValue("i",_result
);
3425 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3426 wxPyFileDropTarget
*src
;
3427 wxPyDropTarget
*dest
;
3428 src
= (wxPyFileDropTarget
*) ptr
;
3429 dest
= (wxPyDropTarget
*) src
;
3430 return (void *) dest
;
3433 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3434 wxPyFileDropTarget
*src
;
3436 src
= (wxPyFileDropTarget
*) ptr
;
3437 dest
= (wxDropTarget
*) src
;
3438 return (void *) dest
;
3441 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3442 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3443 PyObject
* _resultobj
;
3444 wxPyFileDropTarget
* _result
;
3445 char *_kwnames
[] = { NULL
};
3449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3453 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3455 wxPyEndAllowThreads(__tstate
);
3456 if (PyErr_Occurred()) return NULL
;
3458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3459 _resultobj
= Py_BuildValue("s",_ptemp
);
3462 _resultobj
= Py_None
;
3467 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3468 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3469 PyObject
* _resultobj
;
3470 wxPyFileDropTarget
* _arg0
;
3473 PyObject
* _argo0
= 0;
3474 PyObject
* _obj1
= 0;
3475 PyObject
* _obj2
= 0;
3476 char *_kwnames
[] = { "self","self","_class", NULL
};
3479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3495 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3496 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3498 wxPyEndAllowThreads(__tstate
);
3499 if (PyErr_Occurred()) return NULL
;
3500 } Py_INCREF(Py_None
);
3501 _resultobj
= Py_None
;
3505 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3506 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3507 PyObject
* _resultobj
;
3508 wxDragResult _result
;
3509 wxPyFileDropTarget
* _arg0
;
3513 PyObject
* _argo0
= 0;
3514 char *_kwnames
[] = { "self","x","y","def", NULL
};
3517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3527 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3528 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3530 wxPyEndAllowThreads(__tstate
);
3531 if (PyErr_Occurred()) return NULL
;
3532 } _resultobj
= Py_BuildValue("i",_result
);
3536 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3537 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3538 PyObject
* _resultobj
;
3539 wxDragResult _result
;
3540 wxPyFileDropTarget
* _arg0
;
3544 PyObject
* _argo0
= 0;
3545 char *_kwnames
[] = { "self","x","y","def", NULL
};
3548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3558 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3559 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3561 wxPyEndAllowThreads(__tstate
);
3562 if (PyErr_Occurred()) return NULL
;
3563 } _resultobj
= Py_BuildValue("i",_result
);
3567 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3568 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3569 PyObject
* _resultobj
;
3570 wxPyFileDropTarget
* _arg0
;
3571 PyObject
* _argo0
= 0;
3572 char *_kwnames
[] = { "self", NULL
};
3575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3586 wxFileDropTarget_base_OnLeave(_arg0
);
3588 wxPyEndAllowThreads(__tstate
);
3589 if (PyErr_Occurred()) return NULL
;
3590 } Py_INCREF(Py_None
);
3591 _resultobj
= Py_None
;
3595 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3596 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3597 PyObject
* _resultobj
;
3599 wxPyFileDropTarget
* _arg0
;
3602 PyObject
* _argo0
= 0;
3603 char *_kwnames
[] = { "self","x","y", NULL
};
3606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3617 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3619 wxPyEndAllowThreads(__tstate
);
3620 if (PyErr_Occurred()) return NULL
;
3621 } _resultobj
= Py_BuildValue("i",_result
);
3625 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3626 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3627 PyObject
* _resultobj
;
3628 wxDragResult _result
;
3629 wxPyFileDropTarget
* _arg0
;
3633 PyObject
* _argo0
= 0;
3634 char *_kwnames
[] = { "self","x","y","def", NULL
};
3637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3648 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3650 wxPyEndAllowThreads(__tstate
);
3651 if (PyErr_Occurred()) return NULL
;
3652 } _resultobj
= Py_BuildValue("i",_result
);
3656 static PyMethodDef clip_dndcMethods
[] = {
3657 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3675 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3676 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3677 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3678 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3679 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3680 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3681 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3682 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3683 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3684 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3685 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3686 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3687 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3688 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3689 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3690 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3691 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3692 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3693 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3694 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3695 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3696 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3697 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3698 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3699 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3700 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3701 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3702 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3703 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3704 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3705 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3706 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3707 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3708 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3709 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3710 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3711 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3712 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3713 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3714 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3715 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3716 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3717 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3718 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3719 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3720 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3721 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3722 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3723 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3724 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3725 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3726 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3727 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3728 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3729 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3730 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3731 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3732 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3733 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3734 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3735 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3736 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3737 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3738 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3739 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3740 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3741 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3742 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3743 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3744 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3745 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3746 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3747 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3754 * This table is used by the pointer type-checker
3756 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3757 { "_signed_long","_long",0},
3758 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3759 { "_wxPrintQuality","_wxCoord",0},
3760 { "_wxPrintQuality","_int",0},
3761 { "_wxPrintQuality","_signed_int",0},
3762 { "_wxPrintQuality","_unsigned_int",0},
3763 { "_wxPrintQuality","_wxWindowID",0},
3764 { "_wxPrintQuality","_uint",0},
3765 { "_wxPrintQuality","_EBool",0},
3766 { "_wxPrintQuality","_size_t",0},
3767 { "_wxPrintQuality","_time_t",0},
3768 { "_byte","_unsigned_char",0},
3769 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3770 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3771 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3772 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3773 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3774 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3775 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3776 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3777 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3778 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3779 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3780 { "_long","_unsigned_long",0},
3781 { "_long","_signed_long",0},
3782 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3783 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3784 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3785 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3786 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3787 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3788 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3789 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3790 { "_size_t","_wxCoord",0},
3791 { "_size_t","_wxPrintQuality",0},
3792 { "_size_t","_time_t",0},
3793 { "_size_t","_unsigned_int",0},
3794 { "_size_t","_int",0},
3795 { "_size_t","_wxWindowID",0},
3796 { "_size_t","_uint",0},
3797 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3798 { "_uint","_wxCoord",0},
3799 { "_uint","_wxPrintQuality",0},
3800 { "_uint","_time_t",0},
3801 { "_uint","_size_t",0},
3802 { "_uint","_unsigned_int",0},
3803 { "_uint","_int",0},
3804 { "_uint","_wxWindowID",0},
3805 { "_wxChar","_char",0},
3806 { "_char","_wxChar",0},
3807 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3808 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3809 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3810 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3811 { "_EBool","_wxCoord",0},
3812 { "_EBool","_wxPrintQuality",0},
3813 { "_EBool","_signed_int",0},
3814 { "_EBool","_int",0},
3815 { "_EBool","_wxWindowID",0},
3816 { "_unsigned_long","_long",0},
3817 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3818 { "_signed_int","_wxCoord",0},
3819 { "_signed_int","_wxPrintQuality",0},
3820 { "_signed_int","_EBool",0},
3821 { "_signed_int","_wxWindowID",0},
3822 { "_signed_int","_int",0},
3823 { "_WXTYPE","_short",0},
3824 { "_WXTYPE","_signed_short",0},
3825 { "_WXTYPE","_unsigned_short",0},
3826 { "_unsigned_short","_WXTYPE",0},
3827 { "_unsigned_short","_short",0},
3828 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3829 { "_signed_short","_WXTYPE",0},
3830 { "_signed_short","_short",0},
3831 { "_unsigned_char","_byte",0},
3832 { "_unsigned_int","_wxCoord",0},
3833 { "_unsigned_int","_wxPrintQuality",0},
3834 { "_unsigned_int","_time_t",0},
3835 { "_unsigned_int","_size_t",0},
3836 { "_unsigned_int","_uint",0},
3837 { "_unsigned_int","_wxWindowID",0},
3838 { "_unsigned_int","_int",0},
3839 { "_short","_WXTYPE",0},
3840 { "_short","_unsigned_short",0},
3841 { "_short","_signed_short",0},
3842 { "_wxWindowID","_wxCoord",0},
3843 { "_wxWindowID","_wxPrintQuality",0},
3844 { "_wxWindowID","_time_t",0},
3845 { "_wxWindowID","_size_t",0},
3846 { "_wxWindowID","_EBool",0},
3847 { "_wxWindowID","_uint",0},
3848 { "_wxWindowID","_int",0},
3849 { "_wxWindowID","_signed_int",0},
3850 { "_wxWindowID","_unsigned_int",0},
3851 { "_int","_wxCoord",0},
3852 { "_int","_wxPrintQuality",0},
3853 { "_int","_time_t",0},
3854 { "_int","_size_t",0},
3855 { "_int","_EBool",0},
3856 { "_int","_uint",0},
3857 { "_int","_wxWindowID",0},
3858 { "_int","_unsigned_int",0},
3859 { "_int","_signed_int",0},
3860 { "_time_t","_wxCoord",0},
3861 { "_time_t","_wxPrintQuality",0},
3862 { "_time_t","_unsigned_int",0},
3863 { "_time_t","_int",0},
3864 { "_time_t","_wxWindowID",0},
3865 { "_time_t","_uint",0},
3866 { "_time_t","_size_t",0},
3867 { "_wxCoord","_int",0},
3868 { "_wxCoord","_signed_int",0},
3869 { "_wxCoord","_unsigned_int",0},
3870 { "_wxCoord","_wxWindowID",0},
3871 { "_wxCoord","_uint",0},
3872 { "_wxCoord","_EBool",0},
3873 { "_wxCoord","_size_t",0},
3874 { "_wxCoord","_time_t",0},
3875 { "_wxCoord","_wxPrintQuality",0},
3876 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3877 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3878 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3881 static PyObject
*SWIG_globals
;
3885 SWIGEXPORT(void) initclip_dndc() {
3887 SWIG_globals
= SWIG_newvarlink();
3888 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3889 d
= PyModule_GetDict(m
);
3890 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3891 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3892 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3893 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3894 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3895 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3896 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3897 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3898 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3899 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3900 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3901 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3902 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3903 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3904 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3905 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3906 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3907 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3908 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3909 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3910 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3911 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3912 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3913 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3914 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3915 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3916 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3917 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3920 wxPyTheClipboard
= wxTheClipboard
;
3921 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3922 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3923 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3924 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3925 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3926 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3929 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3930 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);