]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/clip_dnd.cpp
493610c844653a8091a43d85c0f4555838e24cd1
[wxWidgets.git] / wxPython / src / msw / clip_dnd.cpp
1 /*
2 * FILE : src/msw/clip_dnd.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
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.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
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);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initclip_dndc
55
56 #define SWIG_name "clip_dndc"
57
58 #include "helpers.h"
59 #include <wx/dataobj.h>
60 #include <wx/clipbrd.h>
61 #include <wx/dnd.h>
62
63
64 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
65 PyObject* o2;
66 PyObject* o3;
67
68 if (!target) {
69 target = o;
70 } else if (target == Py_None) {
71 Py_DECREF(Py_None);
72 target = o;
73 } else {
74 if (!PyTuple_Check(target)) {
75 o2 = target;
76 target = PyTuple_New(1);
77 PyTuple_SetItem(target, 0, o2);
78 }
79 o3 = PyTuple_New(1);
80 PyTuple_SetItem(o3, 0, o);
81
82 o2 = target;
83 target = PySequence_Concat(o2, o3);
84 Py_DECREF(o2);
85 Py_DECREF(o3);
86 }
87 return target;
88 }
89 // An alternate constructor...
90 wxDataFormat* wxCustomDataFormat(const wxString &id) {
91 return new wxDataFormat(id);
92 }
93
94 wxDataFormat wxPyFormatInvalid;
95 // Create a new class for wxPython to use
96 class wxPyDataObjectSimple : public wxDataObjectSimple {
97 public:
98 wxPyDataObjectSimple(const wxDataFormat& format = wxPyFormatInvalid)
99 : wxDataObjectSimple(format) {}
100
101 DEC_PYCALLBACK_SIZET_(GetDataSize);
102 bool GetDataHere(void *buf);
103 bool SetData(size_t len, const void *buf);
104 PYPRIVATE;
105 };
106
107 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
108
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
113 // C++ version.
114
115 bool rval = FALSE;
116 wxPyBeginBlockThreads();
117 if (m_myInst.findCallback("GetDataHere")) {
118 PyObject* ro;
119 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
120 if (ro) {
121 rval = (ro != Py_None && PyString_Check(ro));
122 if (rval)
123 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
124 Py_DECREF(ro);
125 }
126 }
127 wxPyEndBlockThreads();
128 return rval;
129 }
130
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.
134 bool rval = FALSE;
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));
139 Py_DECREF(data);
140 }
141 wxPyEndBlockThreads();
142 return rval;
143 }
144 // Create a new class for wxPython to use
145 class wxPyTextDataObject : public wxTextDataObject {
146 public:
147 wxPyTextDataObject(const wxString& text = wxEmptyString)
148 : wxTextDataObject(text) {}
149
150 DEC_PYCALLBACK_SIZET_(GetTextLength);
151 DEC_PYCALLBACK_STRING_(GetText);
152 DEC_PYCALLBACK__STRING(SetText);
153 PYPRIVATE;
154 };
155
156 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject, wxTextDataObject, GetTextLength);
157 IMP_PYCALLBACK_STRING_(wxPyTextDataObject, wxTextDataObject, GetText);
158 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
159
160 // Create a new class for wxPython to use
161 class wxPyBitmapDataObject : public wxBitmapDataObject {
162 public:
163 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
164 : wxBitmapDataObject(bitmap) {}
165
166 wxBitmap GetBitmap();
167 void SetBitmap(const wxBitmap& bitmap);
168 PYPRIVATE;
169 };
170
171 wxBitmap wxPyBitmapDataObject::GetBitmap() {
172 wxBitmap* rval = &wxNullBitmap;
173 wxPyBeginBlockThreads();
174 if (m_myInst.findCallback("GetBitmap")) {
175 PyObject* ro;
176 wxBitmap* ptr;
177 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
178 if (ro) {
179 if (!SWIG_GetPtrObj(ro, (void **)&ptr, "_wxBitmap_p"))
180 rval = ptr;
181 Py_DECREF(ro);
182 }
183 }
184 wxPyEndBlockThreads();
185 return *rval;
186 }
187
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")));
193 }
194 wxPyEndBlockThreads();
195 }
196
197 #include <wx/metafile.h>
198
199 // See below in the init function...
200 wxClipboard* wxPyTheClipboard;
201
202 class wxPyDropSource : public wxDropSource {
203 public:
204 #ifdef __WXMSW__
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) {}
210 #else
211 wxPyDropSource(wxWindow *win = NULL,
212 const wxIcon &go = wxNullIcon)
213 : wxDropSource(win, go) {}
214 #endif
215 ~wxPyDropSource() { }
216
217 DEC_PYCALLBACK_BOOL_DR(GiveFeedback);
218 PYPRIVATE;
219 };
220
221 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
222
223
224 class wxPyDropTarget : public wxDropTarget {
225 public:
226 wxPyDropTarget(wxDataObject *dataObject = NULL)
227 : wxDropTarget(dataObject) {}
228
229 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
230 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
231
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);
237
238 PYPRIVATE;
239 };
240
241 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
242 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
243
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);
249
250
251 class wxPyTextDropTarget : public wxTextDropTarget {
252 public:
253 wxPyTextDropTarget() {}
254
255 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
256
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);
262
263 PYPRIVATE;
264 };
265
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);
272
273
274 class wxPyFileDropTarget : public wxFileDropTarget {
275 public:
276 wxPyFileDropTarget() {}
277
278 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
279
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);
285
286 PYPRIVATE;
287 };
288
289 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
290 const wxArrayString& filenames) {
291 bool rval = FALSE;
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));
296 Py_DECREF(list);
297 wxPyEndBlockThreads();
298 return rval;
299 }
300
301
302
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);
308
309 #ifdef __cplusplus
310 extern "C" {
311 #endif
312 static PyObject *_wrap_wxCustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
313 PyObject * _resultobj;
314 wxDataFormat * _result;
315 wxString * _arg0;
316 PyObject * _obj0 = 0;
317 char *_kwnames[] = { "id", NULL };
318 char _ptemp[128];
319
320 self = self;
321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataFormat",_kwnames,&_obj0))
322 return NULL;
323 {
324 _arg0 = wxString_in_helper(_obj0);
325 if (_arg0 == NULL)
326 return NULL;
327 }
328 {
329 PyThreadState* __tstate = wxPyBeginAllowThreads();
330 _result = (wxDataFormat *)wxCustomDataFormat(*_arg0);
331
332 wxPyEndAllowThreads(__tstate);
333 if (PyErr_Occurred()) return NULL;
334 } if (_result) {
335 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
336 _resultobj = Py_BuildValue("s",_ptemp);
337 } else {
338 Py_INCREF(Py_None);
339 _resultobj = Py_None;
340 }
341 {
342 if (_obj0)
343 delete _arg0;
344 }
345 return _resultobj;
346 }
347
348 static int _wrap_wxPyFormatInvalid_set(PyObject *val) {
349
350 PyErr_SetString(PyExc_TypeError,"Variable wxFormatInvalid is read-only.");
351 return 1;
352 }
353
354 static PyObject *_wrap_wxPyFormatInvalid_get() {
355 PyObject * pyobj;
356 char ptemp[128];
357
358 SWIG_MakePtr(ptemp,(char *) &wxPyFormatInvalid,"_wxDataFormat_p");
359 pyobj = PyString_FromString(ptemp);
360 return pyobj;
361 }
362
363 static int _wrap_wxPyTheClipboard_set(PyObject *val) {
364
365 PyErr_SetString(PyExc_TypeError,"Variable wxTheClipboard is read-only.");
366 return 1;
367 }
368
369 static PyObject *_wrap_wxPyTheClipboard_get() {
370 PyObject * pyobj;
371 char ptemp[128];
372
373 SWIG_MakePtr(ptemp, (char *) wxPyTheClipboard,"_wxClipboard_p");
374 pyobj = PyString_FromString(ptemp);
375 return pyobj;
376 }
377
378 static PyObject *_wrap_wxIsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
379 PyObject * _resultobj;
380 bool _result;
381 wxDragResult _arg0;
382 char *_kwnames[] = { "res", NULL };
383
384 self = self;
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxIsDragResultOk",_kwnames,&_arg0))
386 return NULL;
387 {
388 PyThreadState* __tstate = wxPyBeginAllowThreads();
389 _result = (bool )wxIsDragResultOk(_arg0);
390
391 wxPyEndAllowThreads(__tstate);
392 if (PyErr_Occurred()) return NULL;
393 } _resultobj = Py_BuildValue("i",_result);
394 return _resultobj;
395 }
396
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 };
403 char _ptemp[128];
404
405 self = self;
406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDataFormat",_kwnames,&_arg0))
407 return NULL;
408 {
409 PyThreadState* __tstate = wxPyBeginAllowThreads();
410 _result = (wxDataFormat *)new_wxDataFormat(_arg0);
411
412 wxPyEndAllowThreads(__tstate);
413 if (PyErr_Occurred()) return NULL;
414 } if (_result) {
415 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
416 _resultobj = Py_BuildValue("s",_ptemp);
417 } else {
418 Py_INCREF(Py_None);
419 _resultobj = Py_None;
420 }
421 return _resultobj;
422 }
423
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 };
430
431 self = self;
432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataFormat",_kwnames,&_argo0))
433 return NULL;
434 if (_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.");
438 return NULL;
439 }
440 }
441 {
442 PyThreadState* __tstate = wxPyBeginAllowThreads();
443 delete_wxDataFormat(_arg0);
444
445 wxPyEndAllowThreads(__tstate);
446 if (PyErr_Occurred()) return NULL;
447 } Py_INCREF(Py_None);
448 _resultobj = Py_None;
449 return _resultobj;
450 }
451
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 };
459
460 self = self;
461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDataFormat_SetType",_kwnames,&_argo0,&_arg1))
462 return NULL;
463 if (_argo0) {
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.");
467 return NULL;
468 }
469 }
470 {
471 PyThreadState* __tstate = wxPyBeginAllowThreads();
472 wxDataFormat_SetType(_arg0,_arg1);
473
474 wxPyEndAllowThreads(__tstate);
475 if (PyErr_Occurred()) return NULL;
476 } Py_INCREF(Py_None);
477 _resultobj = Py_None;
478 return _resultobj;
479 }
480
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 };
488
489 self = self;
490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetType",_kwnames,&_argo0))
491 return NULL;
492 if (_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.");
496 return NULL;
497 }
498 }
499 {
500 PyThreadState* __tstate = wxPyBeginAllowThreads();
501 _result = (wxDataFormatId )wxDataFormat_GetType(_arg0);
502
503 wxPyEndAllowThreads(__tstate);
504 if (PyErr_Occurred()) return NULL;
505 } _resultobj = Py_BuildValue("i",_result);
506 return _resultobj;
507 }
508
509 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
510 static PyObject *_wrap_wxDataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
511 PyObject * _resultobj;
512 wxString * _result;
513 wxDataFormat * _arg0;
514 PyObject * _argo0 = 0;
515 char *_kwnames[] = { "self", NULL };
516
517 self = self;
518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetId",_kwnames,&_argo0))
519 return NULL;
520 if (_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.");
524 return NULL;
525 }
526 }
527 {
528 PyThreadState* __tstate = wxPyBeginAllowThreads();
529 _result = new wxString (wxDataFormat_GetId(_arg0));
530
531 wxPyEndAllowThreads(__tstate);
532 if (PyErr_Occurred()) return NULL;
533 }{
534 #if wxUSE_UNICODE
535 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
536 #else
537 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
538 #endif
539 }
540 {
541 delete _result;
542 }
543 return _resultobj;
544 }
545
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;
550 wxChar * _arg1;
551 PyObject * _argo0 = 0;
552 char *_kwnames[] = { "self","format", NULL };
553
554 self = self;
555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDataFormat_SetId",_kwnames,&_argo0,&_arg1))
556 return NULL;
557 if (_argo0) {
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.");
561 return NULL;
562 }
563 }
564 {
565 PyThreadState* __tstate = wxPyBeginAllowThreads();
566 wxDataFormat_SetId(_arg0,_arg1);
567
568 wxPyEndAllowThreads(__tstate);
569 if (PyErr_Occurred()) return NULL;
570 } Py_INCREF(Py_None);
571 _resultobj = Py_None;
572 return _resultobj;
573 }
574
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 };
581
582 self = self;
583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataObject",_kwnames,&_argo0))
584 return NULL;
585 if (_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.");
589 return NULL;
590 }
591 }
592 {
593 PyThreadState* __tstate = wxPyBeginAllowThreads();
594 delete_wxDataObject(_arg0);
595
596 wxPyEndAllowThreads(__tstate);
597 if (PyErr_Occurred()) return NULL;
598 } Py_INCREF(Py_None);
599 _resultobj = Py_None;
600 return _resultobj;
601 }
602
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 };
611 char _ptemp[128];
612
613 self = self;
614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetPreferredFormat",_kwnames,&_argo0,&_arg1))
615 return NULL;
616 if (_argo0) {
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.");
620 return NULL;
621 }
622 }
623 {
624 PyThreadState* __tstate = wxPyBeginAllowThreads();
625 _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1));
626
627 wxPyEndAllowThreads(__tstate);
628 if (PyErr_Occurred()) return NULL;
629 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDataFormat_p");
630 _resultobj = Py_BuildValue("s",_ptemp);
631 return _resultobj;
632 }
633
634 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
635 static PyObject *_wrap_wxDataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
636 PyObject * _resultobj;
637 size_t _result;
638 wxDataObject * _arg0;
639 wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get;
640 PyObject * _argo0 = 0;
641 char *_kwnames[] = { "self","dir", NULL };
642
643 self = self;
644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetFormatCount",_kwnames,&_argo0,&_arg1))
645 return NULL;
646 if (_argo0) {
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.");
650 return NULL;
651 }
652 }
653 {
654 PyThreadState* __tstate = wxPyBeginAllowThreads();
655 _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1);
656
657 wxPyEndAllowThreads(__tstate);
658 if (PyErr_Occurred()) return NULL;
659 } _resultobj = Py_BuildValue("i",_result);
660 return _resultobj;
661 }
662
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 };
672
673 self = self;
674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObject_GetAllFormats",_kwnames,&_argo0,&_argo1,&_arg2))
675 return NULL;
676 if (_argo0) {
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.");
680 return NULL;
681 }
682 }
683 if (_argo1) {
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.");
687 return NULL;
688 }
689 }
690 {
691 PyThreadState* __tstate = wxPyBeginAllowThreads();
692 wxDataObject_GetAllFormats(_arg0,_arg1,_arg2);
693
694 wxPyEndAllowThreads(__tstate);
695 if (PyErr_Occurred()) return NULL;
696 } Py_INCREF(Py_None);
697 _resultobj = Py_None;
698 return _resultobj;
699 }
700
701 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
702 static PyObject *_wrap_wxDataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
703 PyObject * _resultobj;
704 size_t _result;
705 wxDataObject * _arg0;
706 wxDataFormat * _arg1;
707 PyObject * _argo0 = 0;
708 PyObject * _argo1 = 0;
709 char *_kwnames[] = { "self","format", NULL };
710
711 self = self;
712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_GetDataSize",_kwnames,&_argo0,&_argo1))
713 return NULL;
714 if (_argo0) {
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.");
718 return NULL;
719 }
720 }
721 if (_argo1) {
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.");
725 return NULL;
726 }
727 }
728 {
729 PyThreadState* __tstate = wxPyBeginAllowThreads();
730 _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1);
731
732 wxPyEndAllowThreads(__tstate);
733 if (PyErr_Occurred()) return NULL;
734 } _resultobj = Py_BuildValue("i",_result);
735 return _resultobj;
736 }
737
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;
741 bool _result;
742 wxDataObject * _arg0;
743 wxDataFormat * _arg1;
744 void * _arg2;
745 PyObject * _argo0 = 0;
746 PyObject * _argo1 = 0;
747 PyObject * _argo2 = 0;
748 char *_kwnames[] = { "self","format","buf", NULL };
749
750 self = self;
751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDataObject_GetDataHere",_kwnames,&_argo0,&_argo1,&_argo2))
752 return NULL;
753 if (_argo0) {
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.");
757 return NULL;
758 }
759 }
760 if (_argo1) {
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.");
764 return NULL;
765 }
766 }
767 if (_argo2) {
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.");
771 return NULL;
772 }
773 }
774 {
775 PyThreadState* __tstate = wxPyBeginAllowThreads();
776 _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2);
777
778 wxPyEndAllowThreads(__tstate);
779 if (PyErr_Occurred()) return NULL;
780 } _resultobj = Py_BuildValue("i",_result);
781 return _resultobj;
782 }
783
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;
787 bool _result;
788 wxDataObject * _arg0;
789 wxDataFormat * _arg1;
790 size_t _arg2;
791 void * _arg3;
792 PyObject * _argo0 = 0;
793 PyObject * _argo1 = 0;
794 PyObject * _argo3 = 0;
795 char *_kwnames[] = { "self","format","len","buf", NULL };
796
797 self = self;
798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO:wxDataObject_SetData",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3))
799 return NULL;
800 if (_argo0) {
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.");
804 return NULL;
805 }
806 }
807 if (_argo1) {
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.");
811 return NULL;
812 }
813 }
814 if (_argo3) {
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.");
818 return NULL;
819 }
820 }
821 {
822 PyThreadState* __tstate = wxPyBeginAllowThreads();
823 _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3);
824
825 wxPyEndAllowThreads(__tstate);
826 if (PyErr_Occurred()) return NULL;
827 } _resultobj = Py_BuildValue("i",_result);
828 return _resultobj;
829 }
830
831 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
832 static PyObject *_wrap_wxDataObject_IsSupportedFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
833 PyObject * _resultobj;
834 bool _result;
835 wxDataObject * _arg0;
836 wxDataFormat * _arg1;
837 PyObject * _argo0 = 0;
838 PyObject * _argo1 = 0;
839 char *_kwnames[] = { "self","format", NULL };
840
841 self = self;
842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_IsSupportedFormat",_kwnames,&_argo0,&_argo1))
843 return NULL;
844 if (_argo0) {
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.");
848 return NULL;
849 }
850 }
851 if (_argo1) {
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.");
855 return NULL;
856 }
857 }
858 {
859 PyThreadState* __tstate = wxPyBeginAllowThreads();
860 _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1);
861
862 wxPyEndAllowThreads(__tstate);
863 if (PyErr_Occurred()) return NULL;
864 } _resultobj = Py_BuildValue("i",_result);
865 return _resultobj;
866 }
867
868 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr) {
869 wxDataObjectSimple *src;
870 wxDataObject *dest;
871 src = (wxDataObjectSimple *) ptr;
872 dest = (wxDataObject *) src;
873 return (void *) dest;
874 }
875
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 };
883 char _ptemp[128];
884
885 self = self;
886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxDataObjectSimple",_kwnames,&_argo0))
887 return NULL;
888 if (_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.");
892 return NULL;
893 }
894 }
895 {
896 PyThreadState* __tstate = wxPyBeginAllowThreads();
897 _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0);
898
899 wxPyEndAllowThreads(__tstate);
900 if (PyErr_Occurred()) return NULL;
901 } if (_result) {
902 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectSimple_p");
903 _resultobj = Py_BuildValue("s",_ptemp);
904 } else {
905 Py_INCREF(Py_None);
906 _resultobj = Py_None;
907 }
908 return _resultobj;
909 }
910
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 };
918 char _ptemp[128];
919
920 self = self;
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataObjectSimple_GetFormat",_kwnames,&_argo0))
922 return NULL;
923 if (_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.");
927 return NULL;
928 }
929 }
930 {
931 PyThreadState* __tstate = wxPyBeginAllowThreads();
932 const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0);
933 _result = (wxDataFormat *) &_result_ref;
934
935 wxPyEndAllowThreads(__tstate);
936 if (PyErr_Occurred()) return NULL;
937 } if (_result) {
938 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
939 _resultobj = Py_BuildValue("s",_ptemp);
940 } else {
941 Py_INCREF(Py_None);
942 _resultobj = Py_None;
943 }
944 return _resultobj;
945 }
946
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 };
955
956 self = self;
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObjectSimple_SetFormat",_kwnames,&_argo0,&_argo1))
958 return NULL;
959 if (_argo0) {
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.");
963 return NULL;
964 }
965 }
966 if (_argo1) {
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.");
970 return NULL;
971 }
972 }
973 {
974 PyThreadState* __tstate = wxPyBeginAllowThreads();
975 wxDataObjectSimple_SetFormat(_arg0,*_arg1);
976
977 wxPyEndAllowThreads(__tstate);
978 if (PyErr_Occurred()) return NULL;
979 } Py_INCREF(Py_None);
980 _resultobj = Py_None;
981 return _resultobj;
982 }
983
984 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr) {
985 wxPyDataObjectSimple *src;
986 wxDataObjectSimple *dest;
987 src = (wxPyDataObjectSimple *) ptr;
988 dest = (wxDataObjectSimple *) src;
989 return (void *) dest;
990 }
991
992 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr) {
993 wxPyDataObjectSimple *src;
994 wxDataObject *dest;
995 src = (wxPyDataObjectSimple *) ptr;
996 dest = (wxDataObject *) src;
997 return (void *) dest;
998 }
999
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 };
1007 char _ptemp[128];
1008
1009 self = self;
1010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDataObjectSimple",_kwnames,&_argo0))
1011 return NULL;
1012 if (_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.");
1016 return NULL;
1017 }
1018 }
1019 {
1020 PyThreadState* __tstate = wxPyBeginAllowThreads();
1021 _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0);
1022
1023 wxPyEndAllowThreads(__tstate);
1024 if (PyErr_Occurred()) return NULL;
1025 } if (_result) {
1026 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDataObjectSimple_p");
1027 _resultobj = Py_BuildValue("s",_ptemp);
1028 } else {
1029 Py_INCREF(Py_None);
1030 _resultobj = Py_None;
1031 }
1032 return _resultobj;
1033 }
1034
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;
1039 PyObject * _arg1;
1040 PyObject * _arg2;
1041 PyObject * _argo0 = 0;
1042 PyObject * _obj1 = 0;
1043 PyObject * _obj2 = 0;
1044 char *_kwnames[] = { "self","self","_class", NULL };
1045
1046 self = self;
1047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1048 return NULL;
1049 if (_argo0) {
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.");
1053 return NULL;
1054 }
1055 }
1056 {
1057 _arg1 = _obj1;
1058 }
1059 {
1060 _arg2 = _obj2;
1061 }
1062 {
1063 PyThreadState* __tstate = wxPyBeginAllowThreads();
1064 wxPyDataObjectSimple__setCallbackInfo(_arg0,_arg1,_arg2);
1065
1066 wxPyEndAllowThreads(__tstate);
1067 if (PyErr_Occurred()) return NULL;
1068 } Py_INCREF(Py_None);
1069 _resultobj = Py_None;
1070 return _resultobj;
1071 }
1072
1073 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr) {
1074 wxDataObjectComposite *src;
1075 wxDataObject *dest;
1076 src = (wxDataObjectComposite *) ptr;
1077 dest = (wxDataObject *) src;
1078 return (void *) dest;
1079 }
1080
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 };
1086 char _ptemp[128];
1087
1088 self = self;
1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDataObjectComposite",_kwnames))
1090 return NULL;
1091 {
1092 PyThreadState* __tstate = wxPyBeginAllowThreads();
1093 _result = (wxDataObjectComposite *)new_wxDataObjectComposite();
1094
1095 wxPyEndAllowThreads(__tstate);
1096 if (PyErr_Occurred()) return NULL;
1097 } if (_result) {
1098 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectComposite_p");
1099 _resultobj = Py_BuildValue("s",_ptemp);
1100 } else {
1101 Py_INCREF(Py_None);
1102 _resultobj = Py_None;
1103 }
1104 return _resultobj;
1105 }
1106
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 };
1116
1117 self = self;
1118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObjectComposite_Add",_kwnames,&_argo0,&_argo1,&_arg2))
1119 return NULL;
1120 if (_argo0) {
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.");
1124 return NULL;
1125 }
1126 }
1127 if (_argo1) {
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.");
1131 return NULL;
1132 }
1133 }
1134 {
1135 PyThreadState* __tstate = wxPyBeginAllowThreads();
1136 wxDataObjectComposite_Add(_arg0,_arg1,_arg2);
1137
1138 wxPyEndAllowThreads(__tstate);
1139 if (PyErr_Occurred()) return NULL;
1140 } Py_INCREF(Py_None);
1141 _resultobj = Py_None;
1142 return _resultobj;
1143 }
1144
1145 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr) {
1146 wxTextDataObject *src;
1147 wxDataObjectSimple *dest;
1148 src = (wxTextDataObject *) ptr;
1149 dest = (wxDataObjectSimple *) src;
1150 return (void *) dest;
1151 }
1152
1153 static void *SwigwxTextDataObjectTowxDataObject(void *ptr) {
1154 wxTextDataObject *src;
1155 wxDataObject *dest;
1156 src = (wxTextDataObject *) ptr;
1157 dest = (wxDataObject *) src;
1158 return (void *) dest;
1159 }
1160
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 };
1168 char _ptemp[128];
1169
1170 self = self;
1171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTextDataObject",_kwnames,&_obj0))
1172 return NULL;
1173 if (_obj0)
1174 {
1175 _arg0 = wxString_in_helper(_obj0);
1176 if (_arg0 == NULL)
1177 return NULL;
1178 }
1179 {
1180 PyThreadState* __tstate = wxPyBeginAllowThreads();
1181 _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0);
1182
1183 wxPyEndAllowThreads(__tstate);
1184 if (PyErr_Occurred()) return NULL;
1185 } if (_result) {
1186 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextDataObject_p");
1187 _resultobj = Py_BuildValue("s",_ptemp);
1188 } else {
1189 Py_INCREF(Py_None);
1190 _resultobj = Py_None;
1191 }
1192 {
1193 if (_obj0)
1194 delete _arg0;
1195 }
1196 return _resultobj;
1197 }
1198
1199 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1200 static PyObject *_wrap_wxTextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
1201 PyObject * _resultobj;
1202 size_t _result;
1203 wxTextDataObject * _arg0;
1204 PyObject * _argo0 = 0;
1205 char *_kwnames[] = { "self", NULL };
1206
1207 self = self;
1208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetTextLength",_kwnames,&_argo0))
1209 return NULL;
1210 if (_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.");
1214 return NULL;
1215 }
1216 }
1217 {
1218 PyThreadState* __tstate = wxPyBeginAllowThreads();
1219 _result = (size_t )wxTextDataObject_GetTextLength(_arg0);
1220
1221 wxPyEndAllowThreads(__tstate);
1222 if (PyErr_Occurred()) return NULL;
1223 } _resultobj = Py_BuildValue("i",_result);
1224 return _resultobj;
1225 }
1226
1227 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1228 static PyObject *_wrap_wxTextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1229 PyObject * _resultobj;
1230 wxString * _result;
1231 wxTextDataObject * _arg0;
1232 PyObject * _argo0 = 0;
1233 char *_kwnames[] = { "self", NULL };
1234
1235 self = self;
1236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetText",_kwnames,&_argo0))
1237 return NULL;
1238 if (_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.");
1242 return NULL;
1243 }
1244 }
1245 {
1246 PyThreadState* __tstate = wxPyBeginAllowThreads();
1247 _result = new wxString (wxTextDataObject_GetText(_arg0));
1248
1249 wxPyEndAllowThreads(__tstate);
1250 if (PyErr_Occurred()) return NULL;
1251 }{
1252 #if wxUSE_UNICODE
1253 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1254 #else
1255 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1256 #endif
1257 }
1258 {
1259 delete _result;
1260 }
1261 return _resultobj;
1262 }
1263
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;
1268 wxString * _arg1;
1269 PyObject * _argo0 = 0;
1270 PyObject * _obj1 = 0;
1271 char *_kwnames[] = { "self","text", NULL };
1272
1273 self = self;
1274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextDataObject_SetText",_kwnames,&_argo0,&_obj1))
1275 return NULL;
1276 if (_argo0) {
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.");
1280 return NULL;
1281 }
1282 }
1283 {
1284 _arg1 = wxString_in_helper(_obj1);
1285 if (_arg1 == NULL)
1286 return NULL;
1287 }
1288 {
1289 PyThreadState* __tstate = wxPyBeginAllowThreads();
1290 wxTextDataObject_SetText(_arg0,*_arg1);
1291
1292 wxPyEndAllowThreads(__tstate);
1293 if (PyErr_Occurred()) return NULL;
1294 } Py_INCREF(Py_None);
1295 _resultobj = Py_None;
1296 {
1297 if (_obj1)
1298 delete _arg1;
1299 }
1300 return _resultobj;
1301 }
1302
1303 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr) {
1304 wxPyTextDataObject *src;
1305 wxTextDataObject *dest;
1306 src = (wxPyTextDataObject *) ptr;
1307 dest = (wxTextDataObject *) src;
1308 return (void *) dest;
1309 }
1310
1311 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr) {
1312 wxPyTextDataObject *src;
1313 wxDataObjectSimple *dest;
1314 src = (wxPyTextDataObject *) ptr;
1315 dest = (wxDataObjectSimple *) src;
1316 return (void *) dest;
1317 }
1318
1319 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr) {
1320 wxPyTextDataObject *src;
1321 wxDataObject *dest;
1322 src = (wxPyTextDataObject *) ptr;
1323 dest = (wxDataObject *) src;
1324 return (void *) dest;
1325 }
1326
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 };
1334 char _ptemp[128];
1335
1336 self = self;
1337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyTextDataObject",_kwnames,&_obj0))
1338 return NULL;
1339 if (_obj0)
1340 {
1341 _arg0 = wxString_in_helper(_obj0);
1342 if (_arg0 == NULL)
1343 return NULL;
1344 }
1345 {
1346 PyThreadState* __tstate = wxPyBeginAllowThreads();
1347 _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0);
1348
1349 wxPyEndAllowThreads(__tstate);
1350 if (PyErr_Occurred()) return NULL;
1351 } if (_result) {
1352 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDataObject_p");
1353 _resultobj = Py_BuildValue("s",_ptemp);
1354 } else {
1355 Py_INCREF(Py_None);
1356 _resultobj = Py_None;
1357 }
1358 {
1359 if (_obj0)
1360 delete _arg0;
1361 }
1362 return _resultobj;
1363 }
1364
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;
1369 PyObject * _arg1;
1370 PyObject * _arg2;
1371 PyObject * _argo0 = 0;
1372 PyObject * _obj1 = 0;
1373 PyObject * _obj2 = 0;
1374 char *_kwnames[] = { "self","self","_class", NULL };
1375
1376 self = self;
1377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1378 return NULL;
1379 if (_argo0) {
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.");
1383 return NULL;
1384 }
1385 }
1386 {
1387 _arg1 = _obj1;
1388 }
1389 {
1390 _arg2 = _obj2;
1391 }
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 wxPyTextDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) return NULL;
1398 } Py_INCREF(Py_None);
1399 _resultobj = Py_None;
1400 return _resultobj;
1401 }
1402
1403 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1404 wxBitmapDataObject *src;
1405 wxDataObjectSimple *dest;
1406 src = (wxBitmapDataObject *) ptr;
1407 dest = (wxDataObjectSimple *) src;
1408 return (void *) dest;
1409 }
1410
1411 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr) {
1412 wxBitmapDataObject *src;
1413 wxDataObject *dest;
1414 src = (wxBitmapDataObject *) ptr;
1415 dest = (wxDataObject *) src;
1416 return (void *) dest;
1417 }
1418
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 };
1426 char _ptemp[128];
1427
1428 self = self;
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBitmapDataObject",_kwnames,&_argo0))
1430 return NULL;
1431 if (_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.");
1435 return NULL;
1436 }
1437 }
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0);
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) return NULL;
1444 } if (_result) {
1445 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapDataObject_p");
1446 _resultobj = Py_BuildValue("s",_ptemp);
1447 } else {
1448 Py_INCREF(Py_None);
1449 _resultobj = Py_None;
1450 }
1451 return _resultobj;
1452 }
1453
1454 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1455 static PyObject *_wrap_wxBitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1456 PyObject * _resultobj;
1457 wxBitmap * _result;
1458 wxBitmapDataObject * _arg0;
1459 PyObject * _argo0 = 0;
1460 char *_kwnames[] = { "self", NULL };
1461 char _ptemp[128];
1462
1463 self = self;
1464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapDataObject_GetBitmap",_kwnames,&_argo0))
1465 return NULL;
1466 if (_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.");
1470 return NULL;
1471 }
1472 }
1473 {
1474 PyThreadState* __tstate = wxPyBeginAllowThreads();
1475 _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0));
1476
1477 wxPyEndAllowThreads(__tstate);
1478 if (PyErr_Occurred()) return NULL;
1479 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1480 _resultobj = Py_BuildValue("s",_ptemp);
1481 return _resultobj;
1482 }
1483
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;
1488 wxBitmap * _arg1;
1489 PyObject * _argo0 = 0;
1490 PyObject * _argo1 = 0;
1491 char *_kwnames[] = { "self","bitmap", NULL };
1492
1493 self = self;
1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapDataObject_SetBitmap",_kwnames,&_argo0,&_argo1))
1495 return NULL;
1496 if (_argo0) {
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.");
1500 return NULL;
1501 }
1502 }
1503 if (_argo1) {
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.");
1507 return NULL;
1508 }
1509 }
1510 {
1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
1512 wxBitmapDataObject_SetBitmap(_arg0,*_arg1);
1513
1514 wxPyEndAllowThreads(__tstate);
1515 if (PyErr_Occurred()) return NULL;
1516 } Py_INCREF(Py_None);
1517 _resultobj = Py_None;
1518 return _resultobj;
1519 }
1520
1521 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr) {
1522 wxPyBitmapDataObject *src;
1523 wxBitmapDataObject *dest;
1524 src = (wxPyBitmapDataObject *) ptr;
1525 dest = (wxBitmapDataObject *) src;
1526 return (void *) dest;
1527 }
1528
1529 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1530 wxPyBitmapDataObject *src;
1531 wxDataObjectSimple *dest;
1532 src = (wxPyBitmapDataObject *) ptr;
1533 dest = (wxDataObjectSimple *) src;
1534 return (void *) dest;
1535 }
1536
1537 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr) {
1538 wxPyBitmapDataObject *src;
1539 wxDataObject *dest;
1540 src = (wxPyBitmapDataObject *) ptr;
1541 dest = (wxDataObject *) src;
1542 return (void *) dest;
1543 }
1544
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 };
1552 char _ptemp[128];
1553
1554 self = self;
1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyBitmapDataObject",_kwnames,&_argo0))
1556 return NULL;
1557 if (_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.");
1561 return NULL;
1562 }
1563 }
1564 {
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0);
1567
1568 wxPyEndAllowThreads(__tstate);
1569 if (PyErr_Occurred()) return NULL;
1570 } if (_result) {
1571 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyBitmapDataObject_p");
1572 _resultobj = Py_BuildValue("s",_ptemp);
1573 } else {
1574 Py_INCREF(Py_None);
1575 _resultobj = Py_None;
1576 }
1577 return _resultobj;
1578 }
1579
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;
1584 PyObject * _arg1;
1585 PyObject * _arg2;
1586 PyObject * _argo0 = 0;
1587 PyObject * _obj1 = 0;
1588 PyObject * _obj2 = 0;
1589 char *_kwnames[] = { "self","self","_class", NULL };
1590
1591 self = self;
1592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1593 return NULL;
1594 if (_argo0) {
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.");
1598 return NULL;
1599 }
1600 }
1601 {
1602 _arg1 = _obj1;
1603 }
1604 {
1605 _arg2 = _obj2;
1606 }
1607 {
1608 PyThreadState* __tstate = wxPyBeginAllowThreads();
1609 wxPyBitmapDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
1610
1611 wxPyEndAllowThreads(__tstate);
1612 if (PyErr_Occurred()) return NULL;
1613 } Py_INCREF(Py_None);
1614 _resultobj = Py_None;
1615 return _resultobj;
1616 }
1617
1618 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr) {
1619 wxFileDataObject *src;
1620 wxDataObjectSimple *dest;
1621 src = (wxFileDataObject *) ptr;
1622 dest = (wxDataObjectSimple *) src;
1623 return (void *) dest;
1624 }
1625
1626 static void *SwigwxFileDataObjectTowxDataObject(void *ptr) {
1627 wxFileDataObject *src;
1628 wxDataObject *dest;
1629 src = (wxFileDataObject *) ptr;
1630 dest = (wxDataObject *) src;
1631 return (void *) dest;
1632 }
1633
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 };
1639 char _ptemp[128];
1640
1641 self = self;
1642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDataObject",_kwnames))
1643 return NULL;
1644 {
1645 PyThreadState* __tstate = wxPyBeginAllowThreads();
1646 _result = (wxFileDataObject *)new_wxFileDataObject();
1647
1648 wxPyEndAllowThreads(__tstate);
1649 if (PyErr_Occurred()) return NULL;
1650 } if (_result) {
1651 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDataObject_p");
1652 _resultobj = Py_BuildValue("s",_ptemp);
1653 } else {
1654 Py_INCREF(Py_None);
1655 _resultobj = Py_None;
1656 }
1657 return _resultobj;
1658 }
1659
1660 static PyObject * wxFileDataObject_GetFilenames(wxFileDataObject *self) {
1661 const wxArrayString& strings = self->GetFilenames();
1662 return wxArrayString2PyList_helper(strings);
1663 }
1664 static PyObject *_wrap_wxFileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
1665 PyObject * _resultobj;
1666 PyObject * _result;
1667 wxFileDataObject * _arg0;
1668 PyObject * _argo0 = 0;
1669 char *_kwnames[] = { "self", NULL };
1670
1671 self = self;
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDataObject_GetFilenames",_kwnames,&_argo0))
1673 return NULL;
1674 if (_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.");
1678 return NULL;
1679 }
1680 }
1681 {
1682 PyThreadState* __tstate = wxPyBeginAllowThreads();
1683 _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0);
1684
1685 wxPyEndAllowThreads(__tstate);
1686 if (PyErr_Occurred()) return NULL;
1687 }{
1688 _resultobj = _result;
1689 }
1690 return _resultobj;
1691 }
1692
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;
1697 wxString * _arg1;
1698 PyObject * _argo0 = 0;
1699 PyObject * _obj1 = 0;
1700 char *_kwnames[] = { "self","filename", NULL };
1701
1702 self = self;
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDataObject_AddFile",_kwnames,&_argo0,&_obj1))
1704 return NULL;
1705 if (_argo0) {
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.");
1709 return NULL;
1710 }
1711 }
1712 {
1713 _arg1 = wxString_in_helper(_obj1);
1714 if (_arg1 == NULL)
1715 return NULL;
1716 }
1717 {
1718 PyThreadState* __tstate = wxPyBeginAllowThreads();
1719 wxFileDataObject_AddFile(_arg0,*_arg1);
1720
1721 wxPyEndAllowThreads(__tstate);
1722 if (PyErr_Occurred()) return NULL;
1723 } Py_INCREF(Py_None);
1724 _resultobj = Py_None;
1725 {
1726 if (_obj1)
1727 delete _arg1;
1728 }
1729 return _resultobj;
1730 }
1731
1732 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr) {
1733 wxCustomDataObject *src;
1734 wxDataObjectSimple *dest;
1735 src = (wxCustomDataObject *) ptr;
1736 dest = (wxDataObjectSimple *) src;
1737 return (void *) dest;
1738 }
1739
1740 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr) {
1741 wxCustomDataObject *src;
1742 wxDataObject *dest;
1743 src = (wxCustomDataObject *) ptr;
1744 dest = (wxDataObject *) src;
1745 return (void *) dest;
1746 }
1747
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 };
1755 char _ptemp[128];
1756
1757 self = self;
1758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxCustomDataObject",_kwnames,&_argo0))
1759 return NULL;
1760 if (_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.");
1764 return NULL;
1765 }
1766 }
1767 {
1768 PyThreadState* __tstate = wxPyBeginAllowThreads();
1769 _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0);
1770
1771 wxPyEndAllowThreads(__tstate);
1772 if (PyErr_Occurred()) return NULL;
1773 } if (_result) {
1774 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCustomDataObject_p");
1775 _resultobj = Py_BuildValue("s",_ptemp);
1776 } else {
1777 Py_INCREF(Py_None);
1778 _resultobj = Py_None;
1779 }
1780 return _resultobj;
1781 }
1782
1783 static void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject * data) {
1784 if (PyString_Check(data)) {
1785 self->SetData(PyString_Size(data), PyString_AsString(data));
1786 }
1787 }
1788 static PyObject *_wrap_wxCustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
1789 PyObject * _resultobj;
1790 wxCustomDataObject * _arg0;
1791 PyObject * _arg1;
1792 PyObject * _argo0 = 0;
1793 PyObject * _obj1 = 0;
1794 char *_kwnames[] = { "self","data", NULL };
1795
1796 self = self;
1797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_TakeData",_kwnames,&_argo0,&_obj1))
1798 return NULL;
1799 if (_argo0) {
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.");
1803 return NULL;
1804 }
1805 }
1806 {
1807 _arg1 = _obj1;
1808 }
1809 {
1810 PyThreadState* __tstate = wxPyBeginAllowThreads();
1811 wxCustomDataObject_TakeData(_arg0,_arg1);
1812
1813 wxPyEndAllowThreads(__tstate);
1814 if (PyErr_Occurred()) return NULL;
1815 } Py_INCREF(Py_None);
1816 _resultobj = Py_None;
1817 return _resultobj;
1818 }
1819
1820 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject * data) {
1821 if (PyString_Check(data)) {
1822 return self->SetData(PyString_Size(data), PyString_AsString(data));
1823 }
1824 return FALSE;
1825 }
1826 static PyObject *_wrap_wxCustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject * _resultobj;
1828 bool _result;
1829 wxCustomDataObject * _arg0;
1830 PyObject * _arg1;
1831 PyObject * _argo0 = 0;
1832 PyObject * _obj1 = 0;
1833 char *_kwnames[] = { "self","data", NULL };
1834
1835 self = self;
1836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_SetData",_kwnames,&_argo0,&_obj1))
1837 return NULL;
1838 if (_argo0) {
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.");
1842 return NULL;
1843 }
1844 }
1845 {
1846 _arg1 = _obj1;
1847 }
1848 {
1849 PyThreadState* __tstate = wxPyBeginAllowThreads();
1850 _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1);
1851
1852 wxPyEndAllowThreads(__tstate);
1853 if (PyErr_Occurred()) return NULL;
1854 } _resultobj = Py_BuildValue("i",_result);
1855 return _resultobj;
1856 }
1857
1858 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1859 static PyObject *_wrap_wxCustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1860 PyObject * _resultobj;
1861 size_t _result;
1862 wxCustomDataObject * _arg0;
1863 PyObject * _argo0 = 0;
1864 char *_kwnames[] = { "self", NULL };
1865
1866 self = self;
1867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetSize",_kwnames,&_argo0))
1868 return NULL;
1869 if (_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.");
1873 return NULL;
1874 }
1875 }
1876 {
1877 PyThreadState* __tstate = wxPyBeginAllowThreads();
1878 _result = (size_t )wxCustomDataObject_GetSize(_arg0);
1879
1880 wxPyEndAllowThreads(__tstate);
1881 if (PyErr_Occurred()) return NULL;
1882 } _resultobj = Py_BuildValue("i",_result);
1883 return _resultobj;
1884 }
1885
1886 static PyObject * wxCustomDataObject_GetData(wxCustomDataObject *self) {
1887 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1888 }
1889 static PyObject *_wrap_wxCustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1890 PyObject * _resultobj;
1891 PyObject * _result;
1892 wxCustomDataObject * _arg0;
1893 PyObject * _argo0 = 0;
1894 char *_kwnames[] = { "self", NULL };
1895
1896 self = self;
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetData",_kwnames,&_argo0))
1898 return NULL;
1899 if (_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.");
1903 return NULL;
1904 }
1905 }
1906 {
1907 PyThreadState* __tstate = wxPyBeginAllowThreads();
1908 _result = (PyObject *)wxCustomDataObject_GetData(_arg0);
1909
1910 wxPyEndAllowThreads(__tstate);
1911 if (PyErr_Occurred()) return NULL;
1912 }{
1913 _resultobj = _result;
1914 }
1915 return _resultobj;
1916 }
1917
1918 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr) {
1919 wxURLDataObject *src;
1920 wxDataObjectComposite *dest;
1921 src = (wxURLDataObject *) ptr;
1922 dest = (wxDataObjectComposite *) src;
1923 return (void *) dest;
1924 }
1925
1926 static void *SwigwxURLDataObjectTowxDataObject(void *ptr) {
1927 wxURLDataObject *src;
1928 wxDataObject *dest;
1929 src = (wxURLDataObject *) ptr;
1930 dest = (wxDataObject *) src;
1931 return (void *) dest;
1932 }
1933
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 };
1939 char _ptemp[128];
1940
1941 self = self;
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxURLDataObject",_kwnames))
1943 return NULL;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 _result = (wxURLDataObject *)new_wxURLDataObject();
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) return NULL;
1950 } if (_result) {
1951 SWIG_MakePtr(_ptemp, (char *) _result,"_wxURLDataObject_p");
1952 _resultobj = Py_BuildValue("s",_ptemp);
1953 } else {
1954 Py_INCREF(Py_None);
1955 _resultobj = Py_None;
1956 }
1957 return _resultobj;
1958 }
1959
1960 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
1961 static PyObject *_wrap_wxURLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject * _resultobj;
1963 wxString * _result;
1964 wxURLDataObject * _arg0;
1965 PyObject * _argo0 = 0;
1966 char *_kwnames[] = { "self", NULL };
1967
1968 self = self;
1969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxURLDataObject_GetURL",_kwnames,&_argo0))
1970 return NULL;
1971 if (_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.");
1975 return NULL;
1976 }
1977 }
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 _result = new wxString (wxURLDataObject_GetURL(_arg0));
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) return NULL;
1984 }{
1985 #if wxUSE_UNICODE
1986 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
1987 #else
1988 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1989 #endif
1990 }
1991 {
1992 delete _result;
1993 }
1994 return _resultobj;
1995 }
1996
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;
2001 wxString * _arg1;
2002 PyObject * _argo0 = 0;
2003 PyObject * _obj1 = 0;
2004 char *_kwnames[] = { "self","url", NULL };
2005
2006 self = self;
2007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxURLDataObject_SetURL",_kwnames,&_argo0,&_obj1))
2008 return NULL;
2009 if (_argo0) {
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.");
2013 return NULL;
2014 }
2015 }
2016 {
2017 _arg1 = wxString_in_helper(_obj1);
2018 if (_arg1 == NULL)
2019 return NULL;
2020 }
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 wxURLDataObject_SetURL(_arg0,*_arg1);
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) return NULL;
2027 } Py_INCREF(Py_None);
2028 _resultobj = Py_None;
2029 {
2030 if (_obj1)
2031 delete _arg1;
2032 }
2033 return _resultobj;
2034 }
2035
2036 static void *SwigwxMetafileDataObjectTowxDataObjectSimple(void *ptr) {
2037 wxMetafileDataObject *src;
2038 wxDataObjectSimple *dest;
2039 src = (wxMetafileDataObject *) ptr;
2040 dest = (wxDataObjectSimple *) src;
2041 return (void *) dest;
2042 }
2043
2044 static void *SwigwxMetafileDataObjectTowxDataObject(void *ptr) {
2045 wxMetafileDataObject *src;
2046 wxDataObject *dest;
2047 src = (wxMetafileDataObject *) ptr;
2048 dest = (wxDataObject *) src;
2049 return (void *) dest;
2050 }
2051
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 };
2057 char _ptemp[128];
2058
2059 self = self;
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMetafileDataObject",_kwnames))
2061 return NULL;
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 _result = (wxMetafileDataObject *)new_wxMetafileDataObject();
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) return NULL;
2068 } if (_result) {
2069 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetafileDataObject_p");
2070 _resultobj = Py_BuildValue("s",_ptemp);
2071 } else {
2072 Py_INCREF(Py_None);
2073 _resultobj = Py_None;
2074 }
2075 return _resultobj;
2076 }
2077
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;
2082 wxMetafile * _arg1;
2083 PyObject * _argo0 = 0;
2084 PyObject * _argo1 = 0;
2085 char *_kwnames[] = { "self","metafile", NULL };
2086
2087 self = self;
2088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMetafileDataObject_SetMetafile",_kwnames,&_argo0,&_argo1))
2089 return NULL;
2090 if (_argo0) {
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.");
2094 return NULL;
2095 }
2096 }
2097 if (_argo1) {
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.");
2101 return NULL;
2102 }
2103 }
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 wxMetafileDataObject_SetMetafile(_arg0,*_arg1);
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) return NULL;
2110 } Py_INCREF(Py_None);
2111 _resultobj = Py_None;
2112 return _resultobj;
2113 }
2114
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 };
2122 char _ptemp[128];
2123
2124 self = self;
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetafileDataObject_GetMetafile",_kwnames,&_argo0))
2126 return NULL;
2127 if (_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.");
2131 return NULL;
2132 }
2133 }
2134 {
2135 PyThreadState* __tstate = wxPyBeginAllowThreads();
2136 _result = new wxMetafile (wxMetafileDataObject_GetMetafile(_arg0));
2137
2138 wxPyEndAllowThreads(__tstate);
2139 if (PyErr_Occurred()) return NULL;
2140 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxMetafile_p");
2141 _resultobj = Py_BuildValue("s",_ptemp);
2142 return _resultobj;
2143 }
2144
2145 static void *SwigwxClipboardTowxObject(void *ptr) {
2146 wxClipboard *src;
2147 wxObject *dest;
2148 src = (wxClipboard *) ptr;
2149 dest = (wxObject *) src;
2150 return (void *) dest;
2151 }
2152
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 };
2158 char _ptemp[128];
2159
2160 self = self;
2161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxClipboard",_kwnames))
2162 return NULL;
2163 {
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 _result = (wxClipboard *)new_wxClipboard();
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) return NULL;
2169 } if (_result) {
2170 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClipboard_p");
2171 _resultobj = Py_BuildValue("s",_ptemp);
2172 } else {
2173 Py_INCREF(Py_None);
2174 _resultobj = Py_None;
2175 }
2176 return _resultobj;
2177 }
2178
2179 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2180 static PyObject *_wrap_wxClipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
2181 PyObject * _resultobj;
2182 bool _result;
2183 wxClipboard * _arg0;
2184 PyObject * _argo0 = 0;
2185 char *_kwnames[] = { "self", NULL };
2186
2187 self = self;
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Open",_kwnames,&_argo0))
2189 return NULL;
2190 if (_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.");
2194 return NULL;
2195 }
2196 }
2197 {
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 _result = (bool )wxClipboard_Open(_arg0);
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) return NULL;
2203 } _resultobj = Py_BuildValue("i",_result);
2204 return _resultobj;
2205 }
2206
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 };
2213
2214 self = self;
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Close",_kwnames,&_argo0))
2216 return NULL;
2217 if (_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.");
2221 return NULL;
2222 }
2223 }
2224 {
2225 PyThreadState* __tstate = wxPyBeginAllowThreads();
2226 wxClipboard_Close(_arg0);
2227
2228 wxPyEndAllowThreads(__tstate);
2229 if (PyErr_Occurred()) return NULL;
2230 } Py_INCREF(Py_None);
2231 _resultobj = Py_None;
2232 return _resultobj;
2233 }
2234
2235 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2236 static PyObject *_wrap_wxClipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
2237 PyObject * _resultobj;
2238 bool _result;
2239 wxClipboard * _arg0;
2240 PyObject * _argo0 = 0;
2241 char *_kwnames[] = { "self", NULL };
2242
2243 self = self;
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_IsOpened",_kwnames,&_argo0))
2245 return NULL;
2246 if (_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.");
2250 return NULL;
2251 }
2252 }
2253 {
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 _result = (bool )wxClipboard_IsOpened(_arg0);
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) return NULL;
2259 } _resultobj = Py_BuildValue("i",_result);
2260 return _resultobj;
2261 }
2262
2263 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2264 static PyObject *_wrap_wxClipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject * _resultobj;
2266 bool _result;
2267 wxClipboard * _arg0;
2268 wxDataObject * _arg1;
2269 PyObject * _argo0 = 0;
2270 PyObject * _argo1 = 0;
2271 char *_kwnames[] = { "self","data", NULL };
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_AddData",_kwnames,&_argo0,&_argo1))
2275 return NULL;
2276 if (_argo0) {
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.");
2280 return NULL;
2281 }
2282 }
2283 if (_argo1) {
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.");
2287 return NULL;
2288 }
2289 }
2290 {
2291 PyThreadState* __tstate = wxPyBeginAllowThreads();
2292 _result = (bool )wxClipboard_AddData(_arg0,_arg1);
2293
2294 wxPyEndAllowThreads(__tstate);
2295 if (PyErr_Occurred()) return NULL;
2296 } _resultobj = Py_BuildValue("i",_result);
2297 return _resultobj;
2298 }
2299
2300 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2301 static PyObject *_wrap_wxClipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2302 PyObject * _resultobj;
2303 bool _result;
2304 wxClipboard * _arg0;
2305 wxDataObject * _arg1;
2306 PyObject * _argo0 = 0;
2307 PyObject * _argo1 = 0;
2308 char *_kwnames[] = { "self","data", NULL };
2309
2310 self = self;
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_SetData",_kwnames,&_argo0,&_argo1))
2312 return NULL;
2313 if (_argo0) {
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.");
2317 return NULL;
2318 }
2319 }
2320 if (_argo1) {
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.");
2324 return NULL;
2325 }
2326 }
2327 {
2328 PyThreadState* __tstate = wxPyBeginAllowThreads();
2329 _result = (bool )wxClipboard_SetData(_arg0,_arg1);
2330
2331 wxPyEndAllowThreads(__tstate);
2332 if (PyErr_Occurred()) return NULL;
2333 } _resultobj = Py_BuildValue("i",_result);
2334 return _resultobj;
2335 }
2336
2337 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2338 static PyObject *_wrap_wxClipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject * _resultobj;
2340 bool _result;
2341 wxClipboard * _arg0;
2342 wxDataFormat * _arg1;
2343 PyObject * _argo0 = 0;
2344 PyObject * _argo1 = 0;
2345 char *_kwnames[] = { "self","format", NULL };
2346
2347 self = self;
2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_IsSupported",_kwnames,&_argo0,&_argo1))
2349 return NULL;
2350 if (_argo0) {
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.");
2354 return NULL;
2355 }
2356 }
2357 if (_argo1) {
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.");
2361 return NULL;
2362 }
2363 }
2364 {
2365 PyThreadState* __tstate = wxPyBeginAllowThreads();
2366 _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1);
2367
2368 wxPyEndAllowThreads(__tstate);
2369 if (PyErr_Occurred()) return NULL;
2370 } _resultobj = Py_BuildValue("i",_result);
2371 return _resultobj;
2372 }
2373
2374 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2375 static PyObject *_wrap_wxClipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2376 PyObject * _resultobj;
2377 bool _result;
2378 wxClipboard * _arg0;
2379 wxDataObject * _arg1;
2380 PyObject * _argo0 = 0;
2381 PyObject * _argo1 = 0;
2382 char *_kwnames[] = { "self","data", NULL };
2383
2384 self = self;
2385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_GetData",_kwnames,&_argo0,&_argo1))
2386 return NULL;
2387 if (_argo0) {
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.");
2391 return NULL;
2392 }
2393 }
2394 if (_argo1) {
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.");
2398 return NULL;
2399 }
2400 }
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 _result = (bool )wxClipboard_GetData(_arg0,*_arg1);
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) return NULL;
2407 } _resultobj = Py_BuildValue("i",_result);
2408 return _resultobj;
2409 }
2410
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 };
2417
2418 self = self;
2419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Clear",_kwnames,&_argo0))
2420 return NULL;
2421 if (_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.");
2425 return NULL;
2426 }
2427 }
2428 {
2429 PyThreadState* __tstate = wxPyBeginAllowThreads();
2430 wxClipboard_Clear(_arg0);
2431
2432 wxPyEndAllowThreads(__tstate);
2433 if (PyErr_Occurred()) return NULL;
2434 } Py_INCREF(Py_None);
2435 _resultobj = Py_None;
2436 return _resultobj;
2437 }
2438
2439 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2440 static PyObject *_wrap_wxClipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
2441 PyObject * _resultobj;
2442 bool _result;
2443 wxClipboard * _arg0;
2444 PyObject * _argo0 = 0;
2445 char *_kwnames[] = { "self", NULL };
2446
2447 self = self;
2448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Flush",_kwnames,&_argo0))
2449 return NULL;
2450 if (_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.");
2454 return NULL;
2455 }
2456 }
2457 {
2458 PyThreadState* __tstate = wxPyBeginAllowThreads();
2459 _result = (bool )wxClipboard_Flush(_arg0);
2460
2461 wxPyEndAllowThreads(__tstate);
2462 if (PyErr_Occurred()) return NULL;
2463 } _resultobj = Py_BuildValue("i",_result);
2464 return _resultobj;
2465 }
2466
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 };
2474
2475 self = self;
2476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxClipboard_UsePrimarySelection",_kwnames,&_argo0,&_arg1))
2477 return NULL;
2478 if (_argo0) {
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.");
2482 return NULL;
2483 }
2484 }
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 wxClipboard_UsePrimarySelection(_arg0,_arg1);
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) return NULL;
2491 } Py_INCREF(Py_None);
2492 _resultobj = Py_None;
2493 return _resultobj;
2494 }
2495
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 };
2509 char _ptemp[128];
2510
2511 self = self;
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOO:new_wxDropSource",_kwnames,&_argo0,&_argo1,&_argo2,&_argo3))
2513 return NULL;
2514 if (_argo0) {
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.");
2518 return NULL;
2519 }
2520 }
2521 if (_argo1) {
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.");
2525 return NULL;
2526 }
2527 }
2528 if (_argo2) {
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.");
2532 return NULL;
2533 }
2534 }
2535 if (_argo3) {
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.");
2539 return NULL;
2540 }
2541 }
2542 {
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
2544 _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1,*_arg2,*_arg3);
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) return NULL;
2548 } if (_result) {
2549 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropSource_p");
2550 _resultobj = Py_BuildValue("s",_ptemp);
2551 } else {
2552 Py_INCREF(Py_None);
2553 _resultobj = Py_None;
2554 }
2555 return _resultobj;
2556 }
2557
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;
2562 PyObject * _arg1;
2563 PyObject * _arg2;
2564 int _arg3;
2565 PyObject * _argo0 = 0;
2566 PyObject * _obj1 = 0;
2567 PyObject * _obj2 = 0;
2568 char *_kwnames[] = { "self","self","_class","incref", NULL };
2569
2570 self = self;
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxDropSource__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
2572 return NULL;
2573 if (_argo0) {
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.");
2577 return NULL;
2578 }
2579 }
2580 {
2581 _arg1 = _obj1;
2582 }
2583 {
2584 _arg2 = _obj2;
2585 }
2586 {
2587 PyThreadState* __tstate = wxPyBeginAllowThreads();
2588 wxDropSource__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
2589
2590 wxPyEndAllowThreads(__tstate);
2591 if (PyErr_Occurred()) return NULL;
2592 } Py_INCREF(Py_None);
2593 _resultobj = Py_None;
2594 return _resultobj;
2595 }
2596
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 };
2603
2604 self = self;
2605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDropSource",_kwnames,&_argo0))
2606 return NULL;
2607 if (_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.");
2611 return NULL;
2612 }
2613 }
2614 {
2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
2616 delete_wxPyDropSource(_arg0);
2617
2618 wxPyEndAllowThreads(__tstate);
2619 if (PyErr_Occurred()) return NULL;
2620 } Py_INCREF(Py_None);
2621 _resultobj = Py_None;
2622 return _resultobj;
2623 }
2624
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 };
2633
2634 self = self;
2635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDropSource_SetData",_kwnames,&_argo0,&_argo1))
2636 return NULL;
2637 if (_argo0) {
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.");
2641 return NULL;
2642 }
2643 }
2644 if (_argo1) {
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.");
2648 return NULL;
2649 }
2650 }
2651 {
2652 PyThreadState* __tstate = wxPyBeginAllowThreads();
2653 wxDropSource_SetData(_arg0,*_arg1);
2654
2655 wxPyEndAllowThreads(__tstate);
2656 if (PyErr_Occurred()) return NULL;
2657 } Py_INCREF(Py_None);
2658 _resultobj = Py_None;
2659 return _resultobj;
2660 }
2661
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 };
2669 char _ptemp[128];
2670
2671 self = self;
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDropSource_GetDataObject",_kwnames,&_argo0))
2673 return NULL;
2674 if (_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.");
2678 return NULL;
2679 }
2680 }
2681 {
2682 PyThreadState* __tstate = wxPyBeginAllowThreads();
2683 _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0);
2684
2685 wxPyEndAllowThreads(__tstate);
2686 if (PyErr_Occurred()) return NULL;
2687 } if (_result) {
2688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2689 _resultobj = Py_BuildValue("s",_ptemp);
2690 } else {
2691 Py_INCREF(Py_None);
2692 _resultobj = Py_None;
2693 }
2694 return _resultobj;
2695 }
2696
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;
2701 wxDragResult _arg1;
2702 wxCursor * _arg2;
2703 PyObject * _argo0 = 0;
2704 PyObject * _argo2 = 0;
2705 char *_kwnames[] = { "self","res","cursor", NULL };
2706
2707 self = self;
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxDropSource_SetCursor",_kwnames,&_argo0,&_arg1,&_argo2))
2709 return NULL;
2710 if (_argo0) {
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.");
2714 return NULL;
2715 }
2716 }
2717 if (_argo2) {
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.");
2721 return NULL;
2722 }
2723 }
2724 {
2725 PyThreadState* __tstate = wxPyBeginAllowThreads();
2726 wxDropSource_SetCursor(_arg0,_arg1,*_arg2);
2727
2728 wxPyEndAllowThreads(__tstate);
2729 if (PyErr_Occurred()) return NULL;
2730 } Py_INCREF(Py_None);
2731 _resultobj = Py_None;
2732 return _resultobj;
2733 }
2734
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 };
2743
2744 self = self;
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDropSource_DoDragDrop",_kwnames,&_argo0,&_arg1))
2746 return NULL;
2747 if (_argo0) {
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.");
2751 return NULL;
2752 }
2753 }
2754 {
2755 PyThreadState* __tstate = wxPyBeginAllowThreads();
2756 _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1);
2757
2758 wxPyEndAllowThreads(__tstate);
2759 if (PyErr_Occurred()) return NULL;
2760 } _resultobj = Py_BuildValue("i",_result);
2761 return _resultobj;
2762 }
2763
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;
2767 bool _result;
2768 wxPyDropSource * _arg0;
2769 wxDragResult _arg1;
2770 PyObject * _argo0 = 0;
2771 char *_kwnames[] = { "self","effect", NULL };
2772
2773 self = self;
2774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDropSource_base_GiveFeedback",_kwnames,&_argo0,&_arg1))
2775 return NULL;
2776 if (_argo0) {
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.");
2780 return NULL;
2781 }
2782 }
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1);
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) return NULL;
2789 } _resultobj = Py_BuildValue("i",_result);
2790 return _resultobj;
2791 }
2792
2793 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr) {
2794 wxPyDropTarget *src;
2795 wxDropTarget *dest;
2796 src = (wxPyDropTarget *) ptr;
2797 dest = (wxDropTarget *) src;
2798 return (void *) dest;
2799 }
2800
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 };
2808 char _ptemp[128];
2809
2810 self = self;
2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDropTarget",_kwnames,&_argo0))
2812 return NULL;
2813 if (_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.");
2817 return NULL;
2818 }
2819 }
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0);
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) return NULL;
2826 } if (_result) {
2827 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropTarget_p");
2828 _resultobj = Py_BuildValue("s",_ptemp);
2829 } else {
2830 Py_INCREF(Py_None);
2831 _resultobj = Py_None;
2832 }
2833 return _resultobj;
2834 }
2835
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;
2840 PyObject * _arg1;
2841 PyObject * _arg2;
2842 PyObject * _argo0 = 0;
2843 PyObject * _obj1 = 0;
2844 PyObject * _obj2 = 0;
2845 char *_kwnames[] = { "self","self","_class", NULL };
2846
2847 self = self;
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2849 return NULL;
2850 if (_argo0) {
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.");
2854 return NULL;
2855 }
2856 }
2857 {
2858 _arg1 = _obj1;
2859 }
2860 {
2861 _arg2 = _obj2;
2862 }
2863 {
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 wxPyDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
2866
2867 wxPyEndAllowThreads(__tstate);
2868 if (PyErr_Occurred()) return NULL;
2869 } Py_INCREF(Py_None);
2870 _resultobj = Py_None;
2871 return _resultobj;
2872 }
2873
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 };
2880
2881 self = self;
2882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyDropTarget",_kwnames,&_argo0))
2883 return NULL;
2884 if (_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.");
2888 return NULL;
2889 }
2890 }
2891 {
2892 PyThreadState* __tstate = wxPyBeginAllowThreads();
2893 delete_wxPyDropTarget(_arg0);
2894
2895 wxPyEndAllowThreads(__tstate);
2896 if (PyErr_Occurred()) return NULL;
2897 } Py_INCREF(Py_None);
2898 _resultobj = Py_None;
2899 return _resultobj;
2900 }
2901
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 };
2909 char _ptemp[128];
2910
2911 self = self;
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetDataObject",_kwnames,&_argo0))
2913 return NULL;
2914 if (_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.");
2918 return NULL;
2919 }
2920 }
2921 {
2922 PyThreadState* __tstate = wxPyBeginAllowThreads();
2923 _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0);
2924
2925 wxPyEndAllowThreads(__tstate);
2926 if (PyErr_Occurred()) return NULL;
2927 } if (_result) {
2928 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2929 _resultobj = Py_BuildValue("s",_ptemp);
2930 } else {
2931 Py_INCREF(Py_None);
2932 _resultobj = Py_None;
2933 }
2934 return _resultobj;
2935 }
2936
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 };
2945
2946 self = self;
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDropTarget_SetDataObject",_kwnames,&_argo0,&_argo1))
2948 return NULL;
2949 if (_argo0) {
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.");
2953 return NULL;
2954 }
2955 }
2956 if (_argo1) {
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.");
2960 return NULL;
2961 }
2962 }
2963 {
2964 PyThreadState* __tstate = wxPyBeginAllowThreads();
2965 wxPyDropTarget_SetDataObject(_arg0,_arg1);
2966
2967 wxPyEndAllowThreads(__tstate);
2968 if (PyErr_Occurred()) return NULL;
2969 } Py_INCREF(Py_None);
2970 _resultobj = Py_None;
2971 return _resultobj;
2972 }
2973
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;
2979 wxCoord _arg1;
2980 wxCoord _arg2;
2981 wxDragResult _arg3;
2982 PyObject * _argo0 = 0;
2983 char *_kwnames[] = { "self","x","y","def", NULL };
2984
2985 self = self;
2986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2987 return NULL;
2988 if (_argo0) {
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.");
2992 return NULL;
2993 }
2994 }
2995 {
2996 PyThreadState* __tstate = wxPyBeginAllowThreads();
2997 _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
2998
2999 wxPyEndAllowThreads(__tstate);
3000 if (PyErr_Occurred()) return NULL;
3001 } _resultobj = Py_BuildValue("i",_result);
3002 return _resultobj;
3003 }
3004
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;
3010 wxCoord _arg1;
3011 wxCoord _arg2;
3012 wxDragResult _arg3;
3013 PyObject * _argo0 = 0;
3014 char *_kwnames[] = { "self","x","y","def", NULL };
3015
3016 self = self;
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3018 return NULL;
3019 if (_argo0) {
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.");
3023 return NULL;
3024 }
3025 }
3026 {
3027 PyThreadState* __tstate = wxPyBeginAllowThreads();
3028 _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3029
3030 wxPyEndAllowThreads(__tstate);
3031 if (PyErr_Occurred()) return NULL;
3032 } _resultobj = Py_BuildValue("i",_result);
3033 return _resultobj;
3034 }
3035
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 };
3042
3043 self = self;
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_base_OnLeave",_kwnames,&_argo0))
3045 return NULL;
3046 if (_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.");
3050 return NULL;
3051 }
3052 }
3053 {
3054 PyThreadState* __tstate = wxPyBeginAllowThreads();
3055 wxPyDropTarget_base_OnLeave(_arg0);
3056
3057 wxPyEndAllowThreads(__tstate);
3058 if (PyErr_Occurred()) return NULL;
3059 } Py_INCREF(Py_None);
3060 _resultobj = Py_None;
3061 return _resultobj;
3062 }
3063
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;
3067 bool _result;
3068 wxPyDropTarget * _arg0;
3069 wxCoord _arg1;
3070 wxCoord _arg2;
3071 PyObject * _argo0 = 0;
3072 char *_kwnames[] = { "self","x","y", NULL };
3073
3074 self = self;
3075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3076 return NULL;
3077 if (_argo0) {
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.");
3081 return NULL;
3082 }
3083 }
3084 {
3085 PyThreadState* __tstate = wxPyBeginAllowThreads();
3086 _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3087
3088 wxPyEndAllowThreads(__tstate);
3089 if (PyErr_Occurred()) return NULL;
3090 } _resultobj = Py_BuildValue("i",_result);
3091 return _resultobj;
3092 }
3093
3094 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3095 static PyObject *_wrap_wxPyDropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject * _resultobj;
3097 bool _result;
3098 wxPyDropTarget * _arg0;
3099 PyObject * _argo0 = 0;
3100 char *_kwnames[] = { "self", NULL };
3101
3102 self = self;
3103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetData",_kwnames,&_argo0))
3104 return NULL;
3105 if (_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.");
3109 return NULL;
3110 }
3111 }
3112 {
3113 PyThreadState* __tstate = wxPyBeginAllowThreads();
3114 _result = (bool )wxPyDropTarget_GetData(_arg0);
3115
3116 wxPyEndAllowThreads(__tstate);
3117 if (PyErr_Occurred()) return NULL;
3118 } _resultobj = Py_BuildValue("i",_result);
3119 return _resultobj;
3120 }
3121
3122 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr) {
3123 wxPyTextDropTarget *src;
3124 wxPyDropTarget *dest;
3125 src = (wxPyTextDropTarget *) ptr;
3126 dest = (wxPyDropTarget *) src;
3127 return (void *) dest;
3128 }
3129
3130 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr) {
3131 wxPyTextDropTarget *src;
3132 wxDropTarget *dest;
3133 src = (wxPyTextDropTarget *) ptr;
3134 dest = (wxDropTarget *) src;
3135 return (void *) dest;
3136 }
3137
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 };
3143 char _ptemp[128];
3144
3145 self = self;
3146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTextDropTarget",_kwnames))
3147 return NULL;
3148 {
3149 PyThreadState* __tstate = wxPyBeginAllowThreads();
3150 _result = (wxPyTextDropTarget *)new_wxTextDropTarget();
3151
3152 wxPyEndAllowThreads(__tstate);
3153 if (PyErr_Occurred()) return NULL;
3154 } if (_result) {
3155 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDropTarget_p");
3156 _resultobj = Py_BuildValue("s",_ptemp);
3157 } else {
3158 Py_INCREF(Py_None);
3159 _resultobj = Py_None;
3160 }
3161 return _resultobj;
3162 }
3163
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;
3168 PyObject * _arg1;
3169 PyObject * _arg2;
3170 PyObject * _argo0 = 0;
3171 PyObject * _obj1 = 0;
3172 PyObject * _obj2 = 0;
3173 char *_kwnames[] = { "self","self","_class", NULL };
3174
3175 self = self;
3176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3177 return NULL;
3178 if (_argo0) {
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.");
3182 return NULL;
3183 }
3184 }
3185 {
3186 _arg1 = _obj1;
3187 }
3188 {
3189 _arg2 = _obj2;
3190 }
3191 {
3192 PyThreadState* __tstate = wxPyBeginAllowThreads();
3193 wxTextDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
3194
3195 wxPyEndAllowThreads(__tstate);
3196 if (PyErr_Occurred()) return NULL;
3197 } Py_INCREF(Py_None);
3198 _resultobj = Py_None;
3199 return _resultobj;
3200 }
3201
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;
3207 wxCoord _arg1;
3208 wxCoord _arg2;
3209 wxDragResult _arg3;
3210 PyObject * _argo0 = 0;
3211 char *_kwnames[] = { "self","x","y","def", NULL };
3212
3213 self = self;
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3215 return NULL;
3216 if (_argo0) {
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.");
3220 return NULL;
3221 }
3222 }
3223 {
3224 PyThreadState* __tstate = wxPyBeginAllowThreads();
3225 _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
3226
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) return NULL;
3229 } _resultobj = Py_BuildValue("i",_result);
3230 return _resultobj;
3231 }
3232
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;
3238 wxCoord _arg1;
3239 wxCoord _arg2;
3240 wxDragResult _arg3;
3241 PyObject * _argo0 = 0;
3242 char *_kwnames[] = { "self","x","y","def", NULL };
3243
3244 self = self;
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3246 return NULL;
3247 if (_argo0) {
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.");
3251 return NULL;
3252 }
3253 }
3254 {
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3257
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) return NULL;
3260 } _resultobj = Py_BuildValue("i",_result);
3261 return _resultobj;
3262 }
3263
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 };
3270
3271 self = self;
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDropTarget_base_OnLeave",_kwnames,&_argo0))
3273 return NULL;
3274 if (_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.");
3278 return NULL;
3279 }
3280 }
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 wxTextDropTarget_base_OnLeave(_arg0);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) return NULL;
3287 } Py_INCREF(Py_None);
3288 _resultobj = Py_None;
3289 return _resultobj;
3290 }
3291
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;
3295 bool _result;
3296 wxPyTextDropTarget * _arg0;
3297 wxCoord _arg1;
3298 wxCoord _arg2;
3299 PyObject * _argo0 = 0;
3300 char *_kwnames[] = { "self","x","y", NULL };
3301
3302 self = self;
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTextDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3304 return NULL;
3305 if (_argo0) {
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.");
3309 return NULL;
3310 }
3311 }
3312 {
3313 PyThreadState* __tstate = wxPyBeginAllowThreads();
3314 _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3315
3316 wxPyEndAllowThreads(__tstate);
3317 if (PyErr_Occurred()) return NULL;
3318 } _resultobj = Py_BuildValue("i",_result);
3319 return _resultobj;
3320 }
3321
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;
3327 wxCoord _arg1;
3328 wxCoord _arg2;
3329 wxDragResult _arg3;
3330 PyObject * _argo0 = 0;
3331 char *_kwnames[] = { "self","x","y","def", NULL };
3332
3333 self = self;
3334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3335 return NULL;
3336 if (_argo0) {
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.");
3340 return NULL;
3341 }
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) return NULL;
3349 } _resultobj = Py_BuildValue("i",_result);
3350 return _resultobj;
3351 }
3352
3353 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr) {
3354 wxPyFileDropTarget *src;
3355 wxPyDropTarget *dest;
3356 src = (wxPyFileDropTarget *) ptr;
3357 dest = (wxPyDropTarget *) src;
3358 return (void *) dest;
3359 }
3360
3361 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr) {
3362 wxPyFileDropTarget *src;
3363 wxDropTarget *dest;
3364 src = (wxPyFileDropTarget *) ptr;
3365 dest = (wxDropTarget *) src;
3366 return (void *) dest;
3367 }
3368
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 };
3374 char _ptemp[128];
3375
3376 self = self;
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDropTarget",_kwnames))
3378 return NULL;
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 _result = (wxPyFileDropTarget *)new_wxFileDropTarget();
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) return NULL;
3385 } if (_result) {
3386 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileDropTarget_p");
3387 _resultobj = Py_BuildValue("s",_ptemp);
3388 } else {
3389 Py_INCREF(Py_None);
3390 _resultobj = Py_None;
3391 }
3392 return _resultobj;
3393 }
3394
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;
3399 PyObject * _arg1;
3400 PyObject * _arg2;
3401 PyObject * _argo0 = 0;
3402 PyObject * _obj1 = 0;
3403 PyObject * _obj2 = 0;
3404 char *_kwnames[] = { "self","self","_class", NULL };
3405
3406 self = self;
3407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3408 return NULL;
3409 if (_argo0) {
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.");
3413 return NULL;
3414 }
3415 }
3416 {
3417 _arg1 = _obj1;
3418 }
3419 {
3420 _arg2 = _obj2;
3421 }
3422 {
3423 PyThreadState* __tstate = wxPyBeginAllowThreads();
3424 wxFileDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
3425
3426 wxPyEndAllowThreads(__tstate);
3427 if (PyErr_Occurred()) return NULL;
3428 } Py_INCREF(Py_None);
3429 _resultobj = Py_None;
3430 return _resultobj;
3431 }
3432
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;
3438 wxCoord _arg1;
3439 wxCoord _arg2;
3440 wxDragResult _arg3;
3441 PyObject * _argo0 = 0;
3442 char *_kwnames[] = { "self","x","y","def", NULL };
3443
3444 self = self;
3445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3446 return NULL;
3447 if (_argo0) {
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.");
3451 return NULL;
3452 }
3453 }
3454 {
3455 PyThreadState* __tstate = wxPyBeginAllowThreads();
3456 _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
3457
3458 wxPyEndAllowThreads(__tstate);
3459 if (PyErr_Occurred()) return NULL;
3460 } _resultobj = Py_BuildValue("i",_result);
3461 return _resultobj;
3462 }
3463
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;
3469 wxCoord _arg1;
3470 wxCoord _arg2;
3471 wxDragResult _arg3;
3472 PyObject * _argo0 = 0;
3473 char *_kwnames[] = { "self","x","y","def", NULL };
3474
3475 self = self;
3476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3477 return NULL;
3478 if (_argo0) {
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.");
3482 return NULL;
3483 }
3484 }
3485 {
3486 PyThreadState* __tstate = wxPyBeginAllowThreads();
3487 _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3488
3489 wxPyEndAllowThreads(__tstate);
3490 if (PyErr_Occurred()) return NULL;
3491 } _resultobj = Py_BuildValue("i",_result);
3492 return _resultobj;
3493 }
3494
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 };
3501
3502 self = self;
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDropTarget_base_OnLeave",_kwnames,&_argo0))
3504 return NULL;
3505 if (_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.");
3509 return NULL;
3510 }
3511 }
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 wxFileDropTarget_base_OnLeave(_arg0);
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) return NULL;
3518 } Py_INCREF(Py_None);
3519 _resultobj = Py_None;
3520 return _resultobj;
3521 }
3522
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;
3526 bool _result;
3527 wxPyFileDropTarget * _arg0;
3528 wxCoord _arg1;
3529 wxCoord _arg2;
3530 PyObject * _argo0 = 0;
3531 char *_kwnames[] = { "self","x","y", NULL };
3532
3533 self = self;
3534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFileDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3535 return NULL;
3536 if (_argo0) {
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.");
3540 return NULL;
3541 }
3542 }
3543 {
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) return NULL;
3549 } _resultobj = Py_BuildValue("i",_result);
3550 return _resultobj;
3551 }
3552
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;
3558 wxCoord _arg1;
3559 wxCoord _arg2;
3560 wxDragResult _arg3;
3561 PyObject * _argo0 = 0;
3562 char *_kwnames[] = { "self","x","y","def", NULL };
3563
3564 self = self;
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3566 return NULL;
3567 if (_argo0) {
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.");
3571 return NULL;
3572 }
3573 }
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
3577
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) return NULL;
3580 } _resultobj = Py_BuildValue("i",_result);
3581 return _resultobj;
3582 }
3583
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 },
3676 { NULL, NULL }
3677 };
3678 #ifdef __cplusplus
3679 }
3680 #endif
3681 /*
3682 * This table is used by the pointer type-checker
3683 */
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},
3807 {0,0,0}};
3808
3809 static PyObject *SWIG_globals;
3810 #ifdef __cplusplus
3811 extern "C"
3812 #endif
3813 SWIGEXPORT(void) initclip_dndc() {
3814 PyObject *m, *d;
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));
3846
3847
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));
3855 {
3856 int i;
3857 for (i = 0; _swig_mapping[i].n1; i++)
3858 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3859 }
3860 }