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
);
89 // An alternate constructor...
90 wxDataFormat
* wxCustomDataFormat(const wxString
&id
) {
91 return new wxDataFormat(id
);
94 wxDataFormat wxPyFormatInvalid
;
95 // Create a new class for wxPython to use
96 class wxPyDataObjectSimple
: public wxDataObjectSimple
{
98 wxPyDataObjectSimple(const wxDataFormat
& format
= wxPyFormatInvalid
)
99 : wxDataObjectSimple(format
) {}
101 DEC_PYCALLBACK_SIZET_(GetDataSize
);
102 bool GetDataHere(void *buf
);
103 bool SetData(size_t len
, const void *buf
);
107 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple
, wxDataObjectSimple
, GetDataSize
);
109 bool wxPyDataObjectSimple::GetDataHere(void *buf
) {
110 // We need to get the data for this object and write it to buf. I think
111 // the best way to do this for wxPython is to have the Python method
112 // return either a string or None and then act appropriately with the
116 wxPyBeginBlockThreads();
117 if (m_myInst
.findCallback("GetDataHere")) {
119 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
121 rval
= (ro
!= Py_None
&& PyString_Check(ro
));
123 memcpy(buf
, PyString_AsString(ro
), PyString_Size(ro
));
127 wxPyEndBlockThreads();
131 bool wxPyDataObjectSimple::SetData(size_t len
, const void *buf
) {
132 // For this one we simply need to make a string from buf and len
133 // and send it to the Python method.
135 wxPyBeginBlockThreads();
136 if (m_myInst
.findCallback("SetData")) {
137 PyObject
* data
= PyString_FromStringAndSize((char*)buf
, len
);
138 rval
= m_myInst
.callCallback(Py_BuildValue("(O)", data
));
141 wxPyEndBlockThreads();
144 // Create a new class for wxPython to use
145 class wxPyTextDataObject
: public wxTextDataObject
{
147 wxPyTextDataObject(const wxString
& text
= wxEmptyString
)
148 : wxTextDataObject(text
) {}
150 DEC_PYCALLBACK_SIZET_(GetTextLength
);
151 DEC_PYCALLBACK_STRING_(GetText
);
152 DEC_PYCALLBACK__STRING(SetText
);
156 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject
, wxTextDataObject
, GetTextLength
);
157 IMP_PYCALLBACK_STRING_(wxPyTextDataObject
, wxTextDataObject
, GetText
);
158 IMP_PYCALLBACK__STRING(wxPyTextDataObject
, wxTextDataObject
, SetText
);
160 // Create a new class for wxPython to use
161 class wxPyBitmapDataObject
: public wxBitmapDataObject
{
163 wxPyBitmapDataObject(const wxBitmap
& bitmap
= wxNullBitmap
)
164 : wxBitmapDataObject(bitmap
) {}
166 wxBitmap
GetBitmap();
167 void SetBitmap(const wxBitmap
& bitmap
);
171 wxBitmap
wxPyBitmapDataObject::GetBitmap() {
172 wxBitmap
* rval
= &wxNullBitmap
;
173 wxPyBeginBlockThreads();
174 if (m_myInst
.findCallback("GetBitmap")) {
177 ro
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
179 if (!SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxBitmap_p"))
184 wxPyEndBlockThreads();
188 void wxPyBitmapDataObject::SetBitmap(const wxBitmap
& bitmap
) {
189 wxPyBeginBlockThreads();
190 if (m_myInst
.findCallback("SetBitmap")) {
191 m_myInst
.callCallback(Py_BuildValue("(O)",
192 wxPyConstructObject((void*)&bitmap
, "wxBitmap")));
194 wxPyEndBlockThreads();
197 #include <wx/metafile.h>
199 // See below in the init function...
200 wxClipboard
* wxPyTheClipboard
;
202 class wxPyDropSource
: public wxDropSource
{
205 wxPyDropSource(wxWindow
*win
= NULL
,
206 const wxCursor
&cursorCopy
= wxNullCursor
,
207 const wxCursor
&cursorMove
= wxNullCursor
,
208 const wxCursor
&cursorStop
= wxNullCursor
)
209 : wxDropSource(win
, cursorCopy
, cursorMove
, cursorStop
) {}
211 wxPyDropSource(wxWindow
*win
= NULL
,
212 const wxIcon
&go
= wxNullIcon
)
213 : wxDropSource(win
, go
) {}
215 ~wxPyDropSource() { }
217 DEC_PYCALLBACK_BOOL_DR(GiveFeedback
);
221 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource
, wxDropSource
, GiveFeedback
);
224 class wxPyDropTarget
: public wxDropTarget
{
226 wxPyDropTarget(wxDataObject
*dataObject
= NULL
)
227 : wxDropTarget(dataObject
) {}
229 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
230 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
232 DEC_PYCALLBACK__(OnLeave
);
233 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
234 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
235 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData
);
236 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
241 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
242 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
244 IMP_PYCALLBACK__(wxPyDropTarget
, wxDropTarget
, OnLeave
);
245 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnEnter
);
246 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget
, wxDropTarget
, OnDragOver
);
247 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget
, wxDropTarget
, OnData
);
248 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget
, wxDropTarget
, OnDrop
);
251 class wxPyTextDropTarget
: public wxTextDropTarget
{
253 wxPyTextDropTarget() {}
255 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText
);
257 DEC_PYCALLBACK__(OnLeave
);
258 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
259 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
260 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
261 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
266 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget
, wxTextDropTarget
, OnDropText
);
267 IMP_PYCALLBACK__(wxPyTextDropTarget
, wxTextDropTarget
, OnLeave
);
268 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnEnter
);
269 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnDragOver
);
270 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget
, wxTextDropTarget
, OnData
);
271 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget
, wxTextDropTarget
, OnDrop
);
274 class wxPyFileDropTarget
: public wxFileDropTarget
{
276 wxPyFileDropTarget() {}
278 virtual bool OnDropFiles(wxCoord x
, wxCoord y
, const wxArrayString
& filenames
);
280 DEC_PYCALLBACK__(OnLeave
);
281 DEC_PYCALLBACK_DR_2WXCDR(OnEnter
);
282 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver
);
283 DEC_PYCALLBACK_DR_2WXCDR(OnData
);
284 DEC_PYCALLBACK_BOOL_INTINT(OnDrop
);
289 bool wxPyFileDropTarget::OnDropFiles(wxCoord x
, wxCoord y
,
290 const wxArrayString
& filenames
) {
292 wxPyBeginBlockThreads();
293 PyObject
* list
= wxArrayString2PyList_helper(filenames
);
294 if (m_myInst
.findCallback("OnDropFiles"))
295 rval
= m_myInst
.callCallback(Py_BuildValue("(iiO)",x
,y
,list
));
297 wxPyEndBlockThreads();
303 IMP_PYCALLBACK__(wxPyFileDropTarget
, wxFileDropTarget
, OnLeave
);
304 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnEnter
);
305 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnDragOver
);
306 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget
, wxFileDropTarget
, OnData
);
307 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget
, wxFileDropTarget
, OnDrop
);
312 static PyObject
*_wrap_wxCustomDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
313 PyObject
* _resultobj
;
314 wxDataFormat
* _result
;
316 PyObject
* _obj0
= 0;
317 char *_kwnames
[] = { "id", NULL
};
321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataFormat",_kwnames
,&_obj0
))
324 _arg0
= wxString_in_helper(_obj0
);
329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
330 _result
= (wxDataFormat
*)wxCustomDataFormat(*_arg0
);
332 wxPyEndAllowThreads(__tstate
);
333 if (PyErr_Occurred()) return NULL
;
335 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
336 _resultobj
= Py_BuildValue("s",_ptemp
);
339 _resultobj
= Py_None
;
348 static int _wrap_wxPyFormatInvalid_set(PyObject
*val
) {
350 PyErr_SetString(PyExc_TypeError
,"Variable wxFormatInvalid is read-only.");
354 static PyObject
*_wrap_wxPyFormatInvalid_get() {
358 SWIG_MakePtr(ptemp
,(char *) &wxPyFormatInvalid
,"_wxDataFormat_p");
359 pyobj
= PyString_FromString(ptemp
);
363 static int _wrap_wxPyTheClipboard_set(PyObject
*val
) {
365 PyErr_SetString(PyExc_TypeError
,"Variable wxTheClipboard is read-only.");
369 static PyObject
*_wrap_wxPyTheClipboard_get() {
373 SWIG_MakePtr(ptemp
, (char *) wxPyTheClipboard
,"_wxClipboard_p");
374 pyobj
= PyString_FromString(ptemp
);
378 static PyObject
*_wrap_wxIsDragResultOk(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
379 PyObject
* _resultobj
;
382 char *_kwnames
[] = { "res", NULL
};
385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxIsDragResultOk",_kwnames
,&_arg0
))
388 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
389 _result
= (bool )wxIsDragResultOk(_arg0
);
391 wxPyEndAllowThreads(__tstate
);
392 if (PyErr_Occurred()) return NULL
;
393 } _resultobj
= Py_BuildValue("i",_result
);
397 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
398 static PyObject
*_wrap_new_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
399 PyObject
* _resultobj
;
400 wxDataFormat
* _result
;
401 wxDataFormatId _arg0
;
402 char *_kwnames
[] = { "type", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:new_wxDataFormat",_kwnames
,&_arg0
))
409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
410 _result
= (wxDataFormat
*)new_wxDataFormat(_arg0
);
412 wxPyEndAllowThreads(__tstate
);
413 if (PyErr_Occurred()) return NULL
;
415 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
416 _resultobj
= Py_BuildValue("s",_ptemp
);
419 _resultobj
= Py_None
;
424 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
425 static PyObject
*_wrap_delete_wxDataFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
426 PyObject
* _resultobj
;
427 wxDataFormat
* _arg0
;
428 PyObject
* _argo0
= 0;
429 char *_kwnames
[] = { "self", NULL
};
432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataFormat",_kwnames
,&_argo0
))
435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
442 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
443 delete_wxDataFormat(_arg0
);
445 wxPyEndAllowThreads(__tstate
);
446 if (PyErr_Occurred()) return NULL
;
447 } Py_INCREF(Py_None
);
448 _resultobj
= Py_None
;
452 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
453 static PyObject
*_wrap_wxDataFormat_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
454 PyObject
* _resultobj
;
455 wxDataFormat
* _arg0
;
456 wxDataFormatId _arg1
;
457 PyObject
* _argo0
= 0;
458 char *_kwnames
[] = { "self","format", NULL
};
461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDataFormat_SetType",_kwnames
,&_argo0
,&_arg1
))
464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
471 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
472 wxDataFormat_SetType(_arg0
,_arg1
);
474 wxPyEndAllowThreads(__tstate
);
475 if (PyErr_Occurred()) return NULL
;
476 } Py_INCREF(Py_None
);
477 _resultobj
= Py_None
;
481 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
482 static PyObject
*_wrap_wxDataFormat_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
483 PyObject
* _resultobj
;
484 wxDataFormatId _result
;
485 wxDataFormat
* _arg0
;
486 PyObject
* _argo0
= 0;
487 char *_kwnames
[] = { "self", NULL
};
490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetType",_kwnames
,&_argo0
))
493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
501 _result
= (wxDataFormatId
)wxDataFormat_GetType(_arg0
);
503 wxPyEndAllowThreads(__tstate
);
504 if (PyErr_Occurred()) return NULL
;
505 } _resultobj
= Py_BuildValue("i",_result
);
509 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
510 static PyObject
*_wrap_wxDataFormat_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
511 PyObject
* _resultobj
;
513 wxDataFormat
* _arg0
;
514 PyObject
* _argo0
= 0;
515 char *_kwnames
[] = { "self", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataFormat_GetId",_kwnames
,&_argo0
))
521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
529 _result
= new wxString (wxDataFormat_GetId(_arg0
));
531 wxPyEndAllowThreads(__tstate
);
532 if (PyErr_Occurred()) return NULL
;
535 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
537 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
546 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
547 static PyObject
*_wrap_wxDataFormat_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
548 PyObject
* _resultobj
;
549 wxDataFormat
* _arg0
;
551 PyObject
* _argo0
= 0;
552 char *_kwnames
[] = { "self","format", NULL
};
555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Os:wxDataFormat_SetId",_kwnames
,&_argo0
,&_arg1
))
558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
566 wxDataFormat_SetId(_arg0
,_arg1
);
568 wxPyEndAllowThreads(__tstate
);
569 if (PyErr_Occurred()) return NULL
;
570 } Py_INCREF(Py_None
);
571 _resultobj
= Py_None
;
575 #define delete_wxDataObject(_swigobj) (delete _swigobj)
576 static PyObject
*_wrap_delete_wxDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
577 PyObject
* _resultobj
;
578 wxDataObject
* _arg0
;
579 PyObject
* _argo0
= 0;
580 char *_kwnames
[] = { "self", NULL
};
583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDataObject",_kwnames
,&_argo0
))
586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
594 delete_wxDataObject(_arg0
);
596 wxPyEndAllowThreads(__tstate
);
597 if (PyErr_Occurred()) return NULL
;
598 } Py_INCREF(Py_None
);
599 _resultobj
= Py_None
;
603 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
604 static PyObject
*_wrap_wxDataObject_GetPreferredFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
606 wxDataFormat
* _result
;
607 wxDataObject
* _arg0
;
608 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
609 PyObject
* _argo0
= 0;
610 char *_kwnames
[] = { "self","dir", NULL
};
614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetPreferredFormat",_kwnames
,&_argo0
,&_arg1
))
617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
625 _result
= new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0
,_arg1
));
627 wxPyEndAllowThreads(__tstate
);
628 if (PyErr_Occurred()) return NULL
;
629 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDataFormat_p");
630 _resultobj
= Py_BuildValue("s",_ptemp
);
634 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
635 static PyObject
*_wrap_wxDataObject_GetFormatCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
636 PyObject
* _resultobj
;
638 wxDataObject
* _arg0
;
639 wxDataObject::Direction _arg1
= (wxDataObject::Direction
) wxDataObject::Get
;
640 PyObject
* _argo0
= 0;
641 char *_kwnames
[] = { "self","dir", NULL
};
644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDataObject_GetFormatCount",_kwnames
,&_argo0
,&_arg1
))
647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
655 _result
= (size_t )wxDataObject_GetFormatCount(_arg0
,_arg1
);
657 wxPyEndAllowThreads(__tstate
);
658 if (PyErr_Occurred()) return NULL
;
659 } _resultobj
= Py_BuildValue("i",_result
);
663 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
664 static PyObject
*_wrap_wxDataObject_GetAllFormats(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
665 PyObject
* _resultobj
;
666 wxDataObject
* _arg0
;
667 wxDataFormat
* _arg1
;
668 wxDataObject::Direction _arg2
= (wxDataObject::Direction
) wxDataObject::Get
;
669 PyObject
* _argo0
= 0;
670 PyObject
* _argo1
= 0;
671 char *_kwnames
[] = { "self","formats","dir", NULL
};
674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObject_GetAllFormats",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
684 if (_argo1
== Py_None
) { _arg1
= NULL
; }
685 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
691 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
692 wxDataObject_GetAllFormats(_arg0
,_arg1
,_arg2
);
694 wxPyEndAllowThreads(__tstate
);
695 if (PyErr_Occurred()) return NULL
;
696 } Py_INCREF(Py_None
);
697 _resultobj
= Py_None
;
701 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
702 static PyObject
*_wrap_wxDataObject_GetDataSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
703 PyObject
* _resultobj
;
705 wxDataObject
* _arg0
;
706 wxDataFormat
* _arg1
;
707 PyObject
* _argo0
= 0;
708 PyObject
* _argo1
= 0;
709 char *_kwnames
[] = { "self","format", NULL
};
712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_GetDataSize",_kwnames
,&_argo0
,&_argo1
))
715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
722 if (_argo1
== Py_None
) { _arg1
= NULL
; }
723 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
730 _result
= (size_t )wxDataObject_GetDataSize(_arg0
,*_arg1
);
732 wxPyEndAllowThreads(__tstate
);
733 if (PyErr_Occurred()) return NULL
;
734 } _resultobj
= Py_BuildValue("i",_result
);
738 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
739 static PyObject
*_wrap_wxDataObject_GetDataHere(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
740 PyObject
* _resultobj
;
742 wxDataObject
* _arg0
;
743 wxDataFormat
* _arg1
;
745 PyObject
* _argo0
= 0;
746 PyObject
* _argo1
= 0;
747 PyObject
* _argo2
= 0;
748 char *_kwnames
[] = { "self","format","buf", NULL
};
751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxDataObject_GetDataHere",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
761 if (_argo1
== Py_None
) { _arg1
= NULL
; }
762 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
768 if (_argo2
== Py_None
) { _arg2
= NULL
; }
769 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,(char *) 0 )) {
770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
776 _result
= (bool )wxDataObject_GetDataHere(_arg0
,*_arg1
,_arg2
);
778 wxPyEndAllowThreads(__tstate
);
779 if (PyErr_Occurred()) return NULL
;
780 } _resultobj
= Py_BuildValue("i",_result
);
784 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
785 static PyObject
*_wrap_wxDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
786 PyObject
* _resultobj
;
788 wxDataObject
* _arg0
;
789 wxDataFormat
* _arg1
;
792 PyObject
* _argo0
= 0;
793 PyObject
* _argo1
= 0;
794 PyObject
* _argo3
= 0;
795 char *_kwnames
[] = { "self","format","len","buf", NULL
};
798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOiO:wxDataObject_SetData",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_argo3
))
801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
808 if (_argo1
== Py_None
) { _arg1
= NULL
; }
809 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
810 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
815 if (_argo3
== Py_None
) { _arg3
= NULL
; }
816 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,(char *) 0 )) {
817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
823 _result
= (bool )wxDataObject_SetData(_arg0
,*_arg1
,_arg2
,_arg3
);
825 wxPyEndAllowThreads(__tstate
);
826 if (PyErr_Occurred()) return NULL
;
827 } _resultobj
= Py_BuildValue("i",_result
);
831 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
832 static PyObject
*_wrap_wxDataObject_IsSupportedFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
833 PyObject
* _resultobj
;
835 wxDataObject
* _arg0
;
836 wxDataFormat
* _arg1
;
837 PyObject
* _argo0
= 0;
838 PyObject
* _argo1
= 0;
839 char *_kwnames
[] = { "self","format", NULL
};
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObject_IsSupportedFormat",_kwnames
,&_argo0
,&_argo1
))
845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
852 if (_argo1
== Py_None
) { _arg1
= NULL
; }
853 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
860 _result
= (bool )wxDataObject_IsSupportedFormat(_arg0
,*_arg1
);
862 wxPyEndAllowThreads(__tstate
);
863 if (PyErr_Occurred()) return NULL
;
864 } _resultobj
= Py_BuildValue("i",_result
);
868 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr
) {
869 wxDataObjectSimple
*src
;
871 src
= (wxDataObjectSimple
*) ptr
;
872 dest
= (wxDataObject
*) src
;
873 return (void *) dest
;
876 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
877 static PyObject
*_wrap_new_wxDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
878 PyObject
* _resultobj
;
879 wxDataObjectSimple
* _result
;
880 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
881 PyObject
* _argo0
= 0;
882 char *_kwnames
[] = { "format", NULL
};
886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxDataObjectSimple",_kwnames
,&_argo0
))
889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
896 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
897 _result
= (wxDataObjectSimple
*)new_wxDataObjectSimple(*_arg0
);
899 wxPyEndAllowThreads(__tstate
);
900 if (PyErr_Occurred()) return NULL
;
902 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectSimple_p");
903 _resultobj
= Py_BuildValue("s",_ptemp
);
906 _resultobj
= Py_None
;
911 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
912 static PyObject
*_wrap_wxDataObjectSimple_GetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
913 PyObject
* _resultobj
;
914 wxDataFormat
* _result
;
915 wxDataObjectSimple
* _arg0
;
916 PyObject
* _argo0
= 0;
917 char *_kwnames
[] = { "self", NULL
};
921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDataObjectSimple_GetFormat",_kwnames
,&_argo0
))
924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
932 const wxDataFormat
& _result_ref
= wxDataObjectSimple_GetFormat(_arg0
);
933 _result
= (wxDataFormat
*) &_result_ref
;
935 wxPyEndAllowThreads(__tstate
);
936 if (PyErr_Occurred()) return NULL
;
938 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataFormat_p");
939 _resultobj
= Py_BuildValue("s",_ptemp
);
942 _resultobj
= Py_None
;
947 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
948 static PyObject
*_wrap_wxDataObjectSimple_SetFormat(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
949 PyObject
* _resultobj
;
950 wxDataObjectSimple
* _arg0
;
951 wxDataFormat
* _arg1
;
952 PyObject
* _argo0
= 0;
953 PyObject
* _argo1
= 0;
954 char *_kwnames
[] = { "self","format", NULL
};
957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDataObjectSimple_SetFormat",_kwnames
,&_argo0
,&_argo1
))
960 if (_argo0
== Py_None
) { _arg0
= NULL
; }
961 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectSimple_p")) {
962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
967 if (_argo1
== Py_None
) { _arg1
= NULL
; }
968 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
974 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
975 wxDataObjectSimple_SetFormat(_arg0
,*_arg1
);
977 wxPyEndAllowThreads(__tstate
);
978 if (PyErr_Occurred()) return NULL
;
979 } Py_INCREF(Py_None
);
980 _resultobj
= Py_None
;
984 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr
) {
985 wxPyDataObjectSimple
*src
;
986 wxDataObjectSimple
*dest
;
987 src
= (wxPyDataObjectSimple
*) ptr
;
988 dest
= (wxDataObjectSimple
*) src
;
989 return (void *) dest
;
992 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr
) {
993 wxPyDataObjectSimple
*src
;
995 src
= (wxPyDataObjectSimple
*) ptr
;
996 dest
= (wxDataObject
*) src
;
997 return (void *) dest
;
1000 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1001 static PyObject
*_wrap_new_wxPyDataObjectSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1002 PyObject
* _resultobj
;
1003 wxPyDataObjectSimple
* _result
;
1004 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1005 PyObject
* _argo0
= 0;
1006 char *_kwnames
[] = { "format", NULL
};
1010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDataObjectSimple",_kwnames
,&_argo0
))
1013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1021 _result
= (wxPyDataObjectSimple
*)new_wxPyDataObjectSimple(*_arg0
);
1023 wxPyEndAllowThreads(__tstate
);
1024 if (PyErr_Occurred()) return NULL
;
1026 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDataObjectSimple_p");
1027 _resultobj
= Py_BuildValue("s",_ptemp
);
1030 _resultobj
= Py_None
;
1035 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1036 static PyObject
*_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1037 PyObject
* _resultobj
;
1038 wxPyDataObjectSimple
* _arg0
;
1041 PyObject
* _argo0
= 0;
1042 PyObject
* _obj1
= 0;
1043 PyObject
* _obj2
= 0;
1044 char *_kwnames
[] = { "self","self","_class", NULL
};
1047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDataObjectSimple_p")) {
1052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1064 wxPyDataObjectSimple__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1066 wxPyEndAllowThreads(__tstate
);
1067 if (PyErr_Occurred()) return NULL
;
1068 } Py_INCREF(Py_None
);
1069 _resultobj
= Py_None
;
1073 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr
) {
1074 wxDataObjectComposite
*src
;
1076 src
= (wxDataObjectComposite
*) ptr
;
1077 dest
= (wxDataObject
*) src
;
1078 return (void *) dest
;
1081 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1082 static PyObject
*_wrap_new_wxDataObjectComposite(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1083 PyObject
* _resultobj
;
1084 wxDataObjectComposite
* _result
;
1085 char *_kwnames
[] = { NULL
};
1089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxDataObjectComposite",_kwnames
))
1092 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1093 _result
= (wxDataObjectComposite
*)new_wxDataObjectComposite();
1095 wxPyEndAllowThreads(__tstate
);
1096 if (PyErr_Occurred()) return NULL
;
1098 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObjectComposite_p");
1099 _resultobj
= Py_BuildValue("s",_ptemp
);
1102 _resultobj
= Py_None
;
1107 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1108 static PyObject
*_wrap_wxDataObjectComposite_Add(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1109 PyObject
* _resultobj
;
1110 wxDataObjectComposite
* _arg0
;
1111 wxDataObjectSimple
* _arg1
;
1112 int _arg2
= (int ) FALSE
;
1113 PyObject
* _argo0
= 0;
1114 PyObject
* _argo1
= 0;
1115 char *_kwnames
[] = { "self","dataObject","preferred", NULL
};
1118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxDataObjectComposite_Add",_kwnames
,&_argo0
,&_argo1
,&_arg2
))
1121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObjectComposite_p")) {
1123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1128 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1129 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObjectSimple_p")) {
1130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1136 wxDataObjectComposite_Add(_arg0
,_arg1
,_arg2
);
1138 wxPyEndAllowThreads(__tstate
);
1139 if (PyErr_Occurred()) return NULL
;
1140 } Py_INCREF(Py_None
);
1141 _resultobj
= Py_None
;
1145 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr
) {
1146 wxTextDataObject
*src
;
1147 wxDataObjectSimple
*dest
;
1148 src
= (wxTextDataObject
*) ptr
;
1149 dest
= (wxDataObjectSimple
*) src
;
1150 return (void *) dest
;
1153 static void *SwigwxTextDataObjectTowxDataObject(void *ptr
) {
1154 wxTextDataObject
*src
;
1156 src
= (wxTextDataObject
*) ptr
;
1157 dest
= (wxDataObject
*) src
;
1158 return (void *) dest
;
1161 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1162 static PyObject
*_wrap_new_wxTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1163 PyObject
* _resultobj
;
1164 wxTextDataObject
* _result
;
1165 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1166 PyObject
* _obj0
= 0;
1167 char *_kwnames
[] = { "text", NULL
};
1171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxTextDataObject",_kwnames
,&_obj0
))
1175 _arg0
= wxString_in_helper(_obj0
);
1180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1181 _result
= (wxTextDataObject
*)new_wxTextDataObject(*_arg0
);
1183 wxPyEndAllowThreads(__tstate
);
1184 if (PyErr_Occurred()) return NULL
;
1186 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTextDataObject_p");
1187 _resultobj
= Py_BuildValue("s",_ptemp
);
1190 _resultobj
= Py_None
;
1199 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1200 static PyObject
*_wrap_wxTextDataObject_GetTextLength(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1201 PyObject
* _resultobj
;
1203 wxTextDataObject
* _arg0
;
1204 PyObject
* _argo0
= 0;
1205 char *_kwnames
[] = { "self", NULL
};
1208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDataObject_GetTextLength",_kwnames
,&_argo0
))
1211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1219 _result
= (size_t )wxTextDataObject_GetTextLength(_arg0
);
1221 wxPyEndAllowThreads(__tstate
);
1222 if (PyErr_Occurred()) return NULL
;
1223 } _resultobj
= Py_BuildValue("i",_result
);
1227 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1228 static PyObject
*_wrap_wxTextDataObject_GetText(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_GetText",_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_GetText. Expected _wxTextDataObject_p.");
1246 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1247 _result
= new wxString (wxTextDataObject_GetText(_arg0
));
1249 wxPyEndAllowThreads(__tstate
);
1250 if (PyErr_Occurred()) return NULL
;
1253 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1255 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1264 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1265 static PyObject
*_wrap_wxTextDataObject_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1266 PyObject
* _resultobj
;
1267 wxTextDataObject
* _arg0
;
1269 PyObject
* _argo0
= 0;
1270 PyObject
* _obj1
= 0;
1271 char *_kwnames
[] = { "self","text", NULL
};
1274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxTextDataObject_SetText",_kwnames
,&_argo0
,&_obj1
))
1277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxTextDataObject_p")) {
1279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1284 _arg1
= wxString_in_helper(_obj1
);
1289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1290 wxTextDataObject_SetText(_arg0
,*_arg1
);
1292 wxPyEndAllowThreads(__tstate
);
1293 if (PyErr_Occurred()) return NULL
;
1294 } Py_INCREF(Py_None
);
1295 _resultobj
= Py_None
;
1303 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr
) {
1304 wxPyTextDataObject
*src
;
1305 wxTextDataObject
*dest
;
1306 src
= (wxPyTextDataObject
*) ptr
;
1307 dest
= (wxTextDataObject
*) src
;
1308 return (void *) dest
;
1311 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr
) {
1312 wxPyTextDataObject
*src
;
1313 wxDataObjectSimple
*dest
;
1314 src
= (wxPyTextDataObject
*) ptr
;
1315 dest
= (wxDataObjectSimple
*) src
;
1316 return (void *) dest
;
1319 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr
) {
1320 wxPyTextDataObject
*src
;
1322 src
= (wxPyTextDataObject
*) ptr
;
1323 dest
= (wxDataObject
*) src
;
1324 return (void *) dest
;
1327 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1328 static PyObject
*_wrap_new_wxPyTextDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1329 PyObject
* _resultobj
;
1330 wxPyTextDataObject
* _result
;
1331 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
1332 PyObject
* _obj0
= 0;
1333 char *_kwnames
[] = { "text", NULL
};
1337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyTextDataObject",_kwnames
,&_obj0
))
1341 _arg0
= wxString_in_helper(_obj0
);
1346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1347 _result
= (wxPyTextDataObject
*)new_wxPyTextDataObject(*_arg0
);
1349 wxPyEndAllowThreads(__tstate
);
1350 if (PyErr_Occurred()) return NULL
;
1352 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDataObject_p");
1353 _resultobj
= Py_BuildValue("s",_ptemp
);
1356 _resultobj
= Py_None
;
1365 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1366 static PyObject
*_wrap_wxPyTextDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1367 PyObject
* _resultobj
;
1368 wxPyTextDataObject
* _arg0
;
1371 PyObject
* _argo0
= 0;
1372 PyObject
* _obj1
= 0;
1373 PyObject
* _obj2
= 0;
1374 char *_kwnames
[] = { "self","self","_class", NULL
};
1377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDataObject_p")) {
1382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1394 wxPyTextDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1396 wxPyEndAllowThreads(__tstate
);
1397 if (PyErr_Occurred()) return NULL
;
1398 } Py_INCREF(Py_None
);
1399 _resultobj
= Py_None
;
1403 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1404 wxBitmapDataObject
*src
;
1405 wxDataObjectSimple
*dest
;
1406 src
= (wxBitmapDataObject
*) ptr
;
1407 dest
= (wxDataObjectSimple
*) src
;
1408 return (void *) dest
;
1411 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr
) {
1412 wxBitmapDataObject
*src
;
1414 src
= (wxBitmapDataObject
*) ptr
;
1415 dest
= (wxDataObject
*) src
;
1416 return (void *) dest
;
1419 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1420 static PyObject
*_wrap_new_wxBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1421 PyObject
* _resultobj
;
1422 wxBitmapDataObject
* _result
;
1423 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1424 PyObject
* _argo0
= 0;
1425 char *_kwnames
[] = { "bitmap", NULL
};
1429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxBitmapDataObject",_kwnames
,&_argo0
))
1432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1439 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1440 _result
= (wxBitmapDataObject
*)new_wxBitmapDataObject(*_arg0
);
1442 wxPyEndAllowThreads(__tstate
);
1443 if (PyErr_Occurred()) return NULL
;
1445 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmapDataObject_p");
1446 _resultobj
= Py_BuildValue("s",_ptemp
);
1449 _resultobj
= Py_None
;
1454 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1455 static PyObject
*_wrap_wxBitmapDataObject_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1456 PyObject
* _resultobj
;
1458 wxBitmapDataObject
* _arg0
;
1459 PyObject
* _argo0
= 0;
1460 char *_kwnames
[] = { "self", NULL
};
1464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxBitmapDataObject_GetBitmap",_kwnames
,&_argo0
))
1467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1474 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1475 _result
= new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0
));
1477 wxPyEndAllowThreads(__tstate
);
1478 if (PyErr_Occurred()) return NULL
;
1479 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
1480 _resultobj
= Py_BuildValue("s",_ptemp
);
1484 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1485 static PyObject
*_wrap_wxBitmapDataObject_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1486 PyObject
* _resultobj
;
1487 wxBitmapDataObject
* _arg0
;
1489 PyObject
* _argo0
= 0;
1490 PyObject
* _argo1
= 0;
1491 char *_kwnames
[] = { "self","bitmap", NULL
};
1494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxBitmapDataObject_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
1497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmapDataObject_p")) {
1499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1504 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1505 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1506 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1511 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1512 wxBitmapDataObject_SetBitmap(_arg0
,*_arg1
);
1514 wxPyEndAllowThreads(__tstate
);
1515 if (PyErr_Occurred()) return NULL
;
1516 } Py_INCREF(Py_None
);
1517 _resultobj
= Py_None
;
1521 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr
) {
1522 wxPyBitmapDataObject
*src
;
1523 wxBitmapDataObject
*dest
;
1524 src
= (wxPyBitmapDataObject
*) ptr
;
1525 dest
= (wxBitmapDataObject
*) src
;
1526 return (void *) dest
;
1529 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr
) {
1530 wxPyBitmapDataObject
*src
;
1531 wxDataObjectSimple
*dest
;
1532 src
= (wxPyBitmapDataObject
*) ptr
;
1533 dest
= (wxDataObjectSimple
*) src
;
1534 return (void *) dest
;
1537 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr
) {
1538 wxPyBitmapDataObject
*src
;
1540 src
= (wxPyBitmapDataObject
*) ptr
;
1541 dest
= (wxDataObject
*) src
;
1542 return (void *) dest
;
1545 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1546 static PyObject
*_wrap_new_wxPyBitmapDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1547 PyObject
* _resultobj
;
1548 wxPyBitmapDataObject
* _result
;
1549 wxBitmap
* _arg0
= (wxBitmap
*) &wxNullBitmap
;
1550 PyObject
* _argo0
= 0;
1551 char *_kwnames
[] = { "bitmap", NULL
};
1555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyBitmapDataObject",_kwnames
,&_argo0
))
1558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
1560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1565 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1566 _result
= (wxPyBitmapDataObject
*)new_wxPyBitmapDataObject(*_arg0
);
1568 wxPyEndAllowThreads(__tstate
);
1569 if (PyErr_Occurred()) return NULL
;
1571 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyBitmapDataObject_p");
1572 _resultobj
= Py_BuildValue("s",_ptemp
);
1575 _resultobj
= Py_None
;
1580 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1581 static PyObject
*_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1582 PyObject
* _resultobj
;
1583 wxPyBitmapDataObject
* _arg0
;
1586 PyObject
* _argo0
= 0;
1587 PyObject
* _obj1
= 0;
1588 PyObject
* _obj2
= 0;
1589 char *_kwnames
[] = { "self","self","_class", NULL
};
1592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyBitmapDataObject_p")) {
1597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1608 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1609 wxPyBitmapDataObject__setCallbackInfo(_arg0
,_arg1
,_arg2
);
1611 wxPyEndAllowThreads(__tstate
);
1612 if (PyErr_Occurred()) return NULL
;
1613 } Py_INCREF(Py_None
);
1614 _resultobj
= Py_None
;
1618 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr
) {
1619 wxFileDataObject
*src
;
1620 wxDataObjectSimple
*dest
;
1621 src
= (wxFileDataObject
*) ptr
;
1622 dest
= (wxDataObjectSimple
*) src
;
1623 return (void *) dest
;
1626 static void *SwigwxFileDataObjectTowxDataObject(void *ptr
) {
1627 wxFileDataObject
*src
;
1629 src
= (wxFileDataObject
*) ptr
;
1630 dest
= (wxDataObject
*) src
;
1631 return (void *) dest
;
1634 #define new_wxFileDataObject() (new wxFileDataObject())
1635 static PyObject
*_wrap_new_wxFileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1636 PyObject
* _resultobj
;
1637 wxFileDataObject
* _result
;
1638 char *_kwnames
[] = { NULL
};
1642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDataObject",_kwnames
))
1645 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1646 _result
= (wxFileDataObject
*)new_wxFileDataObject();
1648 wxPyEndAllowThreads(__tstate
);
1649 if (PyErr_Occurred()) return NULL
;
1651 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileDataObject_p");
1652 _resultobj
= Py_BuildValue("s",_ptemp
);
1655 _resultobj
= Py_None
;
1660 static PyObject
* wxFileDataObject_GetFilenames(wxFileDataObject
*self
) {
1661 const wxArrayString
& strings
= self
->GetFilenames();
1662 return wxArrayString2PyList_helper(strings
);
1664 static PyObject
*_wrap_wxFileDataObject_GetFilenames(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1665 PyObject
* _resultobj
;
1667 wxFileDataObject
* _arg0
;
1668 PyObject
* _argo0
= 0;
1669 char *_kwnames
[] = { "self", NULL
};
1672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDataObject_GetFilenames",_kwnames
,&_argo0
))
1675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1683 _result
= (PyObject
*)wxFileDataObject_GetFilenames(_arg0
);
1685 wxPyEndAllowThreads(__tstate
);
1686 if (PyErr_Occurred()) return NULL
;
1688 _resultobj
= _result
;
1693 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1694 static PyObject
*_wrap_wxFileDataObject_AddFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1695 PyObject
* _resultobj
;
1696 wxFileDataObject
* _arg0
;
1698 PyObject
* _argo0
= 0;
1699 PyObject
* _obj1
= 0;
1700 char *_kwnames
[] = { "self","filename", NULL
};
1703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileDataObject_AddFile",_kwnames
,&_argo0
,&_obj1
))
1706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileDataObject_p")) {
1708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1713 _arg1
= wxString_in_helper(_obj1
);
1718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1719 wxFileDataObject_AddFile(_arg0
,*_arg1
);
1721 wxPyEndAllowThreads(__tstate
);
1722 if (PyErr_Occurred()) return NULL
;
1723 } Py_INCREF(Py_None
);
1724 _resultobj
= Py_None
;
1732 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr
) {
1733 wxCustomDataObject
*src
;
1734 wxDataObjectSimple
*dest
;
1735 src
= (wxCustomDataObject
*) ptr
;
1736 dest
= (wxDataObjectSimple
*) src
;
1737 return (void *) dest
;
1740 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr
) {
1741 wxCustomDataObject
*src
;
1743 src
= (wxCustomDataObject
*) ptr
;
1744 dest
= (wxDataObject
*) src
;
1745 return (void *) dest
;
1748 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1749 static PyObject
*_wrap_new_wxCustomDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1750 PyObject
* _resultobj
;
1751 wxCustomDataObject
* _result
;
1752 wxDataFormat
* _arg0
= (wxDataFormat
*) &wxPyFormatInvalid
;
1753 PyObject
* _argo0
= 0;
1754 char *_kwnames
[] = { "format", NULL
};
1758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxCustomDataObject",_kwnames
,&_argo0
))
1761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataFormat_p")) {
1763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1769 _result
= (wxCustomDataObject
*)new_wxCustomDataObject(*_arg0
);
1771 wxPyEndAllowThreads(__tstate
);
1772 if (PyErr_Occurred()) return NULL
;
1774 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCustomDataObject_p");
1775 _resultobj
= Py_BuildValue("s",_ptemp
);
1778 _resultobj
= Py_None
;
1783 static void wxCustomDataObject_TakeData(wxCustomDataObject
*self
,PyObject
* data
) {
1784 if (PyString_Check(data
)) {
1785 self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1788 static PyObject
*_wrap_wxCustomDataObject_TakeData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1789 PyObject
* _resultobj
;
1790 wxCustomDataObject
* _arg0
;
1792 PyObject
* _argo0
= 0;
1793 PyObject
* _obj1
= 0;
1794 char *_kwnames
[] = { "self","data", NULL
};
1797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_TakeData",_kwnames
,&_argo0
,&_obj1
))
1800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1811 wxCustomDataObject_TakeData(_arg0
,_arg1
);
1813 wxPyEndAllowThreads(__tstate
);
1814 if (PyErr_Occurred()) return NULL
;
1815 } Py_INCREF(Py_None
);
1816 _resultobj
= Py_None
;
1820 static bool wxCustomDataObject_SetData(wxCustomDataObject
*self
,PyObject
* data
) {
1821 if (PyString_Check(data
)) {
1822 return self
->SetData(PyString_Size(data
), PyString_AsString(data
));
1826 static PyObject
*_wrap_wxCustomDataObject_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1827 PyObject
* _resultobj
;
1829 wxCustomDataObject
* _arg0
;
1831 PyObject
* _argo0
= 0;
1832 PyObject
* _obj1
= 0;
1833 char *_kwnames
[] = { "self","data", NULL
};
1836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxCustomDataObject_SetData",_kwnames
,&_argo0
,&_obj1
))
1839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1850 _result
= (bool )wxCustomDataObject_SetData(_arg0
,_arg1
);
1852 wxPyEndAllowThreads(__tstate
);
1853 if (PyErr_Occurred()) return NULL
;
1854 } _resultobj
= Py_BuildValue("i",_result
);
1858 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1859 static PyObject
*_wrap_wxCustomDataObject_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1860 PyObject
* _resultobj
;
1862 wxCustomDataObject
* _arg0
;
1863 PyObject
* _argo0
= 0;
1864 char *_kwnames
[] = { "self", NULL
};
1867 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetSize",_kwnames
,&_argo0
))
1870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1878 _result
= (size_t )wxCustomDataObject_GetSize(_arg0
);
1880 wxPyEndAllowThreads(__tstate
);
1881 if (PyErr_Occurred()) return NULL
;
1882 } _resultobj
= Py_BuildValue("i",_result
);
1886 static PyObject
* wxCustomDataObject_GetData(wxCustomDataObject
*self
) {
1887 return PyString_FromStringAndSize((char*)self
->GetData(), self
->GetSize());
1889 static PyObject
*_wrap_wxCustomDataObject_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1890 PyObject
* _resultobj
;
1892 wxCustomDataObject
* _arg0
;
1893 PyObject
* _argo0
= 0;
1894 char *_kwnames
[] = { "self", NULL
};
1897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxCustomDataObject_GetData",_kwnames
,&_argo0
))
1900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxCustomDataObject_p")) {
1902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1908 _result
= (PyObject
*)wxCustomDataObject_GetData(_arg0
);
1910 wxPyEndAllowThreads(__tstate
);
1911 if (PyErr_Occurred()) return NULL
;
1913 _resultobj
= _result
;
1918 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr
) {
1919 wxURLDataObject
*src
;
1920 wxDataObjectComposite
*dest
;
1921 src
= (wxURLDataObject
*) ptr
;
1922 dest
= (wxDataObjectComposite
*) src
;
1923 return (void *) dest
;
1926 static void *SwigwxURLDataObjectTowxDataObject(void *ptr
) {
1927 wxURLDataObject
*src
;
1929 src
= (wxURLDataObject
*) ptr
;
1930 dest
= (wxDataObject
*) src
;
1931 return (void *) dest
;
1934 #define new_wxURLDataObject() (new wxURLDataObject())
1935 static PyObject
*_wrap_new_wxURLDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1936 PyObject
* _resultobj
;
1937 wxURLDataObject
* _result
;
1938 char *_kwnames
[] = { NULL
};
1942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxURLDataObject",_kwnames
))
1945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1946 _result
= (wxURLDataObject
*)new_wxURLDataObject();
1948 wxPyEndAllowThreads(__tstate
);
1949 if (PyErr_Occurred()) return NULL
;
1951 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxURLDataObject_p");
1952 _resultobj
= Py_BuildValue("s",_ptemp
);
1955 _resultobj
= Py_None
;
1960 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1961 static PyObject
*_wrap_wxURLDataObject_GetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1962 PyObject
* _resultobj
;
1964 wxURLDataObject
* _arg0
;
1965 PyObject
* _argo0
= 0;
1966 char *_kwnames
[] = { "self", NULL
};
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxURLDataObject_GetURL",_kwnames
,&_argo0
))
1972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
1974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
1979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1980 _result
= new wxString (wxURLDataObject_GetURL(_arg0
));
1982 wxPyEndAllowThreads(__tstate
);
1983 if (PyErr_Occurred()) return NULL
;
1986 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1988 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1997 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
1998 static PyObject
*_wrap_wxURLDataObject_SetURL(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1999 PyObject
* _resultobj
;
2000 wxURLDataObject
* _arg0
;
2002 PyObject
* _argo0
= 0;
2003 PyObject
* _obj1
= 0;
2004 char *_kwnames
[] = { "self","url", NULL
};
2007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxURLDataObject_SetURL",_kwnames
,&_argo0
,&_obj1
))
2010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxURLDataObject_p")) {
2012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2017 _arg1
= wxString_in_helper(_obj1
);
2022 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2023 wxURLDataObject_SetURL(_arg0
,*_arg1
);
2025 wxPyEndAllowThreads(__tstate
);
2026 if (PyErr_Occurred()) return NULL
;
2027 } Py_INCREF(Py_None
);
2028 _resultobj
= Py_None
;
2036 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr
) {
2037 wxMetafileDataObject
*src
;
2038 wxDataObjectSimple
*dest
;
2039 src
= (wxMetafileDataObject
*) ptr
;
2040 dest
= (wxDataObjectSimple
*) src
;
2041 return (void *) dest
;
2044 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr
) {
2045 wxMetafileDataObject
*src
;
2047 src
= (wxMetafileDataObject
*) ptr
;
2048 dest
= (wxDataObject
*) src
;
2049 return (void *) dest
;
2052 #define new_wxMetafileDataObject() (new wxMetafileDataObject())
2053 static PyObject
*_wrap_new_wxMetafileDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2054 PyObject
* _resultobj
;
2055 wxMetafileDataObject
* _result
;
2056 char *_kwnames
[] = { NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMetafileDataObject",_kwnames
))
2063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2064 _result
= (wxMetafileDataObject
*)new_wxMetafileDataObject();
2066 wxPyEndAllowThreads(__tstate
);
2067 if (PyErr_Occurred()) return NULL
;
2069 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMetafileDataObject_p");
2070 _resultobj
= Py_BuildValue("s",_ptemp
);
2073 _resultobj
= Py_None
;
2078 #define wxMetafileDataObject_SetMetafile(_swigobj,_swigarg0) (_swigobj->SetMetafile(_swigarg0))
2079 static PyObject
*_wrap_wxMetafileDataObject_SetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2080 PyObject
* _resultobj
;
2081 wxMetafileDataObject
* _arg0
;
2083 PyObject
* _argo0
= 0;
2084 PyObject
* _argo1
= 0;
2085 char *_kwnames
[] = { "self","metafile", NULL
};
2088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMetafileDataObject_SetMetafile",_kwnames
,&_argo0
,&_argo1
))
2091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_SetMetafile. Expected _wxMetafileDataObject_p.");
2098 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2099 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMetafile_p")) {
2100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMetafileDataObject_SetMetafile. Expected _wxMetafile_p.");
2105 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2106 wxMetafileDataObject_SetMetafile(_arg0
,*_arg1
);
2108 wxPyEndAllowThreads(__tstate
);
2109 if (PyErr_Occurred()) return NULL
;
2110 } Py_INCREF(Py_None
);
2111 _resultobj
= Py_None
;
2115 #define wxMetafileDataObject_GetMetafile(_swigobj) (_swigobj->GetMetafile())
2116 static PyObject
*_wrap_wxMetafileDataObject_GetMetafile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2117 PyObject
* _resultobj
;
2118 wxMetafile
* _result
;
2119 wxMetafileDataObject
* _arg0
;
2120 PyObject
* _argo0
= 0;
2121 char *_kwnames
[] = { "self", NULL
};
2125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMetafileDataObject_GetMetafile",_kwnames
,&_argo0
))
2128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMetafileDataObject_p")) {
2130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMetafileDataObject_GetMetafile. Expected _wxMetafileDataObject_p.");
2135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2136 _result
= new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0
));
2138 wxPyEndAllowThreads(__tstate
);
2139 if (PyErr_Occurred()) return NULL
;
2140 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxMetafile_p");
2141 _resultobj
= Py_BuildValue("s",_ptemp
);
2145 static void *SwigwxClipboardTowxObject(void *ptr
) {
2148 src
= (wxClipboard
*) ptr
;
2149 dest
= (wxObject
*) src
;
2150 return (void *) dest
;
2153 #define new_wxClipboard() (new wxClipboard())
2154 static PyObject
*_wrap_new_wxClipboard(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2156 wxClipboard
* _result
;
2157 char *_kwnames
[] = { NULL
};
2161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxClipboard",_kwnames
))
2164 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2165 _result
= (wxClipboard
*)new_wxClipboard();
2167 wxPyEndAllowThreads(__tstate
);
2168 if (PyErr_Occurred()) return NULL
;
2170 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxClipboard_p");
2171 _resultobj
= Py_BuildValue("s",_ptemp
);
2174 _resultobj
= Py_None
;
2179 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2180 static PyObject
*_wrap_wxClipboard_Open(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2181 PyObject
* _resultobj
;
2183 wxClipboard
* _arg0
;
2184 PyObject
* _argo0
= 0;
2185 char *_kwnames
[] = { "self", NULL
};
2188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Open",_kwnames
,&_argo0
))
2191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2199 _result
= (bool )wxClipboard_Open(_arg0
);
2201 wxPyEndAllowThreads(__tstate
);
2202 if (PyErr_Occurred()) return NULL
;
2203 } _resultobj
= Py_BuildValue("i",_result
);
2207 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2208 static PyObject
*_wrap_wxClipboard_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2209 PyObject
* _resultobj
;
2210 wxClipboard
* _arg0
;
2211 PyObject
* _argo0
= 0;
2212 char *_kwnames
[] = { "self", NULL
};
2215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Close",_kwnames
,&_argo0
))
2218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2225 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2226 wxClipboard_Close(_arg0
);
2228 wxPyEndAllowThreads(__tstate
);
2229 if (PyErr_Occurred()) return NULL
;
2230 } Py_INCREF(Py_None
);
2231 _resultobj
= Py_None
;
2235 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2236 static PyObject
*_wrap_wxClipboard_IsOpened(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2237 PyObject
* _resultobj
;
2239 wxClipboard
* _arg0
;
2240 PyObject
* _argo0
= 0;
2241 char *_kwnames
[] = { "self", NULL
};
2244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_IsOpened",_kwnames
,&_argo0
))
2247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2255 _result
= (bool )wxClipboard_IsOpened(_arg0
);
2257 wxPyEndAllowThreads(__tstate
);
2258 if (PyErr_Occurred()) return NULL
;
2259 } _resultobj
= Py_BuildValue("i",_result
);
2263 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2264 static PyObject
*_wrap_wxClipboard_AddData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
* _resultobj
;
2267 wxClipboard
* _arg0
;
2268 wxDataObject
* _arg1
;
2269 PyObject
* _argo0
= 0;
2270 PyObject
* _argo1
= 0;
2271 char *_kwnames
[] = { "self","data", NULL
};
2274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_AddData",_kwnames
,&_argo0
,&_argo1
))
2277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2284 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2285 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2291 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2292 _result
= (bool )wxClipboard_AddData(_arg0
,_arg1
);
2294 wxPyEndAllowThreads(__tstate
);
2295 if (PyErr_Occurred()) return NULL
;
2296 } _resultobj
= Py_BuildValue("i",_result
);
2300 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2301 static PyObject
*_wrap_wxClipboard_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
* _resultobj
;
2304 wxClipboard
* _arg0
;
2305 wxDataObject
* _arg1
;
2306 PyObject
* _argo0
= 0;
2307 PyObject
* _argo1
= 0;
2308 char *_kwnames
[] = { "self","data", NULL
};
2311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_SetData",_kwnames
,&_argo0
,&_argo1
))
2314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2321 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2322 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2329 _result
= (bool )wxClipboard_SetData(_arg0
,_arg1
);
2331 wxPyEndAllowThreads(__tstate
);
2332 if (PyErr_Occurred()) return NULL
;
2333 } _resultobj
= Py_BuildValue("i",_result
);
2337 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2338 static PyObject
*_wrap_wxClipboard_IsSupported(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2339 PyObject
* _resultobj
;
2341 wxClipboard
* _arg0
;
2342 wxDataFormat
* _arg1
;
2343 PyObject
* _argo0
= 0;
2344 PyObject
* _argo1
= 0;
2345 char *_kwnames
[] = { "self","format", NULL
};
2348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_IsSupported",_kwnames
,&_argo0
,&_argo1
))
2351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2358 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2359 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataFormat_p")) {
2360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2365 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2366 _result
= (bool )wxClipboard_IsSupported(_arg0
,*_arg1
);
2368 wxPyEndAllowThreads(__tstate
);
2369 if (PyErr_Occurred()) return NULL
;
2370 } _resultobj
= Py_BuildValue("i",_result
);
2374 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2375 static PyObject
*_wrap_wxClipboard_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2376 PyObject
* _resultobj
;
2378 wxClipboard
* _arg0
;
2379 wxDataObject
* _arg1
;
2380 PyObject
* _argo0
= 0;
2381 PyObject
* _argo1
= 0;
2382 char *_kwnames
[] = { "self","data", NULL
};
2385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxClipboard_GetData",_kwnames
,&_argo0
,&_argo1
))
2388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2395 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2396 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2403 _result
= (bool )wxClipboard_GetData(_arg0
,*_arg1
);
2405 wxPyEndAllowThreads(__tstate
);
2406 if (PyErr_Occurred()) return NULL
;
2407 } _resultobj
= Py_BuildValue("i",_result
);
2411 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2412 static PyObject
*_wrap_wxClipboard_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2413 PyObject
* _resultobj
;
2414 wxClipboard
* _arg0
;
2415 PyObject
* _argo0
= 0;
2416 char *_kwnames
[] = { "self", NULL
};
2419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Clear",_kwnames
,&_argo0
))
2422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2430 wxClipboard_Clear(_arg0
);
2432 wxPyEndAllowThreads(__tstate
);
2433 if (PyErr_Occurred()) return NULL
;
2434 } Py_INCREF(Py_None
);
2435 _resultobj
= Py_None
;
2439 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2440 static PyObject
*_wrap_wxClipboard_Flush(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2441 PyObject
* _resultobj
;
2443 wxClipboard
* _arg0
;
2444 PyObject
* _argo0
= 0;
2445 char *_kwnames
[] = { "self", NULL
};
2448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxClipboard_Flush",_kwnames
,&_argo0
))
2451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2459 _result
= (bool )wxClipboard_Flush(_arg0
);
2461 wxPyEndAllowThreads(__tstate
);
2462 if (PyErr_Occurred()) return NULL
;
2463 } _resultobj
= Py_BuildValue("i",_result
);
2467 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2468 static PyObject
*_wrap_wxClipboard_UsePrimarySelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2469 PyObject
* _resultobj
;
2470 wxClipboard
* _arg0
;
2471 int _arg1
= (int ) FALSE
;
2472 PyObject
* _argo0
= 0;
2473 char *_kwnames
[] = { "self","primary", NULL
};
2476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxClipboard_UsePrimarySelection",_kwnames
,&_argo0
,&_arg1
))
2479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxClipboard_p")) {
2481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2487 wxClipboard_UsePrimarySelection(_arg0
,_arg1
);
2489 wxPyEndAllowThreads(__tstate
);
2490 if (PyErr_Occurred()) return NULL
;
2491 } Py_INCREF(Py_None
);
2492 _resultobj
= Py_None
;
2496 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2497 static PyObject
*_wrap_new_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2498 PyObject
* _resultobj
;
2499 wxPyDropSource
* _result
;
2500 wxWindow
* _arg0
= (wxWindow
*) NULL
;
2501 wxCursor
* _arg1
= (wxCursor
*) &wxNullCursor
;
2502 wxCursor
* _arg2
= (wxCursor
*) &wxNullCursor
;
2503 wxCursor
* _arg3
= (wxCursor
*) &wxNullCursor
;
2504 PyObject
* _argo0
= 0;
2505 PyObject
* _argo1
= 0;
2506 PyObject
* _argo2
= 0;
2507 PyObject
* _argo3
= 0;
2508 char *_kwnames
[] = { "win","cursorCopy","cursorMove","cursorStop", NULL
};
2512 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OOOO:new_wxDropSource",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_argo3
))
2515 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2516 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2517 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2522 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2523 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
2524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2529 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2530 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2536 if (_argo3
== Py_None
) { _arg3
= NULL
; }
2537 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxCursor_p")) {
2538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2543 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2544 _result
= (wxPyDropSource
*)new_wxDropSource(_arg0
,*_arg1
,*_arg2
,*_arg3
);
2546 wxPyEndAllowThreads(__tstate
);
2547 if (PyErr_Occurred()) return NULL
;
2549 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropSource_p");
2550 _resultobj
= Py_BuildValue("s",_ptemp
);
2553 _resultobj
= Py_None
;
2558 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2559 static PyObject
*_wrap_wxDropSource__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2560 PyObject
* _resultobj
;
2561 wxPyDropSource
* _arg0
;
2565 PyObject
* _argo0
= 0;
2566 PyObject
* _obj1
= 0;
2567 PyObject
* _obj2
= 0;
2568 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
2571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOi:wxDropSource__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
2574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2587 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2588 wxDropSource__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
2590 wxPyEndAllowThreads(__tstate
);
2591 if (PyErr_Occurred()) return NULL
;
2592 } Py_INCREF(Py_None
);
2593 _resultobj
= Py_None
;
2597 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2598 static PyObject
*_wrap_delete_wxDropSource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2599 PyObject
* _resultobj
;
2600 wxPyDropSource
* _arg0
;
2601 PyObject
* _argo0
= 0;
2602 char *_kwnames
[] = { "self", NULL
};
2605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxDropSource",_kwnames
,&_argo0
))
2608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2615 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2616 delete_wxPyDropSource(_arg0
);
2618 wxPyEndAllowThreads(__tstate
);
2619 if (PyErr_Occurred()) return NULL
;
2620 } Py_INCREF(Py_None
);
2621 _resultobj
= Py_None
;
2625 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2626 static PyObject
*_wrap_wxDropSource_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2627 PyObject
* _resultobj
;
2628 wxPyDropSource
* _arg0
;
2629 wxDataObject
* _arg1
;
2630 PyObject
* _argo0
= 0;
2631 PyObject
* _argo1
= 0;
2632 char *_kwnames
[] = { "self","data", NULL
};
2635 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDropSource_SetData",_kwnames
,&_argo0
,&_argo1
))
2638 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2639 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2640 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2645 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2646 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2652 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2653 wxDropSource_SetData(_arg0
,*_arg1
);
2655 wxPyEndAllowThreads(__tstate
);
2656 if (PyErr_Occurred()) return NULL
;
2657 } Py_INCREF(Py_None
);
2658 _resultobj
= Py_None
;
2662 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2663 static PyObject
*_wrap_wxDropSource_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2664 PyObject
* _resultobj
;
2665 wxDataObject
* _result
;
2666 wxPyDropSource
* _arg0
;
2667 PyObject
* _argo0
= 0;
2668 char *_kwnames
[] = { "self", NULL
};
2672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDropSource_GetDataObject",_kwnames
,&_argo0
))
2675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2683 _result
= (wxDataObject
*)wxDropSource_GetDataObject(_arg0
);
2685 wxPyEndAllowThreads(__tstate
);
2686 if (PyErr_Occurred()) return NULL
;
2688 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2689 _resultobj
= Py_BuildValue("s",_ptemp
);
2692 _resultobj
= Py_None
;
2697 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2698 static PyObject
*_wrap_wxDropSource_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2699 PyObject
* _resultobj
;
2700 wxPyDropSource
* _arg0
;
2703 PyObject
* _argo0
= 0;
2704 PyObject
* _argo2
= 0;
2705 char *_kwnames
[] = { "self","res","cursor", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxDropSource_SetCursor",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2718 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2719 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxCursor_p")) {
2720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2725 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2726 wxDropSource_SetCursor(_arg0
,_arg1
,*_arg2
);
2728 wxPyEndAllowThreads(__tstate
);
2729 if (PyErr_Occurred()) return NULL
;
2730 } Py_INCREF(Py_None
);
2731 _resultobj
= Py_None
;
2735 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2736 static PyObject
*_wrap_wxDropSource_DoDragDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2737 PyObject
* _resultobj
;
2738 wxDragResult _result
;
2739 wxPyDropSource
* _arg0
;
2740 int _arg1
= (int ) FALSE
;
2741 PyObject
* _argo0
= 0;
2742 char *_kwnames
[] = { "self","bAllowMove", NULL
};
2745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDropSource_DoDragDrop",_kwnames
,&_argo0
,&_arg1
))
2748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2756 _result
= (wxDragResult
)wxDropSource_DoDragDrop(_arg0
,_arg1
);
2758 wxPyEndAllowThreads(__tstate
);
2759 if (PyErr_Occurred()) return NULL
;
2760 } _resultobj
= Py_BuildValue("i",_result
);
2764 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2765 static PyObject
*_wrap_wxDropSource_base_GiveFeedback(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2766 PyObject
* _resultobj
;
2768 wxPyDropSource
* _arg0
;
2770 PyObject
* _argo0
= 0;
2771 char *_kwnames
[] = { "self","effect", NULL
};
2774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDropSource_base_GiveFeedback",_kwnames
,&_argo0
,&_arg1
))
2777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropSource_p")) {
2779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2785 _result
= (bool )wxDropSource_base_GiveFeedback(_arg0
,_arg1
);
2787 wxPyEndAllowThreads(__tstate
);
2788 if (PyErr_Occurred()) return NULL
;
2789 } _resultobj
= Py_BuildValue("i",_result
);
2793 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr
) {
2794 wxPyDropTarget
*src
;
2796 src
= (wxPyDropTarget
*) ptr
;
2797 dest
= (wxDropTarget
*) src
;
2798 return (void *) dest
;
2801 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2802 static PyObject
*_wrap_new_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2803 PyObject
* _resultobj
;
2804 wxPyDropTarget
* _result
;
2805 wxDataObject
* _arg0
= (wxDataObject
*) NULL
;
2806 PyObject
* _argo0
= 0;
2807 char *_kwnames
[] = { "dataObject", NULL
};
2811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPyDropTarget",_kwnames
,&_argo0
))
2814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDataObject_p")) {
2816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2822 _result
= (wxPyDropTarget
*)new_wxPyDropTarget(_arg0
);
2824 wxPyEndAllowThreads(__tstate
);
2825 if (PyErr_Occurred()) return NULL
;
2827 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyDropTarget_p");
2828 _resultobj
= Py_BuildValue("s",_ptemp
);
2831 _resultobj
= Py_None
;
2836 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2837 static PyObject
*_wrap_wxPyDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2838 PyObject
* _resultobj
;
2839 wxPyDropTarget
* _arg0
;
2842 PyObject
* _argo0
= 0;
2843 PyObject
* _obj1
= 0;
2844 PyObject
* _obj2
= 0;
2845 char *_kwnames
[] = { "self","self","_class", NULL
};
2848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
2851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2865 wxPyDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
2867 wxPyEndAllowThreads(__tstate
);
2868 if (PyErr_Occurred()) return NULL
;
2869 } Py_INCREF(Py_None
);
2870 _resultobj
= Py_None
;
2874 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2875 static PyObject
*_wrap_delete_wxPyDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2876 PyObject
* _resultobj
;
2877 wxPyDropTarget
* _arg0
;
2878 PyObject
* _argo0
= 0;
2879 char *_kwnames
[] = { "self", NULL
};
2882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPyDropTarget",_kwnames
,&_argo0
))
2885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2893 delete_wxPyDropTarget(_arg0
);
2895 wxPyEndAllowThreads(__tstate
);
2896 if (PyErr_Occurred()) return NULL
;
2897 } Py_INCREF(Py_None
);
2898 _resultobj
= Py_None
;
2902 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2903 static PyObject
*_wrap_wxPyDropTarget_GetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2904 PyObject
* _resultobj
;
2905 wxDataObject
* _result
;
2906 wxPyDropTarget
* _arg0
;
2907 PyObject
* _argo0
= 0;
2908 char *_kwnames
[] = { "self", NULL
};
2912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetDataObject",_kwnames
,&_argo0
))
2915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2923 _result
= (wxDataObject
*)wxPyDropTarget_GetDataObject(_arg0
);
2925 wxPyEndAllowThreads(__tstate
);
2926 if (PyErr_Occurred()) return NULL
;
2928 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDataObject_p");
2929 _resultobj
= Py_BuildValue("s",_ptemp
);
2932 _resultobj
= Py_None
;
2937 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2938 static PyObject
*_wrap_wxPyDropTarget_SetDataObject(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2939 PyObject
* _resultobj
;
2940 wxPyDropTarget
* _arg0
;
2941 wxDataObject
* _arg1
;
2942 PyObject
* _argo0
= 0;
2943 PyObject
* _argo1
= 0;
2944 char *_kwnames
[] = { "self","dataObject", NULL
};
2947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPyDropTarget_SetDataObject",_kwnames
,&_argo0
,&_argo1
))
2950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2957 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2958 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDataObject_p")) {
2959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2965 wxPyDropTarget_SetDataObject(_arg0
,_arg1
);
2967 wxPyEndAllowThreads(__tstate
);
2968 if (PyErr_Occurred()) return NULL
;
2969 } Py_INCREF(Py_None
);
2970 _resultobj
= Py_None
;
2974 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2975 static PyObject
*_wrap_wxPyDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2976 PyObject
* _resultobj
;
2977 wxDragResult _result
;
2978 wxPyDropTarget
* _arg0
;
2982 PyObject
* _argo0
= 0;
2983 char *_kwnames
[] = { "self","x","y","def", NULL
};
2986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
2989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
2991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2997 _result
= (wxDragResult
)wxPyDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
2999 wxPyEndAllowThreads(__tstate
);
3000 if (PyErr_Occurred()) return NULL
;
3001 } _resultobj
= Py_BuildValue("i",_result
);
3005 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3006 static PyObject
*_wrap_wxPyDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3007 PyObject
* _resultobj
;
3008 wxDragResult _result
;
3009 wxPyDropTarget
* _arg0
;
3013 PyObject
* _argo0
= 0;
3014 char *_kwnames
[] = { "self","x","y","def", NULL
};
3017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
3027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3028 _result
= (wxDragResult
)wxPyDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3030 wxPyEndAllowThreads(__tstate
);
3031 if (PyErr_Occurred()) return NULL
;
3032 } _resultobj
= Py_BuildValue("i",_result
);
3036 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3037 static PyObject
*_wrap_wxPyDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3038 PyObject
* _resultobj
;
3039 wxPyDropTarget
* _arg0
;
3040 PyObject
* _argo0
= 0;
3041 char *_kwnames
[] = { "self", NULL
};
3044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3055 wxPyDropTarget_base_OnLeave(_arg0
);
3057 wxPyEndAllowThreads(__tstate
);
3058 if (PyErr_Occurred()) return NULL
;
3059 } Py_INCREF(Py_None
);
3060 _resultobj
= Py_None
;
3064 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3065 static PyObject
*_wrap_wxPyDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3066 PyObject
* _resultobj
;
3068 wxPyDropTarget
* _arg0
;
3071 PyObject
* _argo0
= 0;
3072 char *_kwnames
[] = { "self","x","y", NULL
};
3075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPyDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3086 _result
= (bool )wxPyDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3088 wxPyEndAllowThreads(__tstate
);
3089 if (PyErr_Occurred()) return NULL
;
3090 } _resultobj
= Py_BuildValue("i",_result
);
3094 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3095 static PyObject
*_wrap_wxPyDropTarget_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3096 PyObject
* _resultobj
;
3098 wxPyDropTarget
* _arg0
;
3099 PyObject
* _argo0
= 0;
3100 char *_kwnames
[] = { "self", NULL
};
3103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPyDropTarget_GetData",_kwnames
,&_argo0
))
3106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyDropTarget_p")) {
3108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3113 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3114 _result
= (bool )wxPyDropTarget_GetData(_arg0
);
3116 wxPyEndAllowThreads(__tstate
);
3117 if (PyErr_Occurred()) return NULL
;
3118 } _resultobj
= Py_BuildValue("i",_result
);
3122 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr
) {
3123 wxPyTextDropTarget
*src
;
3124 wxPyDropTarget
*dest
;
3125 src
= (wxPyTextDropTarget
*) ptr
;
3126 dest
= (wxPyDropTarget
*) src
;
3127 return (void *) dest
;
3130 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr
) {
3131 wxPyTextDropTarget
*src
;
3133 src
= (wxPyTextDropTarget
*) ptr
;
3134 dest
= (wxDropTarget
*) src
;
3135 return (void *) dest
;
3138 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3139 static PyObject
*_wrap_new_wxTextDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3140 PyObject
* _resultobj
;
3141 wxPyTextDropTarget
* _result
;
3142 char *_kwnames
[] = { NULL
};
3146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTextDropTarget",_kwnames
))
3149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3150 _result
= (wxPyTextDropTarget
*)new_wxTextDropTarget();
3152 wxPyEndAllowThreads(__tstate
);
3153 if (PyErr_Occurred()) return NULL
;
3155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyTextDropTarget_p");
3156 _resultobj
= Py_BuildValue("s",_ptemp
);
3159 _resultobj
= Py_None
;
3164 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3165 static PyObject
*_wrap_wxTextDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3166 PyObject
* _resultobj
;
3167 wxPyTextDropTarget
* _arg0
;
3170 PyObject
* _argo0
= 0;
3171 PyObject
* _obj1
= 0;
3172 PyObject
* _obj2
= 0;
3173 char *_kwnames
[] = { "self","self","_class", NULL
};
3176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3193 wxTextDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3195 wxPyEndAllowThreads(__tstate
);
3196 if (PyErr_Occurred()) return NULL
;
3197 } Py_INCREF(Py_None
);
3198 _resultobj
= Py_None
;
3202 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3203 static PyObject
*_wrap_wxTextDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3204 PyObject
* _resultobj
;
3205 wxDragResult _result
;
3206 wxPyTextDropTarget
* _arg0
;
3210 PyObject
* _argo0
= 0;
3211 char *_kwnames
[] = { "self","x","y","def", NULL
};
3214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3225 _result
= (wxDragResult
)wxTextDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3227 wxPyEndAllowThreads(__tstate
);
3228 if (PyErr_Occurred()) return NULL
;
3229 } _resultobj
= Py_BuildValue("i",_result
);
3233 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3234 static PyObject
*_wrap_wxTextDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3235 PyObject
* _resultobj
;
3236 wxDragResult _result
;
3237 wxPyTextDropTarget
* _arg0
;
3241 PyObject
* _argo0
= 0;
3242 char *_kwnames
[] = { "self","x","y","def", NULL
};
3245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3248 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3249 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3250 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3255 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3256 _result
= (wxDragResult
)wxTextDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3258 wxPyEndAllowThreads(__tstate
);
3259 if (PyErr_Occurred()) return NULL
;
3260 } _resultobj
= Py_BuildValue("i",_result
);
3264 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3265 static PyObject
*_wrap_wxTextDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3266 PyObject
* _resultobj
;
3267 wxPyTextDropTarget
* _arg0
;
3268 PyObject
* _argo0
= 0;
3269 char *_kwnames
[] = { "self", NULL
};
3272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxTextDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3283 wxTextDropTarget_base_OnLeave(_arg0
);
3285 wxPyEndAllowThreads(__tstate
);
3286 if (PyErr_Occurred()) return NULL
;
3287 } Py_INCREF(Py_None
);
3288 _resultobj
= Py_None
;
3292 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3293 static PyObject
*_wrap_wxTextDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3294 PyObject
* _resultobj
;
3296 wxPyTextDropTarget
* _arg0
;
3299 PyObject
* _argo0
= 0;
3300 char *_kwnames
[] = { "self","x","y", NULL
};
3303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxTextDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3314 _result
= (bool )wxTextDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3316 wxPyEndAllowThreads(__tstate
);
3317 if (PyErr_Occurred()) return NULL
;
3318 } _resultobj
= Py_BuildValue("i",_result
);
3322 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3323 static PyObject
*_wrap_wxTextDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3324 PyObject
* _resultobj
;
3325 wxDragResult _result
;
3326 wxPyTextDropTarget
* _arg0
;
3330 PyObject
* _argo0
= 0;
3331 char *_kwnames
[] = { "self","x","y","def", NULL
};
3334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxTextDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyTextDropTarget_p")) {
3339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3345 _result
= (wxDragResult
)wxTextDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3347 wxPyEndAllowThreads(__tstate
);
3348 if (PyErr_Occurred()) return NULL
;
3349 } _resultobj
= Py_BuildValue("i",_result
);
3353 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr
) {
3354 wxPyFileDropTarget
*src
;
3355 wxPyDropTarget
*dest
;
3356 src
= (wxPyFileDropTarget
*) ptr
;
3357 dest
= (wxPyDropTarget
*) src
;
3358 return (void *) dest
;
3361 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr
) {
3362 wxPyFileDropTarget
*src
;
3364 src
= (wxPyFileDropTarget
*) ptr
;
3365 dest
= (wxDropTarget
*) src
;
3366 return (void *) dest
;
3369 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3370 static PyObject
*_wrap_new_wxFileDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3371 PyObject
* _resultobj
;
3372 wxPyFileDropTarget
* _result
;
3373 char *_kwnames
[] = { NULL
};
3377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileDropTarget",_kwnames
))
3380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3381 _result
= (wxPyFileDropTarget
*)new_wxFileDropTarget();
3383 wxPyEndAllowThreads(__tstate
);
3384 if (PyErr_Occurred()) return NULL
;
3386 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileDropTarget_p");
3387 _resultobj
= Py_BuildValue("s",_ptemp
);
3390 _resultobj
= Py_None
;
3395 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3396 static PyObject
*_wrap_wxFileDropTarget__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3397 PyObject
* _resultobj
;
3398 wxPyFileDropTarget
* _arg0
;
3401 PyObject
* _argo0
= 0;
3402 PyObject
* _obj1
= 0;
3403 PyObject
* _obj2
= 0;
3404 char *_kwnames
[] = { "self","self","_class", NULL
};
3407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3424 wxFileDropTarget__setCallbackInfo(_arg0
,_arg1
,_arg2
);
3426 wxPyEndAllowThreads(__tstate
);
3427 if (PyErr_Occurred()) return NULL
;
3428 } Py_INCREF(Py_None
);
3429 _resultobj
= Py_None
;
3433 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3434 static PyObject
*_wrap_wxFileDropTarget_base_OnEnter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3435 PyObject
* _resultobj
;
3436 wxDragResult _result
;
3437 wxPyFileDropTarget
* _arg0
;
3441 PyObject
* _argo0
= 0;
3442 char *_kwnames
[] = { "self","x","y","def", NULL
};
3445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3456 _result
= (wxDragResult
)wxFileDropTarget_base_OnEnter(_arg0
,_arg1
,_arg2
,_arg3
);
3458 wxPyEndAllowThreads(__tstate
);
3459 if (PyErr_Occurred()) return NULL
;
3460 } _resultobj
= Py_BuildValue("i",_result
);
3464 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3465 static PyObject
*_wrap_wxFileDropTarget_base_OnDragOver(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3466 PyObject
* _resultobj
;
3467 wxDragResult _result
;
3468 wxPyFileDropTarget
* _arg0
;
3472 PyObject
* _argo0
= 0;
3473 char *_kwnames
[] = { "self","x","y","def", NULL
};
3476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3487 _result
= (wxDragResult
)wxFileDropTarget_base_OnDragOver(_arg0
,_arg1
,_arg2
,_arg3
);
3489 wxPyEndAllowThreads(__tstate
);
3490 if (PyErr_Occurred()) return NULL
;
3491 } _resultobj
= Py_BuildValue("i",_result
);
3495 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3496 static PyObject
*_wrap_wxFileDropTarget_base_OnLeave(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3497 PyObject
* _resultobj
;
3498 wxPyFileDropTarget
* _arg0
;
3499 PyObject
* _argo0
= 0;
3500 char *_kwnames
[] = { "self", NULL
};
3503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileDropTarget_base_OnLeave",_kwnames
,&_argo0
))
3506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3514 wxFileDropTarget_base_OnLeave(_arg0
);
3516 wxPyEndAllowThreads(__tstate
);
3517 if (PyErr_Occurred()) return NULL
;
3518 } Py_INCREF(Py_None
);
3519 _resultobj
= Py_None
;
3523 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3524 static PyObject
*_wrap_wxFileDropTarget_base_OnDrop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3525 PyObject
* _resultobj
;
3527 wxPyFileDropTarget
* _arg0
;
3530 PyObject
* _argo0
= 0;
3531 char *_kwnames
[] = { "self","x","y", NULL
};
3534 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxFileDropTarget_base_OnDrop",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3537 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3538 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3544 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3545 _result
= (bool )wxFileDropTarget_base_OnDrop(_arg0
,_arg1
,_arg2
);
3547 wxPyEndAllowThreads(__tstate
);
3548 if (PyErr_Occurred()) return NULL
;
3549 } _resultobj
= Py_BuildValue("i",_result
);
3553 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3554 static PyObject
*_wrap_wxFileDropTarget_base_OnData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3555 PyObject
* _resultobj
;
3556 wxDragResult _result
;
3557 wxPyFileDropTarget
* _arg0
;
3561 PyObject
* _argo0
= 0;
3562 char *_kwnames
[] = { "self","x","y","def", NULL
};
3565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiii:wxFileDropTarget_base_OnData",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileDropTarget_p")) {
3570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3575 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3576 _result
= (wxDragResult
)wxFileDropTarget_base_OnData(_arg0
,_arg1
,_arg2
,_arg3
);
3578 wxPyEndAllowThreads(__tstate
);
3579 if (PyErr_Occurred()) return NULL
;
3580 } _resultobj
= Py_BuildValue("i",_result
);
3584 static PyMethodDef clip_dndcMethods
[] = {
3585 { "wxFileDropTarget_base_OnData", (PyCFunction
) _wrap_wxFileDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxFileDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxFileDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxFileDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "wxFileDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxFileDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxFileDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxFileDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxFileDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxFileDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "new_wxFileDropTarget", (PyCFunction
) _wrap_new_wxFileDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxTextDropTarget_base_OnData", (PyCFunction
) _wrap_wxTextDropTarget_base_OnData
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxTextDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxTextDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxTextDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxTextDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxTextDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "wxTextDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxTextDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxTextDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxTextDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "new_wxTextDropTarget", (PyCFunction
) _wrap_new_wxTextDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxPyDropTarget_GetData", (PyCFunction
) _wrap_wxPyDropTarget_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxPyDropTarget_base_OnDrop", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDrop
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxPyDropTarget_base_OnLeave", (PyCFunction
) _wrap_wxPyDropTarget_base_OnLeave
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxPyDropTarget_base_OnDragOver", (PyCFunction
) _wrap_wxPyDropTarget_base_OnDragOver
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxPyDropTarget_base_OnEnter", (PyCFunction
) _wrap_wxPyDropTarget_base_OnEnter
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxPyDropTarget_SetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_SetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "wxPyDropTarget_GetDataObject", (PyCFunction
) _wrap_wxPyDropTarget_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "delete_wxPyDropTarget", (PyCFunction
) _wrap_delete_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxPyDropTarget__setCallbackInfo", (PyCFunction
) _wrap_wxPyDropTarget__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "new_wxPyDropTarget", (PyCFunction
) _wrap_new_wxPyDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxDropSource_base_GiveFeedback", (PyCFunction
) _wrap_wxDropSource_base_GiveFeedback
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxDropSource_DoDragDrop", (PyCFunction
) _wrap_wxDropSource_DoDragDrop
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxDropSource_SetCursor", (PyCFunction
) _wrap_wxDropSource_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxDropSource_GetDataObject", (PyCFunction
) _wrap_wxDropSource_GetDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "wxDropSource_SetData", (PyCFunction
) _wrap_wxDropSource_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "delete_wxDropSource", (PyCFunction
) _wrap_delete_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxDropSource__setCallbackInfo", (PyCFunction
) _wrap_wxDropSource__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "new_wxDropSource", (PyCFunction
) _wrap_new_wxDropSource
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxClipboard_UsePrimarySelection", (PyCFunction
) _wrap_wxClipboard_UsePrimarySelection
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxClipboard_Flush", (PyCFunction
) _wrap_wxClipboard_Flush
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxClipboard_Clear", (PyCFunction
) _wrap_wxClipboard_Clear
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxClipboard_GetData", (PyCFunction
) _wrap_wxClipboard_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxClipboard_IsSupported", (PyCFunction
) _wrap_wxClipboard_IsSupported
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxClipboard_SetData", (PyCFunction
) _wrap_wxClipboard_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxClipboard_AddData", (PyCFunction
) _wrap_wxClipboard_AddData
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxClipboard_IsOpened", (PyCFunction
) _wrap_wxClipboard_IsOpened
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxClipboard_Close", (PyCFunction
) _wrap_wxClipboard_Close
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxClipboard_Open", (PyCFunction
) _wrap_wxClipboard_Open
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "new_wxClipboard", (PyCFunction
) _wrap_new_wxClipboard
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxMetafileDataObject_GetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_GetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxMetafileDataObject_SetMetafile", (PyCFunction
) _wrap_wxMetafileDataObject_SetMetafile
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "new_wxMetafileDataObject", (PyCFunction
) _wrap_new_wxMetafileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxURLDataObject_SetURL", (PyCFunction
) _wrap_wxURLDataObject_SetURL
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxURLDataObject_GetURL", (PyCFunction
) _wrap_wxURLDataObject_GetURL
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "new_wxURLDataObject", (PyCFunction
) _wrap_new_wxURLDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxCustomDataObject_GetData", (PyCFunction
) _wrap_wxCustomDataObject_GetData
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "wxCustomDataObject_GetSize", (PyCFunction
) _wrap_wxCustomDataObject_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxCustomDataObject_SetData", (PyCFunction
) _wrap_wxCustomDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "wxCustomDataObject_TakeData", (PyCFunction
) _wrap_wxCustomDataObject_TakeData
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "new_wxCustomDataObject", (PyCFunction
) _wrap_new_wxCustomDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxFileDataObject_AddFile", (PyCFunction
) _wrap_wxFileDataObject_AddFile
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "wxFileDataObject_GetFilenames", (PyCFunction
) _wrap_wxFileDataObject_GetFilenames
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "new_wxFileDataObject", (PyCFunction
) _wrap_new_wxFileDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyBitmapDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "new_wxPyBitmapDataObject", (PyCFunction
) _wrap_new_wxPyBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxBitmapDataObject_SetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "wxBitmapDataObject_GetBitmap", (PyCFunction
) _wrap_wxBitmapDataObject_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "new_wxBitmapDataObject", (PyCFunction
) _wrap_new_wxBitmapDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction
) _wrap_wxPyTextDataObject__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "new_wxPyTextDataObject", (PyCFunction
) _wrap_new_wxPyTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxTextDataObject_SetText", (PyCFunction
) _wrap_wxTextDataObject_SetText
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxTextDataObject_GetText", (PyCFunction
) _wrap_wxTextDataObject_GetText
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "wxTextDataObject_GetTextLength", (PyCFunction
) _wrap_wxTextDataObject_GetTextLength
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "new_wxTextDataObject", (PyCFunction
) _wrap_new_wxTextDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "wxDataObjectComposite_Add", (PyCFunction
) _wrap_wxDataObjectComposite_Add
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "new_wxDataObjectComposite", (PyCFunction
) _wrap_new_wxDataObjectComposite
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction
) _wrap_wxPyDataObjectSimple__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
3656 { "new_wxPyDataObjectSimple", (PyCFunction
) _wrap_new_wxPyDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3657 { "wxDataObjectSimple_SetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_SetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3658 { "wxDataObjectSimple_GetFormat", (PyCFunction
) _wrap_wxDataObjectSimple_GetFormat
, METH_VARARGS
| METH_KEYWORDS
},
3659 { "new_wxDataObjectSimple", (PyCFunction
) _wrap_new_wxDataObjectSimple
, METH_VARARGS
| METH_KEYWORDS
},
3660 { "wxDataObject_IsSupportedFormat", (PyCFunction
) _wrap_wxDataObject_IsSupportedFormat
, METH_VARARGS
| METH_KEYWORDS
},
3661 { "wxDataObject_SetData", (PyCFunction
) _wrap_wxDataObject_SetData
, METH_VARARGS
| METH_KEYWORDS
},
3662 { "wxDataObject_GetDataHere", (PyCFunction
) _wrap_wxDataObject_GetDataHere
, METH_VARARGS
| METH_KEYWORDS
},
3663 { "wxDataObject_GetDataSize", (PyCFunction
) _wrap_wxDataObject_GetDataSize
, METH_VARARGS
| METH_KEYWORDS
},
3664 { "wxDataObject_GetAllFormats", (PyCFunction
) _wrap_wxDataObject_GetAllFormats
, METH_VARARGS
| METH_KEYWORDS
},
3665 { "wxDataObject_GetFormatCount", (PyCFunction
) _wrap_wxDataObject_GetFormatCount
, METH_VARARGS
| METH_KEYWORDS
},
3666 { "wxDataObject_GetPreferredFormat", (PyCFunction
) _wrap_wxDataObject_GetPreferredFormat
, METH_VARARGS
| METH_KEYWORDS
},
3667 { "delete_wxDataObject", (PyCFunction
) _wrap_delete_wxDataObject
, METH_VARARGS
| METH_KEYWORDS
},
3668 { "wxDataFormat_SetId", (PyCFunction
) _wrap_wxDataFormat_SetId
, METH_VARARGS
| METH_KEYWORDS
},
3669 { "wxDataFormat_GetId", (PyCFunction
) _wrap_wxDataFormat_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3670 { "wxDataFormat_GetType", (PyCFunction
) _wrap_wxDataFormat_GetType
, METH_VARARGS
| METH_KEYWORDS
},
3671 { "wxDataFormat_SetType", (PyCFunction
) _wrap_wxDataFormat_SetType
, METH_VARARGS
| METH_KEYWORDS
},
3672 { "delete_wxDataFormat", (PyCFunction
) _wrap_delete_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3673 { "new_wxDataFormat", (PyCFunction
) _wrap_new_wxDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3674 { "wxIsDragResultOk", (PyCFunction
) _wrap_wxIsDragResultOk
, METH_VARARGS
| METH_KEYWORDS
},
3675 { "wxCustomDataFormat", (PyCFunction
) _wrap_wxCustomDataFormat
, METH_VARARGS
| METH_KEYWORDS
},
3682 * This table is used by the pointer type-checker
3684 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3685 { "_signed_long","_long",0},
3686 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject
},
3687 { "_wxPrintQuality","_wxCoord",0},
3688 { "_wxPrintQuality","_int",0},
3689 { "_wxPrintQuality","_signed_int",0},
3690 { "_wxPrintQuality","_unsigned_int",0},
3691 { "_wxPrintQuality","_wxWindowID",0},
3692 { "_wxPrintQuality","_uint",0},
3693 { "_wxPrintQuality","_EBool",0},
3694 { "_wxPrintQuality","_size_t",0},
3695 { "_wxPrintQuality","_time_t",0},
3696 { "_byte","_unsigned_char",0},
3697 { "_wxDataObject","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObject
},
3698 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject
},
3699 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject
},
3700 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject
},
3701 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject
},
3702 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject
},
3703 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject
},
3704 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject
},
3705 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject
},
3706 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject
},
3707 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject
},
3708 { "_long","_unsigned_long",0},
3709 { "_long","_signed_long",0},
3710 { "_wxDataObjectSimple","_wxMetafileDataObject",SwigwxMetafileDataObjectTowxDataObjectSimple
},
3711 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple
},
3712 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple
},
3713 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple
},
3714 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple
},
3715 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple
},
3716 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple
},
3717 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple
},
3718 { "_size_t","_wxCoord",0},
3719 { "_size_t","_wxPrintQuality",0},
3720 { "_size_t","_time_t",0},
3721 { "_size_t","_unsigned_int",0},
3722 { "_size_t","_int",0},
3723 { "_size_t","_wxWindowID",0},
3724 { "_size_t","_uint",0},
3725 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject
},
3726 { "_uint","_wxCoord",0},
3727 { "_uint","_wxPrintQuality",0},
3728 { "_uint","_time_t",0},
3729 { "_uint","_size_t",0},
3730 { "_uint","_unsigned_int",0},
3731 { "_uint","_int",0},
3732 { "_uint","_wxWindowID",0},
3733 { "_wxChar","_char",0},
3734 { "_char","_wxChar",0},
3735 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3736 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget
},
3737 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget
},
3738 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget
},
3739 { "_EBool","_wxCoord",0},
3740 { "_EBool","_wxPrintQuality",0},
3741 { "_EBool","_signed_int",0},
3742 { "_EBool","_int",0},
3743 { "_EBool","_wxWindowID",0},
3744 { "_unsigned_long","_long",0},
3745 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3746 { "_signed_int","_wxCoord",0},
3747 { "_signed_int","_wxPrintQuality",0},
3748 { "_signed_int","_EBool",0},
3749 { "_signed_int","_wxWindowID",0},
3750 { "_signed_int","_int",0},
3751 { "_WXTYPE","_short",0},
3752 { "_WXTYPE","_signed_short",0},
3753 { "_WXTYPE","_unsigned_short",0},
3754 { "_unsigned_short","_WXTYPE",0},
3755 { "_unsigned_short","_short",0},
3756 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject
},
3757 { "_signed_short","_WXTYPE",0},
3758 { "_signed_short","_short",0},
3759 { "_unsigned_char","_byte",0},
3760 { "_unsigned_int","_wxCoord",0},
3761 { "_unsigned_int","_wxPrintQuality",0},
3762 { "_unsigned_int","_time_t",0},
3763 { "_unsigned_int","_size_t",0},
3764 { "_unsigned_int","_uint",0},
3765 { "_unsigned_int","_wxWindowID",0},
3766 { "_unsigned_int","_int",0},
3767 { "_short","_WXTYPE",0},
3768 { "_short","_unsigned_short",0},
3769 { "_short","_signed_short",0},
3770 { "_wxWindowID","_wxCoord",0},
3771 { "_wxWindowID","_wxPrintQuality",0},
3772 { "_wxWindowID","_time_t",0},
3773 { "_wxWindowID","_size_t",0},
3774 { "_wxWindowID","_EBool",0},
3775 { "_wxWindowID","_uint",0},
3776 { "_wxWindowID","_int",0},
3777 { "_wxWindowID","_signed_int",0},
3778 { "_wxWindowID","_unsigned_int",0},
3779 { "_int","_wxCoord",0},
3780 { "_int","_wxPrintQuality",0},
3781 { "_int","_time_t",0},
3782 { "_int","_size_t",0},
3783 { "_int","_EBool",0},
3784 { "_int","_uint",0},
3785 { "_int","_wxWindowID",0},
3786 { "_int","_unsigned_int",0},
3787 { "_int","_signed_int",0},
3788 { "_time_t","_wxCoord",0},
3789 { "_time_t","_wxPrintQuality",0},
3790 { "_time_t","_unsigned_int",0},
3791 { "_time_t","_int",0},
3792 { "_time_t","_wxWindowID",0},
3793 { "_time_t","_uint",0},
3794 { "_time_t","_size_t",0},
3795 { "_wxCoord","_int",0},
3796 { "_wxCoord","_signed_int",0},
3797 { "_wxCoord","_unsigned_int",0},
3798 { "_wxCoord","_wxWindowID",0},
3799 { "_wxCoord","_uint",0},
3800 { "_wxCoord","_EBool",0},
3801 { "_wxCoord","_size_t",0},
3802 { "_wxCoord","_time_t",0},
3803 { "_wxCoord","_wxPrintQuality",0},
3804 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite
},
3805 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget
},
3806 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget
},
3809 static PyObject
*SWIG_globals
;
3813 SWIGEXPORT(void) initclip_dndc() {
3815 SWIG_globals
= SWIG_newvarlink();
3816 m
= Py_InitModule("clip_dndc", clip_dndcMethods
);
3817 d
= PyModule_GetDict(m
);
3818 PyDict_SetItemString(d
,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID
));
3819 PyDict_SetItemString(d
,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT
));
3820 PyDict_SetItemString(d
,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP
));
3821 PyDict_SetItemString(d
,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE
));
3822 PyDict_SetItemString(d
,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK
));
3823 PyDict_SetItemString(d
,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF
));
3824 PyDict_SetItemString(d
,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF
));
3825 PyDict_SetItemString(d
,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT
));
3826 PyDict_SetItemString(d
,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB
));
3827 PyDict_SetItemString(d
,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE
));
3828 PyDict_SetItemString(d
,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA
));
3829 PyDict_SetItemString(d
,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF
));
3830 PyDict_SetItemString(d
,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE
));
3831 PyDict_SetItemString(d
,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT
));
3832 PyDict_SetItemString(d
,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE
));
3833 PyDict_SetItemString(d
,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME
));
3834 PyDict_SetItemString(d
,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE
));
3835 PyDict_SetItemString(d
,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE
));
3836 PyDict_SetItemString(d
,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX
));
3837 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
3838 SWIG_addvarlink(SWIG_globals
,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get
, _wrap_wxPyFormatInvalid_set
);
3839 SWIG_addvarlink(SWIG_globals
,"wxTheClipboard",_wrap_wxPyTheClipboard_get
, _wrap_wxPyTheClipboard_set
);
3840 PyDict_SetItemString(d
,"wxDragError", PyInt_FromLong((long) wxDragError
));
3841 PyDict_SetItemString(d
,"wxDragNone", PyInt_FromLong((long) wxDragNone
));
3842 PyDict_SetItemString(d
,"wxDragCopy", PyInt_FromLong((long) wxDragCopy
));
3843 PyDict_SetItemString(d
,"wxDragMove", PyInt_FromLong((long) wxDragMove
));
3844 PyDict_SetItemString(d
,"wxDragLink", PyInt_FromLong((long) wxDragLink
));
3845 PyDict_SetItemString(d
,"wxDragCancel", PyInt_FromLong((long) wxDragCancel
));
3848 wxPyTheClipboard
= wxTheClipboard
;
3849 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3850 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3851 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3852 PyDict_SetItemString(d
,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get
));
3853 PyDict_SetItemString(d
,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set
));
3854 PyDict_SetItemString(d
,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both
));
3857 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3858 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);