]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/clip_dnd.cpp
First pass at wxPython for Mac (darwin only so far). It
[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
90 #if PYTHON_API_VERSION >= 1009
91 static char* wxStringErrorMsg = "String or Unicode type required";
92 #else
93 static char* wxStringErrorMsg = "String type required";
94 #endif
95 // An alternate constructor...
96 wxDataFormat* wxCustomDataFormat(const wxString &id) {
97 return new wxDataFormat(id);
98 }
99
100 wxDataFormat wxPyFormatInvalid;
101 // Create a new class for wxPython to use
102 class wxPyDataObjectSimple : public wxDataObjectSimple {
103 public:
104 wxPyDataObjectSimple(const wxDataFormat& format = wxPyFormatInvalid)
105 : wxDataObjectSimple(format) {}
106
107 DEC_PYCALLBACK_SIZET_(GetDataSize);
108 bool GetDataHere(void *buf);
109 bool SetData(size_t len, const void *buf);
110 PYPRIVATE;
111 };
112
113 IMP_PYCALLBACK_SIZET_(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
114
115 bool wxPyDataObjectSimple::GetDataHere(void *buf) {
116 // We need to get the data for this object and write it to buf. I think
117 // the best way to do this for wxPython is to have the Python method
118 // return either a string or None and then act appropriately with the
119 // C++ version.
120
121 bool rval = FALSE;
122 wxPyTState* state = wxPyBeginBlockThreads();
123 if (m_myInst.findCallback("GetDataHere")) {
124 PyObject* ro;
125 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
126 if (ro) {
127 rval = (ro != Py_None && PyString_Check(ro));
128 if (rval)
129 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
130 Py_DECREF(ro);
131 }
132 }
133 wxPyEndBlockThreads(state);
134 return rval;
135 }
136
137 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) {
138 // For this one we simply need to make a string from buf and len
139 // and send it to the Python method.
140 bool rval = FALSE;
141 wxPyTState* state = wxPyBeginBlockThreads();
142 if (m_myInst.findCallback("SetData")) {
143 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
144 rval = m_myInst.callCallback(Py_BuildValue("(O)", data));
145 Py_DECREF(data);
146 }
147 wxPyEndBlockThreads(state);
148 return rval;
149 }
150 // Create a new class for wxPython to use
151 class wxPyTextDataObject : public wxTextDataObject {
152 public:
153 wxPyTextDataObject(const wxString& text = wxEmptyString)
154 : wxTextDataObject(text) {}
155
156 DEC_PYCALLBACK_SIZET_(GetTextLength);
157 DEC_PYCALLBACK_STRING_(GetText);
158 DEC_PYCALLBACK__STRING(SetText);
159 PYPRIVATE;
160 };
161
162 IMP_PYCALLBACK_SIZET_(wxPyTextDataObject, wxTextDataObject, GetTextLength);
163 IMP_PYCALLBACK_STRING_(wxPyTextDataObject, wxTextDataObject, GetText);
164 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
165
166 // Create a new class for wxPython to use
167 class wxPyBitmapDataObject : public wxBitmapDataObject {
168 public:
169 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
170 : wxBitmapDataObject(bitmap) {}
171
172 wxBitmap GetBitmap();
173 void SetBitmap(const wxBitmap& bitmap);
174 PYPRIVATE;
175 };
176
177 wxBitmap wxPyBitmapDataObject::GetBitmap() {
178 wxBitmap* rval = &wxNullBitmap;
179 wxPyTState* state = wxPyBeginBlockThreads();
180 if (m_myInst.findCallback("GetBitmap")) {
181 PyObject* ro;
182 wxBitmap* ptr;
183 ro = m_myInst.callCallbackObj(Py_BuildValue("()"));
184 if (ro) {
185 if (!SWIG_GetPtrObj(ro, (void **)&ptr, "_wxBitmap_p"))
186 rval = ptr;
187 Py_DECREF(ro);
188 }
189 }
190 wxPyEndBlockThreads(state);
191 return *rval;
192 }
193
194 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
195 wxPyTState* state = wxPyBeginBlockThreads();
196 if (m_myInst.findCallback("SetBitmap")) {
197 m_myInst.callCallback(Py_BuildValue("(O)",
198 wxPyConstructObject((void*)&bitmap, "wxBitmap")));
199 }
200 wxPyEndBlockThreads(state);
201 }
202
203 // See below in the init function...
204 wxClipboard* wxPyTheClipboard;
205
206 class wxPyDropSource : public wxDropSource {
207 public:
208 #ifdef __WXMSW__
209 wxPyDropSource(wxWindow *win = NULL,
210 const wxCursor &cursorCopy = wxNullCursor,
211 const wxCursor &cursorMove = wxNullCursor,
212 const wxCursor &cursorStop = wxNullCursor)
213 : wxDropSource(win, cursorCopy, cursorMove, cursorStop) {}
214 #else
215 wxPyDropSource(wxWindow *win = NULL,
216 const wxIcon &go = wxNullIcon)
217 : wxDropSource(win, go) {}
218 #endif
219 ~wxPyDropSource() { }
220
221 DEC_PYCALLBACK_BOOL_DR(GiveFeedback);
222 PYPRIVATE;
223 };
224
225 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
226
227
228 class wxPyDropTarget : public wxDropTarget {
229 public:
230 wxPyDropTarget(wxDataObject *dataObject = NULL)
231 : wxDropTarget(dataObject) {}
232
233 // DEC_PYCALLBACK_SIZET_(GetFormatCount);
234 // DEC_PYCALLBACK_DATAFMT_SIZET(GetFormat);
235
236 DEC_PYCALLBACK__(OnLeave);
237 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
238 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
239 DEC_PYCALLBACK_DR_2WXCDR_pure(OnData);
240 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
241
242 PYPRIVATE;
243 };
244
245 // IMP_PYCALLBACK_SIZET_(wxPyDropTarget, wxDropTarget, GetFormatCount);
246 // IMP__PYCALLBACK_DATAFMT_SIZET(wxPyDropTarget, wxDropTarget, GetFormat);
247
248 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
249 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
250 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
251 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
252 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
253
254
255 class wxPyTextDropTarget : public wxTextDropTarget {
256 public:
257 wxPyTextDropTarget() {}
258
259 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
260
261 DEC_PYCALLBACK__(OnLeave);
262 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
263 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
264 DEC_PYCALLBACK_DR_2WXCDR(OnData);
265 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
266
267 PYPRIVATE;
268 };
269
270 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
271 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
272 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
273 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
274 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
275 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
276
277
278 class wxPyFileDropTarget : public wxFileDropTarget {
279 public:
280 wxPyFileDropTarget() {}
281
282 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
283
284 DEC_PYCALLBACK__(OnLeave);
285 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
286 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
287 DEC_PYCALLBACK_DR_2WXCDR(OnData);
288 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
289
290 PYPRIVATE;
291 };
292
293 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
294 const wxArrayString& filenames) {
295 bool rval = FALSE;
296 wxPyTState* state = wxPyBeginBlockThreads();
297 PyObject* list = PyList_New(0);
298 for (size_t i=0; i<filenames.GetCount(); i++) {
299 PyObject* str = PyString_FromString(filenames[i].c_str());
300 PyList_Append(list, str);
301 }
302 if (m_myInst.findCallback("OnDropFiles"))
303 rval = m_myInst.callCallback(Py_BuildValue("(iiO)",x,y,list));
304 Py_DECREF(list);
305 wxPyEndBlockThreads(state);
306 return rval;
307 }
308
309
310
311 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
312 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
313 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
314 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
315 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
316
317 #ifdef __cplusplus
318 extern "C" {
319 #endif
320 static PyObject *_wrap_wxCustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
321 PyObject * _resultobj;
322 wxDataFormat * _result;
323 wxString * _arg0;
324 PyObject * _obj0 = 0;
325 char *_kwnames[] = { "id", NULL };
326 char _ptemp[128];
327
328 self = self;
329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataFormat",_kwnames,&_obj0))
330 return NULL;
331 {
332 #if PYTHON_API_VERSION >= 1009
333 char* tmpPtr; int tmpSize;
334 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
335 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
336 return NULL;
337 }
338 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
339 return NULL;
340 _arg0 = new wxString(tmpPtr, tmpSize);
341 #else
342 if (!PyString_Check(_obj0)) {
343 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
344 return NULL;
345 }
346 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
347 #endif
348 }
349 {
350 wxPy_BEGIN_ALLOW_THREADS;
351 _result = (wxDataFormat *)wxCustomDataFormat(*_arg0);
352
353 wxPy_END_ALLOW_THREADS;
354 if (PyErr_Occurred()) return NULL;
355 } if (_result) {
356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
357 _resultobj = Py_BuildValue("s",_ptemp);
358 } else {
359 Py_INCREF(Py_None);
360 _resultobj = Py_None;
361 }
362 {
363 if (_obj0)
364 delete _arg0;
365 }
366 return _resultobj;
367 }
368
369 static int _wrap_wxPyFormatInvalid_set(PyObject *val) {
370
371 PyErr_SetString(PyExc_TypeError,"Variable wxFormatInvalid is read-only.");
372 return 1;
373 }
374
375 static PyObject *_wrap_wxPyFormatInvalid_get() {
376 PyObject * pyobj;
377 char ptemp[128];
378
379 SWIG_MakePtr(ptemp,(char *) &wxPyFormatInvalid,"_wxDataFormat_p");
380 pyobj = PyString_FromString(ptemp);
381 return pyobj;
382 }
383
384 static int _wrap_wxPyTheClipboard_set(PyObject *val) {
385
386 PyErr_SetString(PyExc_TypeError,"Variable wxTheClipboard is read-only.");
387 return 1;
388 }
389
390 static PyObject *_wrap_wxPyTheClipboard_get() {
391 PyObject * pyobj;
392 char ptemp[128];
393
394 SWIG_MakePtr(ptemp, (char *) wxPyTheClipboard,"_wxClipboard_p");
395 pyobj = PyString_FromString(ptemp);
396 return pyobj;
397 }
398
399 static PyObject *_wrap_wxIsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
400 PyObject * _resultobj;
401 bool _result;
402 wxDragResult _arg0;
403 char *_kwnames[] = { "res", NULL };
404
405 self = self;
406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxIsDragResultOk",_kwnames,&_arg0))
407 return NULL;
408 {
409 wxPy_BEGIN_ALLOW_THREADS;
410 _result = (bool )wxIsDragResultOk(_arg0);
411
412 wxPy_END_ALLOW_THREADS;
413 if (PyErr_Occurred()) return NULL;
414 } _resultobj = Py_BuildValue("i",_result);
415 return _resultobj;
416 }
417
418 #define new_wxDataFormat(_swigarg0) (new wxDataFormat(_swigarg0))
419 static PyObject *_wrap_new_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
420 PyObject * _resultobj;
421 wxDataFormat * _result;
422 wxDataFormatId _arg0;
423 char *_kwnames[] = { "type", NULL };
424 char _ptemp[128];
425
426 self = self;
427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDataFormat",_kwnames,&_arg0))
428 return NULL;
429 {
430 wxPy_BEGIN_ALLOW_THREADS;
431 _result = (wxDataFormat *)new_wxDataFormat(_arg0);
432
433 wxPy_END_ALLOW_THREADS;
434 if (PyErr_Occurred()) return NULL;
435 } if (_result) {
436 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
437 _resultobj = Py_BuildValue("s",_ptemp);
438 } else {
439 Py_INCREF(Py_None);
440 _resultobj = Py_None;
441 }
442 return _resultobj;
443 }
444
445 #define delete_wxDataFormat(_swigobj) (delete _swigobj)
446 static PyObject *_wrap_delete_wxDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
447 PyObject * _resultobj;
448 wxDataFormat * _arg0;
449 PyObject * _argo0 = 0;
450 char *_kwnames[] = { "self", NULL };
451
452 self = self;
453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataFormat",_kwnames,&_argo0))
454 return NULL;
455 if (_argo0) {
456 if (_argo0 == Py_None) { _arg0 = NULL; }
457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataFormat. Expected _wxDataFormat_p.");
459 return NULL;
460 }
461 }
462 {
463 wxPy_BEGIN_ALLOW_THREADS;
464 delete_wxDataFormat(_arg0);
465
466 wxPy_END_ALLOW_THREADS;
467 if (PyErr_Occurred()) return NULL;
468 } Py_INCREF(Py_None);
469 _resultobj = Py_None;
470 return _resultobj;
471 }
472
473 #define wxDataFormat_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
474 static PyObject *_wrap_wxDataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
475 PyObject * _resultobj;
476 wxDataFormat * _arg0;
477 wxDataFormatId _arg1;
478 PyObject * _argo0 = 0;
479 char *_kwnames[] = { "self","format", NULL };
480
481 self = self;
482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDataFormat_SetType",_kwnames,&_argo0,&_arg1))
483 return NULL;
484 if (_argo0) {
485 if (_argo0 == Py_None) { _arg0 = NULL; }
486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetType. Expected _wxDataFormat_p.");
488 return NULL;
489 }
490 }
491 {
492 wxPy_BEGIN_ALLOW_THREADS;
493 wxDataFormat_SetType(_arg0,_arg1);
494
495 wxPy_END_ALLOW_THREADS;
496 if (PyErr_Occurred()) return NULL;
497 } Py_INCREF(Py_None);
498 _resultobj = Py_None;
499 return _resultobj;
500 }
501
502 #define wxDataFormat_GetType(_swigobj) (_swigobj->GetType())
503 static PyObject *_wrap_wxDataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
504 PyObject * _resultobj;
505 wxDataFormatId _result;
506 wxDataFormat * _arg0;
507 PyObject * _argo0 = 0;
508 char *_kwnames[] = { "self", NULL };
509
510 self = self;
511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetType",_kwnames,&_argo0))
512 return NULL;
513 if (_argo0) {
514 if (_argo0 == Py_None) { _arg0 = NULL; }
515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetType. Expected _wxDataFormat_p.");
517 return NULL;
518 }
519 }
520 {
521 wxPy_BEGIN_ALLOW_THREADS;
522 _result = (wxDataFormatId )wxDataFormat_GetType(_arg0);
523
524 wxPy_END_ALLOW_THREADS;
525 if (PyErr_Occurred()) return NULL;
526 } _resultobj = Py_BuildValue("i",_result);
527 return _resultobj;
528 }
529
530 #define wxDataFormat_GetId(_swigobj) (_swigobj->GetId())
531 static PyObject *_wrap_wxDataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
532 PyObject * _resultobj;
533 wxString * _result;
534 wxDataFormat * _arg0;
535 PyObject * _argo0 = 0;
536 char *_kwnames[] = { "self", NULL };
537
538 self = self;
539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataFormat_GetId",_kwnames,&_argo0))
540 return NULL;
541 if (_argo0) {
542 if (_argo0 == Py_None) { _arg0 = NULL; }
543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_GetId. Expected _wxDataFormat_p.");
545 return NULL;
546 }
547 }
548 {
549 wxPy_BEGIN_ALLOW_THREADS;
550 _result = new wxString (wxDataFormat_GetId(_arg0));
551
552 wxPy_END_ALLOW_THREADS;
553 if (PyErr_Occurred()) return NULL;
554 }{
555 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
556 }
557 {
558 delete _result;
559 }
560 return _resultobj;
561 }
562
563 #define wxDataFormat_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
564 static PyObject *_wrap_wxDataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
565 PyObject * _resultobj;
566 wxDataFormat * _arg0;
567 char * _arg1;
568 PyObject * _argo0 = 0;
569 char *_kwnames[] = { "self","format", NULL };
570
571 self = self;
572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDataFormat_SetId",_kwnames,&_argo0,&_arg1))
573 return NULL;
574 if (_argo0) {
575 if (_argo0 == Py_None) { _arg0 = NULL; }
576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataFormat_SetId. Expected _wxDataFormat_p.");
578 return NULL;
579 }
580 }
581 {
582 wxPy_BEGIN_ALLOW_THREADS;
583 wxDataFormat_SetId(_arg0,_arg1);
584
585 wxPy_END_ALLOW_THREADS;
586 if (PyErr_Occurred()) return NULL;
587 } Py_INCREF(Py_None);
588 _resultobj = Py_None;
589 return _resultobj;
590 }
591
592 #define delete_wxDataObject(_swigobj) (delete _swigobj)
593 static PyObject *_wrap_delete_wxDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
594 PyObject * _resultobj;
595 wxDataObject * _arg0;
596 PyObject * _argo0 = 0;
597 char *_kwnames[] = { "self", NULL };
598
599 self = self;
600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDataObject",_kwnames,&_argo0))
601 return NULL;
602 if (_argo0) {
603 if (_argo0 == Py_None) { _arg0 = NULL; }
604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDataObject. Expected _wxDataObject_p.");
606 return NULL;
607 }
608 }
609 {
610 wxPy_BEGIN_ALLOW_THREADS;
611 delete_wxDataObject(_arg0);
612
613 wxPy_END_ALLOW_THREADS;
614 if (PyErr_Occurred()) return NULL;
615 } Py_INCREF(Py_None);
616 _resultobj = Py_None;
617 return _resultobj;
618 }
619
620 #define wxDataObject_GetPreferredFormat(_swigobj,_swigarg0) (_swigobj->GetPreferredFormat(_swigarg0))
621 static PyObject *_wrap_wxDataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
622 PyObject * _resultobj;
623 wxDataFormat * _result;
624 wxDataObject * _arg0;
625 wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get;
626 PyObject * _argo0 = 0;
627 char *_kwnames[] = { "self","dir", NULL };
628 char _ptemp[128];
629
630 self = self;
631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetPreferredFormat",_kwnames,&_argo0,&_arg1))
632 return NULL;
633 if (_argo0) {
634 if (_argo0 == Py_None) { _arg0 = NULL; }
635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetPreferredFormat. Expected _wxDataObject_p.");
637 return NULL;
638 }
639 }
640 {
641 wxPy_BEGIN_ALLOW_THREADS;
642 _result = new wxDataFormat (wxDataObject_GetPreferredFormat(_arg0,_arg1));
643
644 wxPy_END_ALLOW_THREADS;
645 if (PyErr_Occurred()) return NULL;
646 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDataFormat_p");
647 _resultobj = Py_BuildValue("s",_ptemp);
648 return _resultobj;
649 }
650
651 #define wxDataObject_GetFormatCount(_swigobj,_swigarg0) (_swigobj->GetFormatCount(_swigarg0))
652 static PyObject *_wrap_wxDataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
653 PyObject * _resultobj;
654 size_t _result;
655 wxDataObject * _arg0;
656 wxDataObject::Direction _arg1 = (wxDataObject::Direction ) wxDataObject::Get;
657 PyObject * _argo0 = 0;
658 char *_kwnames[] = { "self","dir", NULL };
659
660 self = self;
661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDataObject_GetFormatCount",_kwnames,&_argo0,&_arg1))
662 return NULL;
663 if (_argo0) {
664 if (_argo0 == Py_None) { _arg0 = NULL; }
665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetFormatCount. Expected _wxDataObject_p.");
667 return NULL;
668 }
669 }
670 {
671 wxPy_BEGIN_ALLOW_THREADS;
672 _result = (size_t )wxDataObject_GetFormatCount(_arg0,_arg1);
673
674 wxPy_END_ALLOW_THREADS;
675 if (PyErr_Occurred()) return NULL;
676 } _resultobj = Py_BuildValue("i",_result);
677 return _resultobj;
678 }
679
680 #define wxDataObject_GetAllFormats(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAllFormats(_swigarg0,_swigarg1))
681 static PyObject *_wrap_wxDataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
682 PyObject * _resultobj;
683 wxDataObject * _arg0;
684 wxDataFormat * _arg1;
685 wxDataObject::Direction _arg2 = (wxDataObject::Direction ) wxDataObject::Get;
686 PyObject * _argo0 = 0;
687 PyObject * _argo1 = 0;
688 char *_kwnames[] = { "self","formats","dir", NULL };
689
690 self = self;
691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObject_GetAllFormats",_kwnames,&_argo0,&_argo1,&_arg2))
692 return NULL;
693 if (_argo0) {
694 if (_argo0 == Py_None) { _arg0 = NULL; }
695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetAllFormats. Expected _wxDataObject_p.");
697 return NULL;
698 }
699 }
700 if (_argo1) {
701 if (_argo1 == Py_None) { _arg1 = NULL; }
702 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetAllFormats. Expected _wxDataFormat_p.");
704 return NULL;
705 }
706 }
707 {
708 wxPy_BEGIN_ALLOW_THREADS;
709 wxDataObject_GetAllFormats(_arg0,_arg1,_arg2);
710
711 wxPy_END_ALLOW_THREADS;
712 if (PyErr_Occurred()) return NULL;
713 } Py_INCREF(Py_None);
714 _resultobj = Py_None;
715 return _resultobj;
716 }
717
718 #define wxDataObject_GetDataSize(_swigobj,_swigarg0) (_swigobj->GetDataSize(_swigarg0))
719 static PyObject *_wrap_wxDataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
720 PyObject * _resultobj;
721 size_t _result;
722 wxDataObject * _arg0;
723 wxDataFormat * _arg1;
724 PyObject * _argo0 = 0;
725 PyObject * _argo1 = 0;
726 char *_kwnames[] = { "self","format", NULL };
727
728 self = self;
729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_GetDataSize",_kwnames,&_argo0,&_argo1))
730 return NULL;
731 if (_argo0) {
732 if (_argo0 == Py_None) { _arg0 = NULL; }
733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataSize. Expected _wxDataObject_p.");
735 return NULL;
736 }
737 }
738 if (_argo1) {
739 if (_argo1 == Py_None) { _arg1 = NULL; }
740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataSize. Expected _wxDataFormat_p.");
742 return NULL;
743 }
744 }
745 {
746 wxPy_BEGIN_ALLOW_THREADS;
747 _result = (size_t )wxDataObject_GetDataSize(_arg0,*_arg1);
748
749 wxPy_END_ALLOW_THREADS;
750 if (PyErr_Occurred()) return NULL;
751 } _resultobj = Py_BuildValue("i",_result);
752 return _resultobj;
753 }
754
755 #define wxDataObject_GetDataHere(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDataHere(_swigarg0,_swigarg1))
756 static PyObject *_wrap_wxDataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject * _resultobj;
758 bool _result;
759 wxDataObject * _arg0;
760 wxDataFormat * _arg1;
761 void * _arg2;
762 PyObject * _argo0 = 0;
763 PyObject * _argo1 = 0;
764 PyObject * _argo2 = 0;
765 char *_kwnames[] = { "self","format","buf", NULL };
766
767 self = self;
768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDataObject_GetDataHere",_kwnames,&_argo0,&_argo1,&_argo2))
769 return NULL;
770 if (_argo0) {
771 if (_argo0 == Py_None) { _arg0 = NULL; }
772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_GetDataHere. Expected _wxDataObject_p.");
774 return NULL;
775 }
776 }
777 if (_argo1) {
778 if (_argo1 == Py_None) { _arg1 = NULL; }
779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_GetDataHere. Expected _wxDataFormat_p.");
781 return NULL;
782 }
783 }
784 if (_argo2) {
785 if (_argo2 == Py_None) { _arg2 = NULL; }
786 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,(char *) 0 )) {
787 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDataObject_GetDataHere. Expected _void_p.");
788 return NULL;
789 }
790 }
791 {
792 wxPy_BEGIN_ALLOW_THREADS;
793 _result = (bool )wxDataObject_GetDataHere(_arg0,*_arg1,_arg2);
794
795 wxPy_END_ALLOW_THREADS;
796 if (PyErr_Occurred()) return NULL;
797 } _resultobj = Py_BuildValue("i",_result);
798 return _resultobj;
799 }
800
801 #define wxDataObject_SetData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetData(_swigarg0,_swigarg1,_swigarg2))
802 static PyObject *_wrap_wxDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
803 PyObject * _resultobj;
804 bool _result;
805 wxDataObject * _arg0;
806 wxDataFormat * _arg1;
807 size_t _arg2;
808 void * _arg3;
809 PyObject * _argo0 = 0;
810 PyObject * _argo1 = 0;
811 PyObject * _argo3 = 0;
812 char *_kwnames[] = { "self","format","len","buf", NULL };
813
814 self = self;
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO:wxDataObject_SetData",_kwnames,&_argo0,&_argo1,&_arg2,&_argo3))
816 return NULL;
817 if (_argo0) {
818 if (_argo0 == Py_None) { _arg0 = NULL; }
819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_SetData. Expected _wxDataObject_p.");
821 return NULL;
822 }
823 }
824 if (_argo1) {
825 if (_argo1 == Py_None) { _arg1 = NULL; }
826 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
827 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_SetData. Expected _wxDataFormat_p.");
828 return NULL;
829 }
830 }
831 if (_argo3) {
832 if (_argo3 == Py_None) { _arg3 = NULL; }
833 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,(char *) 0 )) {
834 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDataObject_SetData. Expected _void_p.");
835 return NULL;
836 }
837 }
838 {
839 wxPy_BEGIN_ALLOW_THREADS;
840 _result = (bool )wxDataObject_SetData(_arg0,*_arg1,_arg2,_arg3);
841
842 wxPy_END_ALLOW_THREADS;
843 if (PyErr_Occurred()) return NULL;
844 } _resultobj = Py_BuildValue("i",_result);
845 return _resultobj;
846 }
847
848 #define wxDataObject_IsSupportedFormat(_swigobj,_swigarg0) (_swigobj->IsSupportedFormat(_swigarg0))
849 static PyObject *_wrap_wxDataObject_IsSupportedFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
850 PyObject * _resultobj;
851 bool _result;
852 wxDataObject * _arg0;
853 wxDataFormat * _arg1;
854 PyObject * _argo0 = 0;
855 PyObject * _argo1 = 0;
856 char *_kwnames[] = { "self","format", NULL };
857
858 self = self;
859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObject_IsSupportedFormat",_kwnames,&_argo0,&_argo1))
860 return NULL;
861 if (_argo0) {
862 if (_argo0 == Py_None) { _arg0 = NULL; }
863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObject_IsSupportedFormat. Expected _wxDataObject_p.");
865 return NULL;
866 }
867 }
868 if (_argo1) {
869 if (_argo1 == Py_None) { _arg1 = NULL; }
870 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
871 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObject_IsSupportedFormat. Expected _wxDataFormat_p.");
872 return NULL;
873 }
874 }
875 {
876 wxPy_BEGIN_ALLOW_THREADS;
877 _result = (bool )wxDataObject_IsSupportedFormat(_arg0,*_arg1);
878
879 wxPy_END_ALLOW_THREADS;
880 if (PyErr_Occurred()) return NULL;
881 } _resultobj = Py_BuildValue("i",_result);
882 return _resultobj;
883 }
884
885 static void *SwigwxDataObjectSimpleTowxDataObject(void *ptr) {
886 wxDataObjectSimple *src;
887 wxDataObject *dest;
888 src = (wxDataObjectSimple *) ptr;
889 dest = (wxDataObject *) src;
890 return (void *) dest;
891 }
892
893 #define new_wxDataObjectSimple(_swigarg0) (new wxDataObjectSimple(_swigarg0))
894 static PyObject *_wrap_new_wxDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
895 PyObject * _resultobj;
896 wxDataObjectSimple * _result;
897 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
898 PyObject * _argo0 = 0;
899 char *_kwnames[] = { "format", NULL };
900 char _ptemp[128];
901
902 self = self;
903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxDataObjectSimple",_kwnames,&_argo0))
904 return NULL;
905 if (_argo0) {
906 if (_argo0 == Py_None) { _arg0 = NULL; }
907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDataObjectSimple. Expected _wxDataFormat_p.");
909 return NULL;
910 }
911 }
912 {
913 wxPy_BEGIN_ALLOW_THREADS;
914 _result = (wxDataObjectSimple *)new_wxDataObjectSimple(*_arg0);
915
916 wxPy_END_ALLOW_THREADS;
917 if (PyErr_Occurred()) return NULL;
918 } if (_result) {
919 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectSimple_p");
920 _resultobj = Py_BuildValue("s",_ptemp);
921 } else {
922 Py_INCREF(Py_None);
923 _resultobj = Py_None;
924 }
925 return _resultobj;
926 }
927
928 #define wxDataObjectSimple_GetFormat(_swigobj) (_swigobj->GetFormat())
929 static PyObject *_wrap_wxDataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject * _resultobj;
931 wxDataFormat * _result;
932 wxDataObjectSimple * _arg0;
933 PyObject * _argo0 = 0;
934 char *_kwnames[] = { "self", NULL };
935 char _ptemp[128];
936
937 self = self;
938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDataObjectSimple_GetFormat",_kwnames,&_argo0))
939 return NULL;
940 if (_argo0) {
941 if (_argo0 == Py_None) { _arg0 = NULL; }
942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) {
943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_GetFormat. Expected _wxDataObjectSimple_p.");
944 return NULL;
945 }
946 }
947 {
948 wxPy_BEGIN_ALLOW_THREADS;
949 const wxDataFormat & _result_ref = wxDataObjectSimple_GetFormat(_arg0);
950 _result = (wxDataFormat *) &_result_ref;
951
952 wxPy_END_ALLOW_THREADS;
953 if (PyErr_Occurred()) return NULL;
954 } if (_result) {
955 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataFormat_p");
956 _resultobj = Py_BuildValue("s",_ptemp);
957 } else {
958 Py_INCREF(Py_None);
959 _resultobj = Py_None;
960 }
961 return _resultobj;
962 }
963
964 #define wxDataObjectSimple_SetFormat(_swigobj,_swigarg0) (_swigobj->SetFormat(_swigarg0))
965 static PyObject *_wrap_wxDataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
966 PyObject * _resultobj;
967 wxDataObjectSimple * _arg0;
968 wxDataFormat * _arg1;
969 PyObject * _argo0 = 0;
970 PyObject * _argo1 = 0;
971 char *_kwnames[] = { "self","format", NULL };
972
973 self = self;
974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDataObjectSimple_SetFormat",_kwnames,&_argo0,&_argo1))
975 return NULL;
976 if (_argo0) {
977 if (_argo0 == Py_None) { _arg0 = NULL; }
978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectSimple_p")) {
979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectSimple_SetFormat. Expected _wxDataObjectSimple_p.");
980 return NULL;
981 }
982 }
983 if (_argo1) {
984 if (_argo1 == Py_None) { _arg1 = NULL; }
985 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
986 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectSimple_SetFormat. Expected _wxDataFormat_p.");
987 return NULL;
988 }
989 }
990 {
991 wxPy_BEGIN_ALLOW_THREADS;
992 wxDataObjectSimple_SetFormat(_arg0,*_arg1);
993
994 wxPy_END_ALLOW_THREADS;
995 if (PyErr_Occurred()) return NULL;
996 } Py_INCREF(Py_None);
997 _resultobj = Py_None;
998 return _resultobj;
999 }
1000
1001 static void *SwigwxPyDataObjectSimpleTowxDataObjectSimple(void *ptr) {
1002 wxPyDataObjectSimple *src;
1003 wxDataObjectSimple *dest;
1004 src = (wxPyDataObjectSimple *) ptr;
1005 dest = (wxDataObjectSimple *) src;
1006 return (void *) dest;
1007 }
1008
1009 static void *SwigwxPyDataObjectSimpleTowxDataObject(void *ptr) {
1010 wxPyDataObjectSimple *src;
1011 wxDataObject *dest;
1012 src = (wxPyDataObjectSimple *) ptr;
1013 dest = (wxDataObject *) src;
1014 return (void *) dest;
1015 }
1016
1017 #define new_wxPyDataObjectSimple(_swigarg0) (new wxPyDataObjectSimple(_swigarg0))
1018 static PyObject *_wrap_new_wxPyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
1019 PyObject * _resultobj;
1020 wxPyDataObjectSimple * _result;
1021 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
1022 PyObject * _argo0 = 0;
1023 char *_kwnames[] = { "format", NULL };
1024 char _ptemp[128];
1025
1026 self = self;
1027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDataObjectSimple",_kwnames,&_argo0))
1028 return NULL;
1029 if (_argo0) {
1030 if (_argo0 == Py_None) { _arg0 = NULL; }
1031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
1032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDataObjectSimple. Expected _wxDataFormat_p.");
1033 return NULL;
1034 }
1035 }
1036 {
1037 wxPy_BEGIN_ALLOW_THREADS;
1038 _result = (wxPyDataObjectSimple *)new_wxPyDataObjectSimple(*_arg0);
1039
1040 wxPy_END_ALLOW_THREADS;
1041 if (PyErr_Occurred()) return NULL;
1042 } if (_result) {
1043 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDataObjectSimple_p");
1044 _resultobj = Py_BuildValue("s",_ptemp);
1045 } else {
1046 Py_INCREF(Py_None);
1047 _resultobj = Py_None;
1048 }
1049 return _resultobj;
1050 }
1051
1052 #define wxPyDataObjectSimple__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1053 static PyObject *_wrap_wxPyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject * _resultobj;
1055 wxPyDataObjectSimple * _arg0;
1056 PyObject * _arg1;
1057 PyObject * _arg2;
1058 PyObject * _argo0 = 0;
1059 PyObject * _obj1 = 0;
1060 PyObject * _obj2 = 0;
1061 char *_kwnames[] = { "self","self","_class", NULL };
1062
1063 self = self;
1064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDataObjectSimple__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1065 return NULL;
1066 if (_argo0) {
1067 if (_argo0 == Py_None) { _arg0 = NULL; }
1068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDataObjectSimple_p")) {
1069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDataObjectSimple__setCallbackInfo. Expected _wxPyDataObjectSimple_p.");
1070 return NULL;
1071 }
1072 }
1073 {
1074 _arg1 = _obj1;
1075 }
1076 {
1077 _arg2 = _obj2;
1078 }
1079 {
1080 wxPy_BEGIN_ALLOW_THREADS;
1081 wxPyDataObjectSimple__setCallbackInfo(_arg0,_arg1,_arg2);
1082
1083 wxPy_END_ALLOW_THREADS;
1084 if (PyErr_Occurred()) return NULL;
1085 } Py_INCREF(Py_None);
1086 _resultobj = Py_None;
1087 return _resultobj;
1088 }
1089
1090 static void *SwigwxDataObjectCompositeTowxDataObject(void *ptr) {
1091 wxDataObjectComposite *src;
1092 wxDataObject *dest;
1093 src = (wxDataObjectComposite *) ptr;
1094 dest = (wxDataObject *) src;
1095 return (void *) dest;
1096 }
1097
1098 #define new_wxDataObjectComposite() (new wxDataObjectComposite())
1099 static PyObject *_wrap_new_wxDataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
1100 PyObject * _resultobj;
1101 wxDataObjectComposite * _result;
1102 char *_kwnames[] = { NULL };
1103 char _ptemp[128];
1104
1105 self = self;
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDataObjectComposite",_kwnames))
1107 return NULL;
1108 {
1109 wxPy_BEGIN_ALLOW_THREADS;
1110 _result = (wxDataObjectComposite *)new_wxDataObjectComposite();
1111
1112 wxPy_END_ALLOW_THREADS;
1113 if (PyErr_Occurred()) return NULL;
1114 } if (_result) {
1115 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObjectComposite_p");
1116 _resultobj = Py_BuildValue("s",_ptemp);
1117 } else {
1118 Py_INCREF(Py_None);
1119 _resultobj = Py_None;
1120 }
1121 return _resultobj;
1122 }
1123
1124 #define wxDataObjectComposite_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
1125 static PyObject *_wrap_wxDataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
1126 PyObject * _resultobj;
1127 wxDataObjectComposite * _arg0;
1128 wxDataObjectSimple * _arg1;
1129 int _arg2 = (int ) FALSE;
1130 PyObject * _argo0 = 0;
1131 PyObject * _argo1 = 0;
1132 char *_kwnames[] = { "self","dataObject","preferred", NULL };
1133
1134 self = self;
1135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDataObjectComposite_Add",_kwnames,&_argo0,&_argo1,&_arg2))
1136 return NULL;
1137 if (_argo0) {
1138 if (_argo0 == Py_None) { _arg0 = NULL; }
1139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObjectComposite_p")) {
1140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDataObjectComposite_Add. Expected _wxDataObjectComposite_p.");
1141 return NULL;
1142 }
1143 }
1144 if (_argo1) {
1145 if (_argo1 == Py_None) { _arg1 = NULL; }
1146 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObjectSimple_p")) {
1147 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDataObjectComposite_Add. Expected _wxDataObjectSimple_p.");
1148 return NULL;
1149 }
1150 }
1151 {
1152 wxPy_BEGIN_ALLOW_THREADS;
1153 wxDataObjectComposite_Add(_arg0,_arg1,_arg2);
1154
1155 wxPy_END_ALLOW_THREADS;
1156 if (PyErr_Occurred()) return NULL;
1157 } Py_INCREF(Py_None);
1158 _resultobj = Py_None;
1159 return _resultobj;
1160 }
1161
1162 static void *SwigwxTextDataObjectTowxDataObjectSimple(void *ptr) {
1163 wxTextDataObject *src;
1164 wxDataObjectSimple *dest;
1165 src = (wxTextDataObject *) ptr;
1166 dest = (wxDataObjectSimple *) src;
1167 return (void *) dest;
1168 }
1169
1170 static void *SwigwxTextDataObjectTowxDataObject(void *ptr) {
1171 wxTextDataObject *src;
1172 wxDataObject *dest;
1173 src = (wxTextDataObject *) ptr;
1174 dest = (wxDataObject *) src;
1175 return (void *) dest;
1176 }
1177
1178 #define new_wxTextDataObject(_swigarg0) (new wxTextDataObject(_swigarg0))
1179 static PyObject *_wrap_new_wxTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1180 PyObject * _resultobj;
1181 wxTextDataObject * _result;
1182 wxString * _arg0 = (wxString *) &wxEmptyString;
1183 PyObject * _obj0 = 0;
1184 char *_kwnames[] = { "text", NULL };
1185 char _ptemp[128];
1186
1187 self = self;
1188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTextDataObject",_kwnames,&_obj0))
1189 return NULL;
1190 if (_obj0)
1191 {
1192 #if PYTHON_API_VERSION >= 1009
1193 char* tmpPtr; int tmpSize;
1194 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1195 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1196 return NULL;
1197 }
1198 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1199 return NULL;
1200 _arg0 = new wxString(tmpPtr, tmpSize);
1201 #else
1202 if (!PyString_Check(_obj0)) {
1203 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1204 return NULL;
1205 }
1206 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1207 #endif
1208 }
1209 {
1210 wxPy_BEGIN_ALLOW_THREADS;
1211 _result = (wxTextDataObject *)new_wxTextDataObject(*_arg0);
1212
1213 wxPy_END_ALLOW_THREADS;
1214 if (PyErr_Occurred()) return NULL;
1215 } if (_result) {
1216 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextDataObject_p");
1217 _resultobj = Py_BuildValue("s",_ptemp);
1218 } else {
1219 Py_INCREF(Py_None);
1220 _resultobj = Py_None;
1221 }
1222 {
1223 if (_obj0)
1224 delete _arg0;
1225 }
1226 return _resultobj;
1227 }
1228
1229 #define wxTextDataObject_GetTextLength(_swigobj) (_swigobj->GetTextLength())
1230 static PyObject *_wrap_wxTextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
1231 PyObject * _resultobj;
1232 size_t _result;
1233 wxTextDataObject * _arg0;
1234 PyObject * _argo0 = 0;
1235 char *_kwnames[] = { "self", NULL };
1236
1237 self = self;
1238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetTextLength",_kwnames,&_argo0))
1239 return NULL;
1240 if (_argo0) {
1241 if (_argo0 == Py_None) { _arg0 = NULL; }
1242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetTextLength. Expected _wxTextDataObject_p.");
1244 return NULL;
1245 }
1246 }
1247 {
1248 wxPy_BEGIN_ALLOW_THREADS;
1249 _result = (size_t )wxTextDataObject_GetTextLength(_arg0);
1250
1251 wxPy_END_ALLOW_THREADS;
1252 if (PyErr_Occurred()) return NULL;
1253 } _resultobj = Py_BuildValue("i",_result);
1254 return _resultobj;
1255 }
1256
1257 #define wxTextDataObject_GetText(_swigobj) (_swigobj->GetText())
1258 static PyObject *_wrap_wxTextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1259 PyObject * _resultobj;
1260 wxString * _result;
1261 wxTextDataObject * _arg0;
1262 PyObject * _argo0 = 0;
1263 char *_kwnames[] = { "self", NULL };
1264
1265 self = self;
1266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDataObject_GetText",_kwnames,&_argo0))
1267 return NULL;
1268 if (_argo0) {
1269 if (_argo0 == Py_None) { _arg0 = NULL; }
1270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_GetText. Expected _wxTextDataObject_p.");
1272 return NULL;
1273 }
1274 }
1275 {
1276 wxPy_BEGIN_ALLOW_THREADS;
1277 _result = new wxString (wxTextDataObject_GetText(_arg0));
1278
1279 wxPy_END_ALLOW_THREADS;
1280 if (PyErr_Occurred()) return NULL;
1281 }{
1282 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1283 }
1284 {
1285 delete _result;
1286 }
1287 return _resultobj;
1288 }
1289
1290 #define wxTextDataObject_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
1291 static PyObject *_wrap_wxTextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1292 PyObject * _resultobj;
1293 wxTextDataObject * _arg0;
1294 wxString * _arg1;
1295 PyObject * _argo0 = 0;
1296 PyObject * _obj1 = 0;
1297 char *_kwnames[] = { "self","text", NULL };
1298
1299 self = self;
1300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextDataObject_SetText",_kwnames,&_argo0,&_obj1))
1301 return NULL;
1302 if (_argo0) {
1303 if (_argo0 == Py_None) { _arg0 = NULL; }
1304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextDataObject_p")) {
1305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDataObject_SetText. Expected _wxTextDataObject_p.");
1306 return NULL;
1307 }
1308 }
1309 {
1310 #if PYTHON_API_VERSION >= 1009
1311 char* tmpPtr; int tmpSize;
1312 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1313 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1314 return NULL;
1315 }
1316 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1317 return NULL;
1318 _arg1 = new wxString(tmpPtr, tmpSize);
1319 #else
1320 if (!PyString_Check(_obj1)) {
1321 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1322 return NULL;
1323 }
1324 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1325 #endif
1326 }
1327 {
1328 wxPy_BEGIN_ALLOW_THREADS;
1329 wxTextDataObject_SetText(_arg0,*_arg1);
1330
1331 wxPy_END_ALLOW_THREADS;
1332 if (PyErr_Occurred()) return NULL;
1333 } Py_INCREF(Py_None);
1334 _resultobj = Py_None;
1335 {
1336 if (_obj1)
1337 delete _arg1;
1338 }
1339 return _resultobj;
1340 }
1341
1342 static void *SwigwxPyTextDataObjectTowxTextDataObject(void *ptr) {
1343 wxPyTextDataObject *src;
1344 wxTextDataObject *dest;
1345 src = (wxPyTextDataObject *) ptr;
1346 dest = (wxTextDataObject *) src;
1347 return (void *) dest;
1348 }
1349
1350 static void *SwigwxPyTextDataObjectTowxDataObjectSimple(void *ptr) {
1351 wxPyTextDataObject *src;
1352 wxDataObjectSimple *dest;
1353 src = (wxPyTextDataObject *) ptr;
1354 dest = (wxDataObjectSimple *) src;
1355 return (void *) dest;
1356 }
1357
1358 static void *SwigwxPyTextDataObjectTowxDataObject(void *ptr) {
1359 wxPyTextDataObject *src;
1360 wxDataObject *dest;
1361 src = (wxPyTextDataObject *) ptr;
1362 dest = (wxDataObject *) src;
1363 return (void *) dest;
1364 }
1365
1366 #define new_wxPyTextDataObject(_swigarg0) (new wxPyTextDataObject(_swigarg0))
1367 static PyObject *_wrap_new_wxPyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1368 PyObject * _resultobj;
1369 wxPyTextDataObject * _result;
1370 wxString * _arg0 = (wxString *) &wxEmptyString;
1371 PyObject * _obj0 = 0;
1372 char *_kwnames[] = { "text", NULL };
1373 char _ptemp[128];
1374
1375 self = self;
1376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyTextDataObject",_kwnames,&_obj0))
1377 return NULL;
1378 if (_obj0)
1379 {
1380 #if PYTHON_API_VERSION >= 1009
1381 char* tmpPtr; int tmpSize;
1382 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1383 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1384 return NULL;
1385 }
1386 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1387 return NULL;
1388 _arg0 = new wxString(tmpPtr, tmpSize);
1389 #else
1390 if (!PyString_Check(_obj0)) {
1391 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1392 return NULL;
1393 }
1394 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1395 #endif
1396 }
1397 {
1398 wxPy_BEGIN_ALLOW_THREADS;
1399 _result = (wxPyTextDataObject *)new_wxPyTextDataObject(*_arg0);
1400
1401 wxPy_END_ALLOW_THREADS;
1402 if (PyErr_Occurred()) return NULL;
1403 } if (_result) {
1404 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDataObject_p");
1405 _resultobj = Py_BuildValue("s",_ptemp);
1406 } else {
1407 Py_INCREF(Py_None);
1408 _resultobj = Py_None;
1409 }
1410 {
1411 if (_obj0)
1412 delete _arg0;
1413 }
1414 return _resultobj;
1415 }
1416
1417 #define wxPyTextDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1418 static PyObject *_wrap_wxPyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1419 PyObject * _resultobj;
1420 wxPyTextDataObject * _arg0;
1421 PyObject * _arg1;
1422 PyObject * _arg2;
1423 PyObject * _argo0 = 0;
1424 PyObject * _obj1 = 0;
1425 PyObject * _obj2 = 0;
1426 char *_kwnames[] = { "self","self","_class", NULL };
1427
1428 self = self;
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTextDataObject__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1430 return NULL;
1431 if (_argo0) {
1432 if (_argo0 == Py_None) { _arg0 = NULL; }
1433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDataObject_p")) {
1434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTextDataObject__setCallbackInfo. Expected _wxPyTextDataObject_p.");
1435 return NULL;
1436 }
1437 }
1438 {
1439 _arg1 = _obj1;
1440 }
1441 {
1442 _arg2 = _obj2;
1443 }
1444 {
1445 wxPy_BEGIN_ALLOW_THREADS;
1446 wxPyTextDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
1447
1448 wxPy_END_ALLOW_THREADS;
1449 if (PyErr_Occurred()) return NULL;
1450 } Py_INCREF(Py_None);
1451 _resultobj = Py_None;
1452 return _resultobj;
1453 }
1454
1455 static void *SwigwxBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1456 wxBitmapDataObject *src;
1457 wxDataObjectSimple *dest;
1458 src = (wxBitmapDataObject *) ptr;
1459 dest = (wxDataObjectSimple *) src;
1460 return (void *) dest;
1461 }
1462
1463 static void *SwigwxBitmapDataObjectTowxDataObject(void *ptr) {
1464 wxBitmapDataObject *src;
1465 wxDataObject *dest;
1466 src = (wxBitmapDataObject *) ptr;
1467 dest = (wxDataObject *) src;
1468 return (void *) dest;
1469 }
1470
1471 #define new_wxBitmapDataObject(_swigarg0) (new wxBitmapDataObject(_swigarg0))
1472 static PyObject *_wrap_new_wxBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1473 PyObject * _resultobj;
1474 wxBitmapDataObject * _result;
1475 wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap;
1476 PyObject * _argo0 = 0;
1477 char *_kwnames[] = { "bitmap", NULL };
1478 char _ptemp[128];
1479
1480 self = self;
1481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBitmapDataObject",_kwnames,&_argo0))
1482 return NULL;
1483 if (_argo0) {
1484 if (_argo0 == Py_None) { _arg0 = NULL; }
1485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBitmapDataObject. Expected _wxBitmap_p.");
1487 return NULL;
1488 }
1489 }
1490 {
1491 wxPy_BEGIN_ALLOW_THREADS;
1492 _result = (wxBitmapDataObject *)new_wxBitmapDataObject(*_arg0);
1493
1494 wxPy_END_ALLOW_THREADS;
1495 if (PyErr_Occurred()) return NULL;
1496 } if (_result) {
1497 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmapDataObject_p");
1498 _resultobj = Py_BuildValue("s",_ptemp);
1499 } else {
1500 Py_INCREF(Py_None);
1501 _resultobj = Py_None;
1502 }
1503 return _resultobj;
1504 }
1505
1506 #define wxBitmapDataObject_GetBitmap(_swigobj) (_swigobj->GetBitmap())
1507 static PyObject *_wrap_wxBitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1508 PyObject * _resultobj;
1509 wxBitmap * _result;
1510 wxBitmapDataObject * _arg0;
1511 PyObject * _argo0 = 0;
1512 char *_kwnames[] = { "self", NULL };
1513 char _ptemp[128];
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapDataObject_GetBitmap",_kwnames,&_argo0))
1517 return NULL;
1518 if (_argo0) {
1519 if (_argo0 == Py_None) { _arg0 = NULL; }
1520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) {
1521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_GetBitmap. Expected _wxBitmapDataObject_p.");
1522 return NULL;
1523 }
1524 }
1525 {
1526 wxPy_BEGIN_ALLOW_THREADS;
1527 _result = new wxBitmap (wxBitmapDataObject_GetBitmap(_arg0));
1528
1529 wxPy_END_ALLOW_THREADS;
1530 if (PyErr_Occurred()) return NULL;
1531 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1532 _resultobj = Py_BuildValue("s",_ptemp);
1533 return _resultobj;
1534 }
1535
1536 #define wxBitmapDataObject_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
1537 static PyObject *_wrap_wxBitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject * _resultobj;
1539 wxBitmapDataObject * _arg0;
1540 wxBitmap * _arg1;
1541 PyObject * _argo0 = 0;
1542 PyObject * _argo1 = 0;
1543 char *_kwnames[] = { "self","bitmap", NULL };
1544
1545 self = self;
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmapDataObject_SetBitmap",_kwnames,&_argo0,&_argo1))
1547 return NULL;
1548 if (_argo0) {
1549 if (_argo0 == Py_None) { _arg0 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmapDataObject_p")) {
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapDataObject_SetBitmap. Expected _wxBitmapDataObject_p.");
1552 return NULL;
1553 }
1554 }
1555 if (_argo1) {
1556 if (_argo1 == Py_None) { _arg1 = NULL; }
1557 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1558 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmapDataObject_SetBitmap. Expected _wxBitmap_p.");
1559 return NULL;
1560 }
1561 }
1562 {
1563 wxPy_BEGIN_ALLOW_THREADS;
1564 wxBitmapDataObject_SetBitmap(_arg0,*_arg1);
1565
1566 wxPy_END_ALLOW_THREADS;
1567 if (PyErr_Occurred()) return NULL;
1568 } Py_INCREF(Py_None);
1569 _resultobj = Py_None;
1570 return _resultobj;
1571 }
1572
1573 static void *SwigwxPyBitmapDataObjectTowxBitmapDataObject(void *ptr) {
1574 wxPyBitmapDataObject *src;
1575 wxBitmapDataObject *dest;
1576 src = (wxPyBitmapDataObject *) ptr;
1577 dest = (wxBitmapDataObject *) src;
1578 return (void *) dest;
1579 }
1580
1581 static void *SwigwxPyBitmapDataObjectTowxDataObjectSimple(void *ptr) {
1582 wxPyBitmapDataObject *src;
1583 wxDataObjectSimple *dest;
1584 src = (wxPyBitmapDataObject *) ptr;
1585 dest = (wxDataObjectSimple *) src;
1586 return (void *) dest;
1587 }
1588
1589 static void *SwigwxPyBitmapDataObjectTowxDataObject(void *ptr) {
1590 wxPyBitmapDataObject *src;
1591 wxDataObject *dest;
1592 src = (wxPyBitmapDataObject *) ptr;
1593 dest = (wxDataObject *) src;
1594 return (void *) dest;
1595 }
1596
1597 #define new_wxPyBitmapDataObject(_swigarg0) (new wxPyBitmapDataObject(_swigarg0))
1598 static PyObject *_wrap_new_wxPyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1599 PyObject * _resultobj;
1600 wxPyBitmapDataObject * _result;
1601 wxBitmap * _arg0 = (wxBitmap *) &wxNullBitmap;
1602 PyObject * _argo0 = 0;
1603 char *_kwnames[] = { "bitmap", NULL };
1604 char _ptemp[128];
1605
1606 self = self;
1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyBitmapDataObject",_kwnames,&_argo0))
1608 return NULL;
1609 if (_argo0) {
1610 if (_argo0 == Py_None) { _arg0 = NULL; }
1611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyBitmapDataObject. Expected _wxBitmap_p.");
1613 return NULL;
1614 }
1615 }
1616 {
1617 wxPy_BEGIN_ALLOW_THREADS;
1618 _result = (wxPyBitmapDataObject *)new_wxPyBitmapDataObject(*_arg0);
1619
1620 wxPy_END_ALLOW_THREADS;
1621 if (PyErr_Occurred()) return NULL;
1622 } if (_result) {
1623 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyBitmapDataObject_p");
1624 _resultobj = Py_BuildValue("s",_ptemp);
1625 } else {
1626 Py_INCREF(Py_None);
1627 _resultobj = Py_None;
1628 }
1629 return _resultobj;
1630 }
1631
1632 #define wxPyBitmapDataObject__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1633 static PyObject *_wrap_wxPyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1634 PyObject * _resultobj;
1635 wxPyBitmapDataObject * _arg0;
1636 PyObject * _arg1;
1637 PyObject * _arg2;
1638 PyObject * _argo0 = 0;
1639 PyObject * _obj1 = 0;
1640 PyObject * _obj2 = 0;
1641 char *_kwnames[] = { "self","self","_class", NULL };
1642
1643 self = self;
1644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyBitmapDataObject__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1645 return NULL;
1646 if (_argo0) {
1647 if (_argo0 == Py_None) { _arg0 = NULL; }
1648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyBitmapDataObject_p")) {
1649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyBitmapDataObject__setCallbackInfo. Expected _wxPyBitmapDataObject_p.");
1650 return NULL;
1651 }
1652 }
1653 {
1654 _arg1 = _obj1;
1655 }
1656 {
1657 _arg2 = _obj2;
1658 }
1659 {
1660 wxPy_BEGIN_ALLOW_THREADS;
1661 wxPyBitmapDataObject__setCallbackInfo(_arg0,_arg1,_arg2);
1662
1663 wxPy_END_ALLOW_THREADS;
1664 if (PyErr_Occurred()) return NULL;
1665 } Py_INCREF(Py_None);
1666 _resultobj = Py_None;
1667 return _resultobj;
1668 }
1669
1670 static void *SwigwxFileDataObjectTowxDataObjectSimple(void *ptr) {
1671 wxFileDataObject *src;
1672 wxDataObjectSimple *dest;
1673 src = (wxFileDataObject *) ptr;
1674 dest = (wxDataObjectSimple *) src;
1675 return (void *) dest;
1676 }
1677
1678 static void *SwigwxFileDataObjectTowxDataObject(void *ptr) {
1679 wxFileDataObject *src;
1680 wxDataObject *dest;
1681 src = (wxFileDataObject *) ptr;
1682 dest = (wxDataObject *) src;
1683 return (void *) dest;
1684 }
1685
1686 #define new_wxFileDataObject() (new wxFileDataObject())
1687 static PyObject *_wrap_new_wxFileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1688 PyObject * _resultobj;
1689 wxFileDataObject * _result;
1690 char *_kwnames[] = { NULL };
1691 char _ptemp[128];
1692
1693 self = self;
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDataObject",_kwnames))
1695 return NULL;
1696 {
1697 wxPy_BEGIN_ALLOW_THREADS;
1698 _result = (wxFileDataObject *)new_wxFileDataObject();
1699
1700 wxPy_END_ALLOW_THREADS;
1701 if (PyErr_Occurred()) return NULL;
1702 } if (_result) {
1703 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDataObject_p");
1704 _resultobj = Py_BuildValue("s",_ptemp);
1705 } else {
1706 Py_INCREF(Py_None);
1707 _resultobj = Py_None;
1708 }
1709 return _resultobj;
1710 }
1711
1712 static PyObject * wxFileDataObject_GetFilenames(wxFileDataObject *self) {
1713 const wxArrayString& strings = self->GetFilenames();
1714 PyObject* list = PyList_New(0);
1715 for (size_t x=0; x<strings.GetCount(); x++)
1716 PyList_Append(list, PyString_FromString(strings[x]));
1717 return list;
1718 }
1719 static PyObject *_wrap_wxFileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
1720 PyObject * _resultobj;
1721 PyObject * _result;
1722 wxFileDataObject * _arg0;
1723 PyObject * _argo0 = 0;
1724 char *_kwnames[] = { "self", NULL };
1725
1726 self = self;
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDataObject_GetFilenames",_kwnames,&_argo0))
1728 return NULL;
1729 if (_argo0) {
1730 if (_argo0 == Py_None) { _arg0 = NULL; }
1731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDataObject_p")) {
1732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDataObject_GetFilenames. Expected _wxFileDataObject_p.");
1733 return NULL;
1734 }
1735 }
1736 {
1737 wxPy_BEGIN_ALLOW_THREADS;
1738 _result = (PyObject *)wxFileDataObject_GetFilenames(_arg0);
1739
1740 wxPy_END_ALLOW_THREADS;
1741 if (PyErr_Occurred()) return NULL;
1742 }{
1743 _resultobj = _result;
1744 }
1745 return _resultobj;
1746 }
1747
1748 #define wxFileDataObject_AddFile(_swigobj,_swigarg0) (_swigobj->AddFile(_swigarg0))
1749 static PyObject *_wrap_wxFileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1750 PyObject * _resultobj;
1751 wxFileDataObject * _arg0;
1752 wxString * _arg1;
1753 PyObject * _argo0 = 0;
1754 PyObject * _obj1 = 0;
1755 char *_kwnames[] = { "self","filename", NULL };
1756
1757 self = self;
1758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDataObject_AddFile",_kwnames,&_argo0,&_obj1))
1759 return NULL;
1760 if (_argo0) {
1761 if (_argo0 == Py_None) { _arg0 = NULL; }
1762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDataObject_p")) {
1763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDataObject_AddFile. Expected _wxFileDataObject_p.");
1764 return NULL;
1765 }
1766 }
1767 {
1768 #if PYTHON_API_VERSION >= 1009
1769 char* tmpPtr; int tmpSize;
1770 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1771 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1772 return NULL;
1773 }
1774 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1775 return NULL;
1776 _arg1 = new wxString(tmpPtr, tmpSize);
1777 #else
1778 if (!PyString_Check(_obj1)) {
1779 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1780 return NULL;
1781 }
1782 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1783 #endif
1784 }
1785 {
1786 wxPy_BEGIN_ALLOW_THREADS;
1787 wxFileDataObject_AddFile(_arg0,*_arg1);
1788
1789 wxPy_END_ALLOW_THREADS;
1790 if (PyErr_Occurred()) return NULL;
1791 } Py_INCREF(Py_None);
1792 _resultobj = Py_None;
1793 {
1794 if (_obj1)
1795 delete _arg1;
1796 }
1797 return _resultobj;
1798 }
1799
1800 static void *SwigwxCustomDataObjectTowxDataObjectSimple(void *ptr) {
1801 wxCustomDataObject *src;
1802 wxDataObjectSimple *dest;
1803 src = (wxCustomDataObject *) ptr;
1804 dest = (wxDataObjectSimple *) src;
1805 return (void *) dest;
1806 }
1807
1808 static void *SwigwxCustomDataObjectTowxDataObject(void *ptr) {
1809 wxCustomDataObject *src;
1810 wxDataObject *dest;
1811 src = (wxCustomDataObject *) ptr;
1812 dest = (wxDataObject *) src;
1813 return (void *) dest;
1814 }
1815
1816 #define new_wxCustomDataObject(_swigarg0) (new wxCustomDataObject(_swigarg0))
1817 static PyObject *_wrap_new_wxCustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1818 PyObject * _resultobj;
1819 wxCustomDataObject * _result;
1820 wxDataFormat * _arg0 = (wxDataFormat *) &wxPyFormatInvalid;
1821 PyObject * _argo0 = 0;
1822 char *_kwnames[] = { "format", NULL };
1823 char _ptemp[128];
1824
1825 self = self;
1826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxCustomDataObject",_kwnames,&_argo0))
1827 return NULL;
1828 if (_argo0) {
1829 if (_argo0 == Py_None) { _arg0 = NULL; }
1830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataFormat_p")) {
1831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCustomDataObject. Expected _wxDataFormat_p.");
1832 return NULL;
1833 }
1834 }
1835 {
1836 wxPy_BEGIN_ALLOW_THREADS;
1837 _result = (wxCustomDataObject *)new_wxCustomDataObject(*_arg0);
1838
1839 wxPy_END_ALLOW_THREADS;
1840 if (PyErr_Occurred()) return NULL;
1841 } if (_result) {
1842 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCustomDataObject_p");
1843 _resultobj = Py_BuildValue("s",_ptemp);
1844 } else {
1845 Py_INCREF(Py_None);
1846 _resultobj = Py_None;
1847 }
1848 return _resultobj;
1849 }
1850
1851 static void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject * data) {
1852 if (PyString_Check(data)) {
1853 self->SetData(PyString_Size(data), PyString_AsString(data));
1854 }
1855 }
1856 static PyObject *_wrap_wxCustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
1857 PyObject * _resultobj;
1858 wxCustomDataObject * _arg0;
1859 PyObject * _arg1;
1860 PyObject * _argo0 = 0;
1861 PyObject * _obj1 = 0;
1862 char *_kwnames[] = { "self","data", NULL };
1863
1864 self = self;
1865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_TakeData",_kwnames,&_argo0,&_obj1))
1866 return NULL;
1867 if (_argo0) {
1868 if (_argo0 == Py_None) { _arg0 = NULL; }
1869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_TakeData. Expected _wxCustomDataObject_p.");
1871 return NULL;
1872 }
1873 }
1874 {
1875 _arg1 = _obj1;
1876 }
1877 {
1878 wxPy_BEGIN_ALLOW_THREADS;
1879 wxCustomDataObject_TakeData(_arg0,_arg1);
1880
1881 wxPy_END_ALLOW_THREADS;
1882 if (PyErr_Occurred()) return NULL;
1883 } Py_INCREF(Py_None);
1884 _resultobj = Py_None;
1885 return _resultobj;
1886 }
1887
1888 static bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject * data) {
1889 if (PyString_Check(data)) {
1890 return self->SetData(PyString_Size(data), PyString_AsString(data));
1891 }
1892 return FALSE;
1893 }
1894 static PyObject *_wrap_wxCustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject * _resultobj;
1896 bool _result;
1897 wxCustomDataObject * _arg0;
1898 PyObject * _arg1;
1899 PyObject * _argo0 = 0;
1900 PyObject * _obj1 = 0;
1901 char *_kwnames[] = { "self","data", NULL };
1902
1903 self = self;
1904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCustomDataObject_SetData",_kwnames,&_argo0,&_obj1))
1905 return NULL;
1906 if (_argo0) {
1907 if (_argo0 == Py_None) { _arg0 = NULL; }
1908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_SetData. Expected _wxCustomDataObject_p.");
1910 return NULL;
1911 }
1912 }
1913 {
1914 _arg1 = _obj1;
1915 }
1916 {
1917 wxPy_BEGIN_ALLOW_THREADS;
1918 _result = (bool )wxCustomDataObject_SetData(_arg0,_arg1);
1919
1920 wxPy_END_ALLOW_THREADS;
1921 if (PyErr_Occurred()) return NULL;
1922 } _resultobj = Py_BuildValue("i",_result);
1923 return _resultobj;
1924 }
1925
1926 #define wxCustomDataObject_GetSize(_swigobj) (_swigobj->GetSize())
1927 static PyObject *_wrap_wxCustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1928 PyObject * _resultobj;
1929 size_t _result;
1930 wxCustomDataObject * _arg0;
1931 PyObject * _argo0 = 0;
1932 char *_kwnames[] = { "self", NULL };
1933
1934 self = self;
1935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetSize",_kwnames,&_argo0))
1936 return NULL;
1937 if (_argo0) {
1938 if (_argo0 == Py_None) { _arg0 = NULL; }
1939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetSize. Expected _wxCustomDataObject_p.");
1941 return NULL;
1942 }
1943 }
1944 {
1945 wxPy_BEGIN_ALLOW_THREADS;
1946 _result = (size_t )wxCustomDataObject_GetSize(_arg0);
1947
1948 wxPy_END_ALLOW_THREADS;
1949 if (PyErr_Occurred()) return NULL;
1950 } _resultobj = Py_BuildValue("i",_result);
1951 return _resultobj;
1952 }
1953
1954 static PyObject * wxCustomDataObject_GetData(wxCustomDataObject *self) {
1955 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1956 }
1957 static PyObject *_wrap_wxCustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject * _resultobj;
1959 PyObject * _result;
1960 wxCustomDataObject * _arg0;
1961 PyObject * _argo0 = 0;
1962 char *_kwnames[] = { "self", NULL };
1963
1964 self = self;
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCustomDataObject_GetData",_kwnames,&_argo0))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCustomDataObject_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCustomDataObject_GetData. Expected _wxCustomDataObject_p.");
1971 return NULL;
1972 }
1973 }
1974 {
1975 wxPy_BEGIN_ALLOW_THREADS;
1976 _result = (PyObject *)wxCustomDataObject_GetData(_arg0);
1977
1978 wxPy_END_ALLOW_THREADS;
1979 if (PyErr_Occurred()) return NULL;
1980 }{
1981 _resultobj = _result;
1982 }
1983 return _resultobj;
1984 }
1985
1986 static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr) {
1987 wxURLDataObject *src;
1988 wxDataObjectComposite *dest;
1989 src = (wxURLDataObject *) ptr;
1990 dest = (wxDataObjectComposite *) src;
1991 return (void *) dest;
1992 }
1993
1994 static void *SwigwxURLDataObjectTowxDataObject(void *ptr) {
1995 wxURLDataObject *src;
1996 wxDataObject *dest;
1997 src = (wxURLDataObject *) ptr;
1998 dest = (wxDataObject *) src;
1999 return (void *) dest;
2000 }
2001
2002 #define new_wxURLDataObject() (new wxURLDataObject())
2003 static PyObject *_wrap_new_wxURLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2004 PyObject * _resultobj;
2005 wxURLDataObject * _result;
2006 char *_kwnames[] = { NULL };
2007 char _ptemp[128];
2008
2009 self = self;
2010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxURLDataObject",_kwnames))
2011 return NULL;
2012 {
2013 wxPy_BEGIN_ALLOW_THREADS;
2014 _result = (wxURLDataObject *)new_wxURLDataObject();
2015
2016 wxPy_END_ALLOW_THREADS;
2017 if (PyErr_Occurred()) return NULL;
2018 } if (_result) {
2019 SWIG_MakePtr(_ptemp, (char *) _result,"_wxURLDataObject_p");
2020 _resultobj = Py_BuildValue("s",_ptemp);
2021 } else {
2022 Py_INCREF(Py_None);
2023 _resultobj = Py_None;
2024 }
2025 return _resultobj;
2026 }
2027
2028 #define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
2029 static PyObject *_wrap_wxURLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
2030 PyObject * _resultobj;
2031 wxString * _result;
2032 wxURLDataObject * _arg0;
2033 PyObject * _argo0 = 0;
2034 char *_kwnames[] = { "self", NULL };
2035
2036 self = self;
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxURLDataObject_GetURL",_kwnames,&_argo0))
2038 return NULL;
2039 if (_argo0) {
2040 if (_argo0 == Py_None) { _arg0 = NULL; }
2041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
2042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
2043 return NULL;
2044 }
2045 }
2046 {
2047 wxPy_BEGIN_ALLOW_THREADS;
2048 _result = new wxString (wxURLDataObject_GetURL(_arg0));
2049
2050 wxPy_END_ALLOW_THREADS;
2051 if (PyErr_Occurred()) return NULL;
2052 }{
2053 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2054 }
2055 {
2056 delete _result;
2057 }
2058 return _resultobj;
2059 }
2060
2061 #define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
2062 static PyObject *_wrap_wxURLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
2063 PyObject * _resultobj;
2064 wxURLDataObject * _arg0;
2065 wxString * _arg1;
2066 PyObject * _argo0 = 0;
2067 PyObject * _obj1 = 0;
2068 char *_kwnames[] = { "self","url", NULL };
2069
2070 self = self;
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxURLDataObject_SetURL",_kwnames,&_argo0,&_obj1))
2072 return NULL;
2073 if (_argo0) {
2074 if (_argo0 == Py_None) { _arg0 = NULL; }
2075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
2076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
2077 return NULL;
2078 }
2079 }
2080 {
2081 #if PYTHON_API_VERSION >= 1009
2082 char* tmpPtr; int tmpSize;
2083 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2084 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2085 return NULL;
2086 }
2087 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2088 return NULL;
2089 _arg1 = new wxString(tmpPtr, tmpSize);
2090 #else
2091 if (!PyString_Check(_obj1)) {
2092 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2093 return NULL;
2094 }
2095 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2096 #endif
2097 }
2098 {
2099 wxPy_BEGIN_ALLOW_THREADS;
2100 wxURLDataObject_SetURL(_arg0,*_arg1);
2101
2102 wxPy_END_ALLOW_THREADS;
2103 if (PyErr_Occurred()) return NULL;
2104 } Py_INCREF(Py_None);
2105 _resultobj = Py_None;
2106 {
2107 if (_obj1)
2108 delete _arg1;
2109 }
2110 return _resultobj;
2111 }
2112
2113 static void *SwigwxClipboardTowxObject(void *ptr) {
2114 wxClipboard *src;
2115 wxObject *dest;
2116 src = (wxClipboard *) ptr;
2117 dest = (wxObject *) src;
2118 return (void *) dest;
2119 }
2120
2121 #define new_wxClipboard() (new wxClipboard())
2122 static PyObject *_wrap_new_wxClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
2123 PyObject * _resultobj;
2124 wxClipboard * _result;
2125 char *_kwnames[] = { NULL };
2126 char _ptemp[128];
2127
2128 self = self;
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxClipboard",_kwnames))
2130 return NULL;
2131 {
2132 wxPy_BEGIN_ALLOW_THREADS;
2133 _result = (wxClipboard *)new_wxClipboard();
2134
2135 wxPy_END_ALLOW_THREADS;
2136 if (PyErr_Occurred()) return NULL;
2137 } if (_result) {
2138 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClipboard_p");
2139 _resultobj = Py_BuildValue("s",_ptemp);
2140 } else {
2141 Py_INCREF(Py_None);
2142 _resultobj = Py_None;
2143 }
2144 return _resultobj;
2145 }
2146
2147 #define wxClipboard_Open(_swigobj) (_swigobj->Open())
2148 static PyObject *_wrap_wxClipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject * _resultobj;
2150 bool _result;
2151 wxClipboard * _arg0;
2152 PyObject * _argo0 = 0;
2153 char *_kwnames[] = { "self", NULL };
2154
2155 self = self;
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Open",_kwnames,&_argo0))
2157 return NULL;
2158 if (_argo0) {
2159 if (_argo0 == Py_None) { _arg0 = NULL; }
2160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Open. Expected _wxClipboard_p.");
2162 return NULL;
2163 }
2164 }
2165 {
2166 wxPy_BEGIN_ALLOW_THREADS;
2167 _result = (bool )wxClipboard_Open(_arg0);
2168
2169 wxPy_END_ALLOW_THREADS;
2170 if (PyErr_Occurred()) return NULL;
2171 } _resultobj = Py_BuildValue("i",_result);
2172 return _resultobj;
2173 }
2174
2175 #define wxClipboard_Close(_swigobj) (_swigobj->Close())
2176 static PyObject *_wrap_wxClipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
2177 PyObject * _resultobj;
2178 wxClipboard * _arg0;
2179 PyObject * _argo0 = 0;
2180 char *_kwnames[] = { "self", NULL };
2181
2182 self = self;
2183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Close",_kwnames,&_argo0))
2184 return NULL;
2185 if (_argo0) {
2186 if (_argo0 == Py_None) { _arg0 = NULL; }
2187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Close. Expected _wxClipboard_p.");
2189 return NULL;
2190 }
2191 }
2192 {
2193 wxPy_BEGIN_ALLOW_THREADS;
2194 wxClipboard_Close(_arg0);
2195
2196 wxPy_END_ALLOW_THREADS;
2197 if (PyErr_Occurred()) return NULL;
2198 } Py_INCREF(Py_None);
2199 _resultobj = Py_None;
2200 return _resultobj;
2201 }
2202
2203 #define wxClipboard_IsOpened(_swigobj) (_swigobj->IsOpened())
2204 static PyObject *_wrap_wxClipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
2205 PyObject * _resultobj;
2206 bool _result;
2207 wxClipboard * _arg0;
2208 PyObject * _argo0 = 0;
2209 char *_kwnames[] = { "self", NULL };
2210
2211 self = self;
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_IsOpened",_kwnames,&_argo0))
2213 return NULL;
2214 if (_argo0) {
2215 if (_argo0 == Py_None) { _arg0 = NULL; }
2216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsOpened. Expected _wxClipboard_p.");
2218 return NULL;
2219 }
2220 }
2221 {
2222 wxPy_BEGIN_ALLOW_THREADS;
2223 _result = (bool )wxClipboard_IsOpened(_arg0);
2224
2225 wxPy_END_ALLOW_THREADS;
2226 if (PyErr_Occurred()) return NULL;
2227 } _resultobj = Py_BuildValue("i",_result);
2228 return _resultobj;
2229 }
2230
2231 #define wxClipboard_AddData(_swigobj,_swigarg0) (_swigobj->AddData(_swigarg0))
2232 static PyObject *_wrap_wxClipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
2233 PyObject * _resultobj;
2234 bool _result;
2235 wxClipboard * _arg0;
2236 wxDataObject * _arg1;
2237 PyObject * _argo0 = 0;
2238 PyObject * _argo1 = 0;
2239 char *_kwnames[] = { "self","data", NULL };
2240
2241 self = self;
2242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_AddData",_kwnames,&_argo0,&_argo1))
2243 return NULL;
2244 if (_argo0) {
2245 if (_argo0 == Py_None) { _arg0 = NULL; }
2246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_AddData. Expected _wxClipboard_p.");
2248 return NULL;
2249 }
2250 }
2251 if (_argo1) {
2252 if (_argo1 == Py_None) { _arg1 = NULL; }
2253 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2254 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_AddData. Expected _wxDataObject_p.");
2255 return NULL;
2256 }
2257 }
2258 {
2259 wxPy_BEGIN_ALLOW_THREADS;
2260 _result = (bool )wxClipboard_AddData(_arg0,_arg1);
2261
2262 wxPy_END_ALLOW_THREADS;
2263 if (PyErr_Occurred()) return NULL;
2264 } _resultobj = Py_BuildValue("i",_result);
2265 return _resultobj;
2266 }
2267
2268 #define wxClipboard_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2269 static PyObject *_wrap_wxClipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2270 PyObject * _resultobj;
2271 bool _result;
2272 wxClipboard * _arg0;
2273 wxDataObject * _arg1;
2274 PyObject * _argo0 = 0;
2275 PyObject * _argo1 = 0;
2276 char *_kwnames[] = { "self","data", NULL };
2277
2278 self = self;
2279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_SetData",_kwnames,&_argo0,&_argo1))
2280 return NULL;
2281 if (_argo0) {
2282 if (_argo0 == Py_None) { _arg0 = NULL; }
2283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_SetData. Expected _wxClipboard_p.");
2285 return NULL;
2286 }
2287 }
2288 if (_argo1) {
2289 if (_argo1 == Py_None) { _arg1 = NULL; }
2290 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2291 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_SetData. Expected _wxDataObject_p.");
2292 return NULL;
2293 }
2294 }
2295 {
2296 wxPy_BEGIN_ALLOW_THREADS;
2297 _result = (bool )wxClipboard_SetData(_arg0,_arg1);
2298
2299 wxPy_END_ALLOW_THREADS;
2300 if (PyErr_Occurred()) return NULL;
2301 } _resultobj = Py_BuildValue("i",_result);
2302 return _resultobj;
2303 }
2304
2305 #define wxClipboard_IsSupported(_swigobj,_swigarg0) (_swigobj->IsSupported(_swigarg0))
2306 static PyObject *_wrap_wxClipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
2307 PyObject * _resultobj;
2308 bool _result;
2309 wxClipboard * _arg0;
2310 wxDataFormat * _arg1;
2311 PyObject * _argo0 = 0;
2312 PyObject * _argo1 = 0;
2313 char *_kwnames[] = { "self","format", NULL };
2314
2315 self = self;
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_IsSupported",_kwnames,&_argo0,&_argo1))
2317 return NULL;
2318 if (_argo0) {
2319 if (_argo0 == Py_None) { _arg0 = NULL; }
2320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_IsSupported. Expected _wxClipboard_p.");
2322 return NULL;
2323 }
2324 }
2325 if (_argo1) {
2326 if (_argo1 == Py_None) { _arg1 = NULL; }
2327 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataFormat_p")) {
2328 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_IsSupported. Expected _wxDataFormat_p.");
2329 return NULL;
2330 }
2331 }
2332 {
2333 wxPy_BEGIN_ALLOW_THREADS;
2334 _result = (bool )wxClipboard_IsSupported(_arg0,*_arg1);
2335
2336 wxPy_END_ALLOW_THREADS;
2337 if (PyErr_Occurred()) return NULL;
2338 } _resultobj = Py_BuildValue("i",_result);
2339 return _resultobj;
2340 }
2341
2342 #define wxClipboard_GetData(_swigobj,_swigarg0) (_swigobj->GetData(_swigarg0))
2343 static PyObject *_wrap_wxClipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2344 PyObject * _resultobj;
2345 bool _result;
2346 wxClipboard * _arg0;
2347 wxDataObject * _arg1;
2348 PyObject * _argo0 = 0;
2349 PyObject * _argo1 = 0;
2350 char *_kwnames[] = { "self","data", NULL };
2351
2352 self = self;
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxClipboard_GetData",_kwnames,&_argo0,&_argo1))
2354 return NULL;
2355 if (_argo0) {
2356 if (_argo0 == Py_None) { _arg0 = NULL; }
2357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_GetData. Expected _wxClipboard_p.");
2359 return NULL;
2360 }
2361 }
2362 if (_argo1) {
2363 if (_argo1 == Py_None) { _arg1 = NULL; }
2364 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2365 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxClipboard_GetData. Expected _wxDataObject_p.");
2366 return NULL;
2367 }
2368 }
2369 {
2370 wxPy_BEGIN_ALLOW_THREADS;
2371 _result = (bool )wxClipboard_GetData(_arg0,*_arg1);
2372
2373 wxPy_END_ALLOW_THREADS;
2374 if (PyErr_Occurred()) return NULL;
2375 } _resultobj = Py_BuildValue("i",_result);
2376 return _resultobj;
2377 }
2378
2379 #define wxClipboard_Clear(_swigobj) (_swigobj->Clear())
2380 static PyObject *_wrap_wxClipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
2381 PyObject * _resultobj;
2382 wxClipboard * _arg0;
2383 PyObject * _argo0 = 0;
2384 char *_kwnames[] = { "self", NULL };
2385
2386 self = self;
2387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Clear",_kwnames,&_argo0))
2388 return NULL;
2389 if (_argo0) {
2390 if (_argo0 == Py_None) { _arg0 = NULL; }
2391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Clear. Expected _wxClipboard_p.");
2393 return NULL;
2394 }
2395 }
2396 {
2397 wxPy_BEGIN_ALLOW_THREADS;
2398 wxClipboard_Clear(_arg0);
2399
2400 wxPy_END_ALLOW_THREADS;
2401 if (PyErr_Occurred()) return NULL;
2402 } Py_INCREF(Py_None);
2403 _resultobj = Py_None;
2404 return _resultobj;
2405 }
2406
2407 #define wxClipboard_Flush(_swigobj) (_swigobj->Flush())
2408 static PyObject *_wrap_wxClipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
2409 PyObject * _resultobj;
2410 bool _result;
2411 wxClipboard * _arg0;
2412 PyObject * _argo0 = 0;
2413 char *_kwnames[] = { "self", NULL };
2414
2415 self = self;
2416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxClipboard_Flush",_kwnames,&_argo0))
2417 return NULL;
2418 if (_argo0) {
2419 if (_argo0 == Py_None) { _arg0 = NULL; }
2420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_Flush. Expected _wxClipboard_p.");
2422 return NULL;
2423 }
2424 }
2425 {
2426 wxPy_BEGIN_ALLOW_THREADS;
2427 _result = (bool )wxClipboard_Flush(_arg0);
2428
2429 wxPy_END_ALLOW_THREADS;
2430 if (PyErr_Occurred()) return NULL;
2431 } _resultobj = Py_BuildValue("i",_result);
2432 return _resultobj;
2433 }
2434
2435 #define wxClipboard_UsePrimarySelection(_swigobj,_swigarg0) (_swigobj->UsePrimarySelection(_swigarg0))
2436 static PyObject *_wrap_wxClipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2437 PyObject * _resultobj;
2438 wxClipboard * _arg0;
2439 int _arg1 = (int ) FALSE;
2440 PyObject * _argo0 = 0;
2441 char *_kwnames[] = { "self","primary", NULL };
2442
2443 self = self;
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxClipboard_UsePrimarySelection",_kwnames,&_argo0,&_arg1))
2445 return NULL;
2446 if (_argo0) {
2447 if (_argo0 == Py_None) { _arg0 = NULL; }
2448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxClipboard_p")) {
2449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxClipboard_UsePrimarySelection. Expected _wxClipboard_p.");
2450 return NULL;
2451 }
2452 }
2453 {
2454 wxPy_BEGIN_ALLOW_THREADS;
2455 wxClipboard_UsePrimarySelection(_arg0,_arg1);
2456
2457 wxPy_END_ALLOW_THREADS;
2458 if (PyErr_Occurred()) return NULL;
2459 } Py_INCREF(Py_None);
2460 _resultobj = Py_None;
2461 return _resultobj;
2462 }
2463
2464 #define new_wxDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPyDropSource(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2465 static PyObject *_wrap_new_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 wxPyDropSource * _result;
2468 wxWindow * _arg0 = (wxWindow *) NULL;
2469 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
2470 wxCursor * _arg2 = (wxCursor *) &wxNullCursor;
2471 wxCursor * _arg3 = (wxCursor *) &wxNullCursor;
2472 PyObject * _argo0 = 0;
2473 PyObject * _argo1 = 0;
2474 PyObject * _argo2 = 0;
2475 PyObject * _argo3 = 0;
2476 char *_kwnames[] = { "win","cursorCopy","cursorMove","cursorStop", NULL };
2477 char _ptemp[128];
2478
2479 self = self;
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOO:new_wxDropSource",_kwnames,&_argo0,&_argo1,&_argo2,&_argo3))
2481 return NULL;
2482 if (_argo0) {
2483 if (_argo0 == Py_None) { _arg0 = NULL; }
2484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDropSource. Expected _wxWindow_p.");
2486 return NULL;
2487 }
2488 }
2489 if (_argo1) {
2490 if (_argo1 == Py_None) { _arg1 = NULL; }
2491 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2492 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDropSource. Expected _wxCursor_p.");
2493 return NULL;
2494 }
2495 }
2496 if (_argo2) {
2497 if (_argo2 == Py_None) { _arg2 = NULL; }
2498 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) {
2499 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxDropSource. Expected _wxCursor_p.");
2500 return NULL;
2501 }
2502 }
2503 if (_argo3) {
2504 if (_argo3 == Py_None) { _arg3 = NULL; }
2505 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxCursor_p")) {
2506 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxDropSource. Expected _wxCursor_p.");
2507 return NULL;
2508 }
2509 }
2510 {
2511 wxPy_BEGIN_ALLOW_THREADS;
2512 _result = (wxPyDropSource *)new_wxDropSource(_arg0,*_arg1,*_arg2,*_arg3);
2513
2514 wxPy_END_ALLOW_THREADS;
2515 if (PyErr_Occurred()) return NULL;
2516 } if (_result) {
2517 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropSource_p");
2518 _resultobj = Py_BuildValue("s",_ptemp);
2519 } else {
2520 Py_INCREF(Py_None);
2521 _resultobj = Py_None;
2522 }
2523 return _resultobj;
2524 }
2525
2526 #define wxDropSource__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
2527 static PyObject *_wrap_wxDropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2528 PyObject * _resultobj;
2529 wxPyDropSource * _arg0;
2530 PyObject * _arg1;
2531 PyObject * _arg2;
2532 int _arg3;
2533 PyObject * _argo0 = 0;
2534 PyObject * _obj1 = 0;
2535 PyObject * _obj2 = 0;
2536 char *_kwnames[] = { "self","self","_class","incref", NULL };
2537
2538 self = self;
2539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxDropSource__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
2540 return NULL;
2541 if (_argo0) {
2542 if (_argo0 == Py_None) { _arg0 = NULL; }
2543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource__setCallbackInfo. Expected _wxPyDropSource_p.");
2545 return NULL;
2546 }
2547 }
2548 {
2549 _arg1 = _obj1;
2550 }
2551 {
2552 _arg2 = _obj2;
2553 }
2554 {
2555 wxPy_BEGIN_ALLOW_THREADS;
2556 wxDropSource__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
2557
2558 wxPy_END_ALLOW_THREADS;
2559 if (PyErr_Occurred()) return NULL;
2560 } Py_INCREF(Py_None);
2561 _resultobj = Py_None;
2562 return _resultobj;
2563 }
2564
2565 #define delete_wxPyDropSource(_swigobj) (delete _swigobj)
2566 static PyObject *_wrap_delete_wxDropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
2567 PyObject * _resultobj;
2568 wxPyDropSource * _arg0;
2569 PyObject * _argo0 = 0;
2570 char *_kwnames[] = { "self", NULL };
2571
2572 self = self;
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDropSource",_kwnames,&_argo0))
2574 return NULL;
2575 if (_argo0) {
2576 if (_argo0 == Py_None) { _arg0 = NULL; }
2577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDropSource. Expected _wxPyDropSource_p.");
2579 return NULL;
2580 }
2581 }
2582 {
2583 wxPy_BEGIN_ALLOW_THREADS;
2584 delete_wxPyDropSource(_arg0);
2585
2586 wxPy_END_ALLOW_THREADS;
2587 if (PyErr_Occurred()) return NULL;
2588 } Py_INCREF(Py_None);
2589 _resultobj = Py_None;
2590 return _resultobj;
2591 }
2592
2593 #define wxDropSource_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
2594 static PyObject *_wrap_wxDropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
2595 PyObject * _resultobj;
2596 wxPyDropSource * _arg0;
2597 wxDataObject * _arg1;
2598 PyObject * _argo0 = 0;
2599 PyObject * _argo1 = 0;
2600 char *_kwnames[] = { "self","data", NULL };
2601
2602 self = self;
2603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDropSource_SetData",_kwnames,&_argo0,&_argo1))
2604 return NULL;
2605 if (_argo0) {
2606 if (_argo0 == Py_None) { _arg0 = NULL; }
2607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetData. Expected _wxPyDropSource_p.");
2609 return NULL;
2610 }
2611 }
2612 if (_argo1) {
2613 if (_argo1 == Py_None) { _arg1 = NULL; }
2614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDropSource_SetData. Expected _wxDataObject_p.");
2616 return NULL;
2617 }
2618 }
2619 {
2620 wxPy_BEGIN_ALLOW_THREADS;
2621 wxDropSource_SetData(_arg0,*_arg1);
2622
2623 wxPy_END_ALLOW_THREADS;
2624 if (PyErr_Occurred()) return NULL;
2625 } Py_INCREF(Py_None);
2626 _resultobj = Py_None;
2627 return _resultobj;
2628 }
2629
2630 #define wxDropSource_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2631 static PyObject *_wrap_wxDropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2632 PyObject * _resultobj;
2633 wxDataObject * _result;
2634 wxPyDropSource * _arg0;
2635 PyObject * _argo0 = 0;
2636 char *_kwnames[] = { "self", NULL };
2637 char _ptemp[128];
2638
2639 self = self;
2640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDropSource_GetDataObject",_kwnames,&_argo0))
2641 return NULL;
2642 if (_argo0) {
2643 if (_argo0 == Py_None) { _arg0 = NULL; }
2644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_GetDataObject. Expected _wxPyDropSource_p.");
2646 return NULL;
2647 }
2648 }
2649 {
2650 wxPy_BEGIN_ALLOW_THREADS;
2651 _result = (wxDataObject *)wxDropSource_GetDataObject(_arg0);
2652
2653 wxPy_END_ALLOW_THREADS;
2654 if (PyErr_Occurred()) return NULL;
2655 } if (_result) {
2656 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2657 _resultobj = Py_BuildValue("s",_ptemp);
2658 } else {
2659 Py_INCREF(Py_None);
2660 _resultobj = Py_None;
2661 }
2662 return _resultobj;
2663 }
2664
2665 #define wxDropSource_SetCursor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCursor(_swigarg0,_swigarg1))
2666 static PyObject *_wrap_wxDropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2667 PyObject * _resultobj;
2668 wxPyDropSource * _arg0;
2669 wxDragResult _arg1;
2670 wxCursor * _arg2;
2671 PyObject * _argo0 = 0;
2672 PyObject * _argo2 = 0;
2673 char *_kwnames[] = { "self","res","cursor", NULL };
2674
2675 self = self;
2676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxDropSource_SetCursor",_kwnames,&_argo0,&_arg1,&_argo2))
2677 return NULL;
2678 if (_argo0) {
2679 if (_argo0 == Py_None) { _arg0 = NULL; }
2680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_SetCursor. Expected _wxPyDropSource_p.");
2682 return NULL;
2683 }
2684 }
2685 if (_argo2) {
2686 if (_argo2 == Py_None) { _arg2 = NULL; }
2687 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxCursor_p")) {
2688 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDropSource_SetCursor. Expected _wxCursor_p.");
2689 return NULL;
2690 }
2691 }
2692 {
2693 wxPy_BEGIN_ALLOW_THREADS;
2694 wxDropSource_SetCursor(_arg0,_arg1,*_arg2);
2695
2696 wxPy_END_ALLOW_THREADS;
2697 if (PyErr_Occurred()) return NULL;
2698 } Py_INCREF(Py_None);
2699 _resultobj = Py_None;
2700 return _resultobj;
2701 }
2702
2703 #define wxDropSource_DoDragDrop(_swigobj,_swigarg0) (_swigobj->DoDragDrop(_swigarg0))
2704 static PyObject *_wrap_wxDropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
2705 PyObject * _resultobj;
2706 wxDragResult _result;
2707 wxPyDropSource * _arg0;
2708 int _arg1 = (int ) FALSE;
2709 PyObject * _argo0 = 0;
2710 char *_kwnames[] = { "self","bAllowMove", NULL };
2711
2712 self = self;
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDropSource_DoDragDrop",_kwnames,&_argo0,&_arg1))
2714 return NULL;
2715 if (_argo0) {
2716 if (_argo0 == Py_None) { _arg0 = NULL; }
2717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_DoDragDrop. Expected _wxPyDropSource_p.");
2719 return NULL;
2720 }
2721 }
2722 {
2723 wxPy_BEGIN_ALLOW_THREADS;
2724 _result = (wxDragResult )wxDropSource_DoDragDrop(_arg0,_arg1);
2725
2726 wxPy_END_ALLOW_THREADS;
2727 if (PyErr_Occurred()) return NULL;
2728 } _resultobj = Py_BuildValue("i",_result);
2729 return _resultobj;
2730 }
2731
2732 #define wxDropSource_base_GiveFeedback(_swigobj,_swigarg0) (_swigobj->base_GiveFeedback(_swigarg0))
2733 static PyObject *_wrap_wxDropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject * _resultobj;
2735 bool _result;
2736 wxPyDropSource * _arg0;
2737 wxDragResult _arg1;
2738 PyObject * _argo0 = 0;
2739 char *_kwnames[] = { "self","effect", NULL };
2740
2741 self = self;
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDropSource_base_GiveFeedback",_kwnames,&_argo0,&_arg1))
2743 return NULL;
2744 if (_argo0) {
2745 if (_argo0 == Py_None) { _arg0 = NULL; }
2746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropSource_p")) {
2747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDropSource_base_GiveFeedback. Expected _wxPyDropSource_p.");
2748 return NULL;
2749 }
2750 }
2751 {
2752 wxPy_BEGIN_ALLOW_THREADS;
2753 _result = (bool )wxDropSource_base_GiveFeedback(_arg0,_arg1);
2754
2755 wxPy_END_ALLOW_THREADS;
2756 if (PyErr_Occurred()) return NULL;
2757 } _resultobj = Py_BuildValue("i",_result);
2758 return _resultobj;
2759 }
2760
2761 static void *SwigwxPyDropTargetTowxDropTarget(void *ptr) {
2762 wxPyDropTarget *src;
2763 wxDropTarget *dest;
2764 src = (wxPyDropTarget *) ptr;
2765 dest = (wxDropTarget *) src;
2766 return (void *) dest;
2767 }
2768
2769 #define new_wxPyDropTarget(_swigarg0) (new wxPyDropTarget(_swigarg0))
2770 static PyObject *_wrap_new_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject * _resultobj;
2772 wxPyDropTarget * _result;
2773 wxDataObject * _arg0 = (wxDataObject *) NULL;
2774 PyObject * _argo0 = 0;
2775 char *_kwnames[] = { "dataObject", NULL };
2776 char _ptemp[128];
2777
2778 self = self;
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPyDropTarget",_kwnames,&_argo0))
2780 return NULL;
2781 if (_argo0) {
2782 if (_argo0 == Py_None) { _arg0 = NULL; }
2783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDataObject_p")) {
2784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyDropTarget. Expected _wxDataObject_p.");
2785 return NULL;
2786 }
2787 }
2788 {
2789 wxPy_BEGIN_ALLOW_THREADS;
2790 _result = (wxPyDropTarget *)new_wxPyDropTarget(_arg0);
2791
2792 wxPy_END_ALLOW_THREADS;
2793 if (PyErr_Occurred()) return NULL;
2794 } if (_result) {
2795 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyDropTarget_p");
2796 _resultobj = Py_BuildValue("s",_ptemp);
2797 } else {
2798 Py_INCREF(Py_None);
2799 _resultobj = Py_None;
2800 }
2801 return _resultobj;
2802 }
2803
2804 #define wxPyDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
2805 static PyObject *_wrap_wxPyDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2806 PyObject * _resultobj;
2807 wxPyDropTarget * _arg0;
2808 PyObject * _arg1;
2809 PyObject * _arg2;
2810 PyObject * _argo0 = 0;
2811 PyObject * _obj1 = 0;
2812 PyObject * _obj2 = 0;
2813 char *_kwnames[] = { "self","self","_class", NULL };
2814
2815 self = self;
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
2817 return NULL;
2818 if (_argo0) {
2819 if (_argo0 == Py_None) { _arg0 = NULL; }
2820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget__setCallbackInfo. Expected _wxPyDropTarget_p.");
2822 return NULL;
2823 }
2824 }
2825 {
2826 _arg1 = _obj1;
2827 }
2828 {
2829 _arg2 = _obj2;
2830 }
2831 {
2832 wxPy_BEGIN_ALLOW_THREADS;
2833 wxPyDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
2834
2835 wxPy_END_ALLOW_THREADS;
2836 if (PyErr_Occurred()) return NULL;
2837 } Py_INCREF(Py_None);
2838 _resultobj = Py_None;
2839 return _resultobj;
2840 }
2841
2842 #define delete_wxPyDropTarget(_swigobj) (delete _swigobj)
2843 static PyObject *_wrap_delete_wxPyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject * _resultobj;
2845 wxPyDropTarget * _arg0;
2846 PyObject * _argo0 = 0;
2847 char *_kwnames[] = { "self", NULL };
2848
2849 self = self;
2850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyDropTarget",_kwnames,&_argo0))
2851 return NULL;
2852 if (_argo0) {
2853 if (_argo0 == Py_None) { _arg0 = NULL; }
2854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyDropTarget. Expected _wxPyDropTarget_p.");
2856 return NULL;
2857 }
2858 }
2859 {
2860 wxPy_BEGIN_ALLOW_THREADS;
2861 delete_wxPyDropTarget(_arg0);
2862
2863 wxPy_END_ALLOW_THREADS;
2864 if (PyErr_Occurred()) return NULL;
2865 } Py_INCREF(Py_None);
2866 _resultobj = Py_None;
2867 return _resultobj;
2868 }
2869
2870 #define wxPyDropTarget_GetDataObject(_swigobj) (_swigobj->GetDataObject())
2871 static PyObject *_wrap_wxPyDropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject * _resultobj;
2873 wxDataObject * _result;
2874 wxPyDropTarget * _arg0;
2875 PyObject * _argo0 = 0;
2876 char *_kwnames[] = { "self", NULL };
2877 char _ptemp[128];
2878
2879 self = self;
2880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetDataObject",_kwnames,&_argo0))
2881 return NULL;
2882 if (_argo0) {
2883 if (_argo0 == Py_None) { _arg0 = NULL; }
2884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetDataObject. Expected _wxPyDropTarget_p.");
2886 return NULL;
2887 }
2888 }
2889 {
2890 wxPy_BEGIN_ALLOW_THREADS;
2891 _result = (wxDataObject *)wxPyDropTarget_GetDataObject(_arg0);
2892
2893 wxPy_END_ALLOW_THREADS;
2894 if (PyErr_Occurred()) return NULL;
2895 } if (_result) {
2896 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDataObject_p");
2897 _resultobj = Py_BuildValue("s",_ptemp);
2898 } else {
2899 Py_INCREF(Py_None);
2900 _resultobj = Py_None;
2901 }
2902 return _resultobj;
2903 }
2904
2905 #define wxPyDropTarget_SetDataObject(_swigobj,_swigarg0) (_swigobj->SetDataObject(_swigarg0))
2906 static PyObject *_wrap_wxPyDropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 wxPyDropTarget * _arg0;
2909 wxDataObject * _arg1;
2910 PyObject * _argo0 = 0;
2911 PyObject * _argo1 = 0;
2912 char *_kwnames[] = { "self","dataObject", NULL };
2913
2914 self = self;
2915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyDropTarget_SetDataObject",_kwnames,&_argo0,&_argo1))
2916 return NULL;
2917 if (_argo0) {
2918 if (_argo0 == Py_None) { _arg0 = NULL; }
2919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_SetDataObject. Expected _wxPyDropTarget_p.");
2921 return NULL;
2922 }
2923 }
2924 if (_argo1) {
2925 if (_argo1 == Py_None) { _arg1 = NULL; }
2926 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDataObject_p")) {
2927 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyDropTarget_SetDataObject. Expected _wxDataObject_p.");
2928 return NULL;
2929 }
2930 }
2931 {
2932 wxPy_BEGIN_ALLOW_THREADS;
2933 wxPyDropTarget_SetDataObject(_arg0,_arg1);
2934
2935 wxPy_END_ALLOW_THREADS;
2936 if (PyErr_Occurred()) return NULL;
2937 } Py_INCREF(Py_None);
2938 _resultobj = Py_None;
2939 return _resultobj;
2940 }
2941
2942 #define wxPyDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
2943 static PyObject *_wrap_wxPyDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
2944 PyObject * _resultobj;
2945 wxDragResult _result;
2946 wxPyDropTarget * _arg0;
2947 wxCoord _arg1;
2948 wxCoord _arg2;
2949 wxDragResult _arg3;
2950 PyObject * _argo0 = 0;
2951 char *_kwnames[] = { "self","x","y","def", NULL };
2952
2953 self = self;
2954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2955 return NULL;
2956 if (_argo0) {
2957 if (_argo0 == Py_None) { _arg0 = NULL; }
2958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnEnter. Expected _wxPyDropTarget_p.");
2960 return NULL;
2961 }
2962 }
2963 {
2964 wxPy_BEGIN_ALLOW_THREADS;
2965 _result = (wxDragResult )wxPyDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
2966
2967 wxPy_END_ALLOW_THREADS;
2968 if (PyErr_Occurred()) return NULL;
2969 } _resultobj = Py_BuildValue("i",_result);
2970 return _resultobj;
2971 }
2972
2973 #define wxPyDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
2974 static PyObject *_wrap_wxPyDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
2975 PyObject * _resultobj;
2976 wxDragResult _result;
2977 wxPyDropTarget * _arg0;
2978 wxCoord _arg1;
2979 wxCoord _arg2;
2980 wxDragResult _arg3;
2981 PyObject * _argo0 = 0;
2982 char *_kwnames[] = { "self","x","y","def", NULL };
2983
2984 self = self;
2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2986 return NULL;
2987 if (_argo0) {
2988 if (_argo0 == Py_None) { _arg0 = NULL; }
2989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
2990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDragOver. Expected _wxPyDropTarget_p.");
2991 return NULL;
2992 }
2993 }
2994 {
2995 wxPy_BEGIN_ALLOW_THREADS;
2996 _result = (wxDragResult )wxPyDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
2997
2998 wxPy_END_ALLOW_THREADS;
2999 if (PyErr_Occurred()) return NULL;
3000 } _resultobj = Py_BuildValue("i",_result);
3001 return _resultobj;
3002 }
3003
3004 #define wxPyDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3005 static PyObject *_wrap_wxPyDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3006 PyObject * _resultobj;
3007 wxPyDropTarget * _arg0;
3008 PyObject * _argo0 = 0;
3009 char *_kwnames[] = { "self", NULL };
3010
3011 self = self;
3012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_base_OnLeave",_kwnames,&_argo0))
3013 return NULL;
3014 if (_argo0) {
3015 if (_argo0 == Py_None) { _arg0 = NULL; }
3016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
3017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnLeave. Expected _wxPyDropTarget_p.");
3018 return NULL;
3019 }
3020 }
3021 {
3022 wxPy_BEGIN_ALLOW_THREADS;
3023 wxPyDropTarget_base_OnLeave(_arg0);
3024
3025 wxPy_END_ALLOW_THREADS;
3026 if (PyErr_Occurred()) return NULL;
3027 } Py_INCREF(Py_None);
3028 _resultobj = Py_None;
3029 return _resultobj;
3030 }
3031
3032 #define wxPyDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3033 static PyObject *_wrap_wxPyDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
3034 PyObject * _resultobj;
3035 bool _result;
3036 wxPyDropTarget * _arg0;
3037 wxCoord _arg1;
3038 wxCoord _arg2;
3039 PyObject * _argo0 = 0;
3040 char *_kwnames[] = { "self","x","y", NULL };
3041
3042 self = self;
3043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3044 return NULL;
3045 if (_argo0) {
3046 if (_argo0 == Py_None) { _arg0 = NULL; }
3047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
3048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_base_OnDrop. Expected _wxPyDropTarget_p.");
3049 return NULL;
3050 }
3051 }
3052 {
3053 wxPy_BEGIN_ALLOW_THREADS;
3054 _result = (bool )wxPyDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3055
3056 wxPy_END_ALLOW_THREADS;
3057 if (PyErr_Occurred()) return NULL;
3058 } _resultobj = Py_BuildValue("i",_result);
3059 return _resultobj;
3060 }
3061
3062 #define wxPyDropTarget_GetData(_swigobj) (_swigobj->GetData())
3063 static PyObject *_wrap_wxPyDropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject * _resultobj;
3065 bool _result;
3066 wxPyDropTarget * _arg0;
3067 PyObject * _argo0 = 0;
3068 char *_kwnames[] = { "self", NULL };
3069
3070 self = self;
3071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyDropTarget_GetData",_kwnames,&_argo0))
3072 return NULL;
3073 if (_argo0) {
3074 if (_argo0 == Py_None) { _arg0 = NULL; }
3075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyDropTarget_p")) {
3076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyDropTarget_GetData. Expected _wxPyDropTarget_p.");
3077 return NULL;
3078 }
3079 }
3080 {
3081 wxPy_BEGIN_ALLOW_THREADS;
3082 _result = (bool )wxPyDropTarget_GetData(_arg0);
3083
3084 wxPy_END_ALLOW_THREADS;
3085 if (PyErr_Occurred()) return NULL;
3086 } _resultobj = Py_BuildValue("i",_result);
3087 return _resultobj;
3088 }
3089
3090 static void *SwigwxPyTextDropTargetTowxPyDropTarget(void *ptr) {
3091 wxPyTextDropTarget *src;
3092 wxPyDropTarget *dest;
3093 src = (wxPyTextDropTarget *) ptr;
3094 dest = (wxPyDropTarget *) src;
3095 return (void *) dest;
3096 }
3097
3098 static void *SwigwxPyTextDropTargetTowxDropTarget(void *ptr) {
3099 wxPyTextDropTarget *src;
3100 wxDropTarget *dest;
3101 src = (wxPyTextDropTarget *) ptr;
3102 dest = (wxDropTarget *) src;
3103 return (void *) dest;
3104 }
3105
3106 #define new_wxTextDropTarget() (new wxPyTextDropTarget())
3107 static PyObject *_wrap_new_wxTextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
3108 PyObject * _resultobj;
3109 wxPyTextDropTarget * _result;
3110 char *_kwnames[] = { NULL };
3111 char _ptemp[128];
3112
3113 self = self;
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTextDropTarget",_kwnames))
3115 return NULL;
3116 {
3117 wxPy_BEGIN_ALLOW_THREADS;
3118 _result = (wxPyTextDropTarget *)new_wxTextDropTarget();
3119
3120 wxPy_END_ALLOW_THREADS;
3121 if (PyErr_Occurred()) return NULL;
3122 } if (_result) {
3123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTextDropTarget_p");
3124 _resultobj = Py_BuildValue("s",_ptemp);
3125 } else {
3126 Py_INCREF(Py_None);
3127 _resultobj = Py_None;
3128 }
3129 return _resultobj;
3130 }
3131
3132 #define wxTextDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3133 static PyObject *_wrap_wxTextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3134 PyObject * _resultobj;
3135 wxPyTextDropTarget * _arg0;
3136 PyObject * _arg1;
3137 PyObject * _arg2;
3138 PyObject * _argo0 = 0;
3139 PyObject * _obj1 = 0;
3140 PyObject * _obj2 = 0;
3141 char *_kwnames[] = { "self","self","_class", NULL };
3142
3143 self = self;
3144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTextDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3145 return NULL;
3146 if (_argo0) {
3147 if (_argo0 == Py_None) { _arg0 = NULL; }
3148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget__setCallbackInfo. Expected _wxPyTextDropTarget_p.");
3150 return NULL;
3151 }
3152 }
3153 {
3154 _arg1 = _obj1;
3155 }
3156 {
3157 _arg2 = _obj2;
3158 }
3159 {
3160 wxPy_BEGIN_ALLOW_THREADS;
3161 wxTextDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
3162
3163 wxPy_END_ALLOW_THREADS;
3164 if (PyErr_Occurred()) return NULL;
3165 } Py_INCREF(Py_None);
3166 _resultobj = Py_None;
3167 return _resultobj;
3168 }
3169
3170 #define wxTextDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3171 static PyObject *_wrap_wxTextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject * _resultobj;
3173 wxDragResult _result;
3174 wxPyTextDropTarget * _arg0;
3175 wxCoord _arg1;
3176 wxCoord _arg2;
3177 wxDragResult _arg3;
3178 PyObject * _argo0 = 0;
3179 char *_kwnames[] = { "self","x","y","def", NULL };
3180
3181 self = self;
3182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3183 return NULL;
3184 if (_argo0) {
3185 if (_argo0 == Py_None) { _arg0 = NULL; }
3186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnEnter. Expected _wxPyTextDropTarget_p.");
3188 return NULL;
3189 }
3190 }
3191 {
3192 wxPy_BEGIN_ALLOW_THREADS;
3193 _result = (wxDragResult )wxTextDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
3194
3195 wxPy_END_ALLOW_THREADS;
3196 if (PyErr_Occurred()) return NULL;
3197 } _resultobj = Py_BuildValue("i",_result);
3198 return _resultobj;
3199 }
3200
3201 #define wxTextDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3202 static PyObject *_wrap_wxTextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
3203 PyObject * _resultobj;
3204 wxDragResult _result;
3205 wxPyTextDropTarget * _arg0;
3206 wxCoord _arg1;
3207 wxCoord _arg2;
3208 wxDragResult _arg3;
3209 PyObject * _argo0 = 0;
3210 char *_kwnames[] = { "self","x","y","def", NULL };
3211
3212 self = self;
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3214 return NULL;
3215 if (_argo0) {
3216 if (_argo0 == Py_None) { _arg0 = NULL; }
3217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDragOver. Expected _wxPyTextDropTarget_p.");
3219 return NULL;
3220 }
3221 }
3222 {
3223 wxPy_BEGIN_ALLOW_THREADS;
3224 _result = (wxDragResult )wxTextDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3225
3226 wxPy_END_ALLOW_THREADS;
3227 if (PyErr_Occurred()) return NULL;
3228 } _resultobj = Py_BuildValue("i",_result);
3229 return _resultobj;
3230 }
3231
3232 #define wxTextDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3233 static PyObject *_wrap_wxTextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3234 PyObject * _resultobj;
3235 wxPyTextDropTarget * _arg0;
3236 PyObject * _argo0 = 0;
3237 char *_kwnames[] = { "self", NULL };
3238
3239 self = self;
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextDropTarget_base_OnLeave",_kwnames,&_argo0))
3241 return NULL;
3242 if (_argo0) {
3243 if (_argo0 == Py_None) { _arg0 = NULL; }
3244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnLeave. Expected _wxPyTextDropTarget_p.");
3246 return NULL;
3247 }
3248 }
3249 {
3250 wxPy_BEGIN_ALLOW_THREADS;
3251 wxTextDropTarget_base_OnLeave(_arg0);
3252
3253 wxPy_END_ALLOW_THREADS;
3254 if (PyErr_Occurred()) return NULL;
3255 } Py_INCREF(Py_None);
3256 _resultobj = Py_None;
3257 return _resultobj;
3258 }
3259
3260 #define wxTextDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3261 static PyObject *_wrap_wxTextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
3262 PyObject * _resultobj;
3263 bool _result;
3264 wxPyTextDropTarget * _arg0;
3265 wxCoord _arg1;
3266 wxCoord _arg2;
3267 PyObject * _argo0 = 0;
3268 char *_kwnames[] = { "self","x","y", NULL };
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxTextDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnDrop. Expected _wxPyTextDropTarget_p.");
3277 return NULL;
3278 }
3279 }
3280 {
3281 wxPy_BEGIN_ALLOW_THREADS;
3282 _result = (bool )wxTextDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3283
3284 wxPy_END_ALLOW_THREADS;
3285 if (PyErr_Occurred()) return NULL;
3286 } _resultobj = Py_BuildValue("i",_result);
3287 return _resultobj;
3288 }
3289
3290 #define wxTextDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3291 static PyObject *_wrap_wxTextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject * _resultobj;
3293 wxDragResult _result;
3294 wxPyTextDropTarget * _arg0;
3295 wxCoord _arg1;
3296 wxCoord _arg2;
3297 wxDragResult _arg3;
3298 PyObject * _argo0 = 0;
3299 char *_kwnames[] = { "self","x","y","def", NULL };
3300
3301 self = self;
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxTextDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3303 return NULL;
3304 if (_argo0) {
3305 if (_argo0 == Py_None) { _arg0 = NULL; }
3306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTextDropTarget_p")) {
3307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextDropTarget_base_OnData. Expected _wxPyTextDropTarget_p.");
3308 return NULL;
3309 }
3310 }
3311 {
3312 wxPy_BEGIN_ALLOW_THREADS;
3313 _result = (wxDragResult )wxTextDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
3314
3315 wxPy_END_ALLOW_THREADS;
3316 if (PyErr_Occurred()) return NULL;
3317 } _resultobj = Py_BuildValue("i",_result);
3318 return _resultobj;
3319 }
3320
3321 static void *SwigwxPyFileDropTargetTowxPyDropTarget(void *ptr) {
3322 wxPyFileDropTarget *src;
3323 wxPyDropTarget *dest;
3324 src = (wxPyFileDropTarget *) ptr;
3325 dest = (wxPyDropTarget *) src;
3326 return (void *) dest;
3327 }
3328
3329 static void *SwigwxPyFileDropTargetTowxDropTarget(void *ptr) {
3330 wxPyFileDropTarget *src;
3331 wxDropTarget *dest;
3332 src = (wxPyFileDropTarget *) ptr;
3333 dest = (wxDropTarget *) src;
3334 return (void *) dest;
3335 }
3336
3337 #define new_wxFileDropTarget() (new wxPyFileDropTarget())
3338 static PyObject *_wrap_new_wxFileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
3339 PyObject * _resultobj;
3340 wxPyFileDropTarget * _result;
3341 char *_kwnames[] = { NULL };
3342 char _ptemp[128];
3343
3344 self = self;
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFileDropTarget",_kwnames))
3346 return NULL;
3347 {
3348 wxPy_BEGIN_ALLOW_THREADS;
3349 _result = (wxPyFileDropTarget *)new_wxFileDropTarget();
3350
3351 wxPy_END_ALLOW_THREADS;
3352 if (PyErr_Occurred()) return NULL;
3353 } if (_result) {
3354 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFileDropTarget_p");
3355 _resultobj = Py_BuildValue("s",_ptemp);
3356 } else {
3357 Py_INCREF(Py_None);
3358 _resultobj = Py_None;
3359 }
3360 return _resultobj;
3361 }
3362
3363 #define wxFileDropTarget__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3364 static PyObject *_wrap_wxFileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3365 PyObject * _resultobj;
3366 wxPyFileDropTarget * _arg0;
3367 PyObject * _arg1;
3368 PyObject * _arg2;
3369 PyObject * _argo0 = 0;
3370 PyObject * _obj1 = 0;
3371 PyObject * _obj2 = 0;
3372 char *_kwnames[] = { "self","self","_class", NULL };
3373
3374 self = self;
3375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileDropTarget__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3376 return NULL;
3377 if (_argo0) {
3378 if (_argo0 == Py_None) { _arg0 = NULL; }
3379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget__setCallbackInfo. Expected _wxPyFileDropTarget_p.");
3381 return NULL;
3382 }
3383 }
3384 {
3385 _arg1 = _obj1;
3386 }
3387 {
3388 _arg2 = _obj2;
3389 }
3390 {
3391 wxPy_BEGIN_ALLOW_THREADS;
3392 wxFileDropTarget__setCallbackInfo(_arg0,_arg1,_arg2);
3393
3394 wxPy_END_ALLOW_THREADS;
3395 if (PyErr_Occurred()) return NULL;
3396 } Py_INCREF(Py_None);
3397 _resultobj = Py_None;
3398 return _resultobj;
3399 }
3400
3401 #define wxFileDropTarget_base_OnEnter(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnEnter(_swigarg0,_swigarg1,_swigarg2))
3402 static PyObject *_wrap_wxFileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
3403 PyObject * _resultobj;
3404 wxDragResult _result;
3405 wxPyFileDropTarget * _arg0;
3406 wxCoord _arg1;
3407 wxCoord _arg2;
3408 wxDragResult _arg3;
3409 PyObject * _argo0 = 0;
3410 char *_kwnames[] = { "self","x","y","def", NULL };
3411
3412 self = self;
3413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnEnter",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3414 return NULL;
3415 if (_argo0) {
3416 if (_argo0 == Py_None) { _arg0 = NULL; }
3417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnEnter. Expected _wxPyFileDropTarget_p.");
3419 return NULL;
3420 }
3421 }
3422 {
3423 wxPy_BEGIN_ALLOW_THREADS;
3424 _result = (wxDragResult )wxFileDropTarget_base_OnEnter(_arg0,_arg1,_arg2,_arg3);
3425
3426 wxPy_END_ALLOW_THREADS;
3427 if (PyErr_Occurred()) return NULL;
3428 } _resultobj = Py_BuildValue("i",_result);
3429 return _resultobj;
3430 }
3431
3432 #define wxFileDropTarget_base_OnDragOver(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnDragOver(_swigarg0,_swigarg1,_swigarg2))
3433 static PyObject *_wrap_wxFileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
3434 PyObject * _resultobj;
3435 wxDragResult _result;
3436 wxPyFileDropTarget * _arg0;
3437 wxCoord _arg1;
3438 wxCoord _arg2;
3439 wxDragResult _arg3;
3440 PyObject * _argo0 = 0;
3441 char *_kwnames[] = { "self","x","y","def", NULL };
3442
3443 self = self;
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnDragOver",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3445 return NULL;
3446 if (_argo0) {
3447 if (_argo0 == Py_None) { _arg0 = NULL; }
3448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDragOver. Expected _wxPyFileDropTarget_p.");
3450 return NULL;
3451 }
3452 }
3453 {
3454 wxPy_BEGIN_ALLOW_THREADS;
3455 _result = (wxDragResult )wxFileDropTarget_base_OnDragOver(_arg0,_arg1,_arg2,_arg3);
3456
3457 wxPy_END_ALLOW_THREADS;
3458 if (PyErr_Occurred()) return NULL;
3459 } _resultobj = Py_BuildValue("i",_result);
3460 return _resultobj;
3461 }
3462
3463 #define wxFileDropTarget_base_OnLeave(_swigobj) (_swigobj->base_OnLeave())
3464 static PyObject *_wrap_wxFileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3465 PyObject * _resultobj;
3466 wxPyFileDropTarget * _arg0;
3467 PyObject * _argo0 = 0;
3468 char *_kwnames[] = { "self", NULL };
3469
3470 self = self;
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDropTarget_base_OnLeave",_kwnames,&_argo0))
3472 return NULL;
3473 if (_argo0) {
3474 if (_argo0 == Py_None) { _arg0 = NULL; }
3475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnLeave. Expected _wxPyFileDropTarget_p.");
3477 return NULL;
3478 }
3479 }
3480 {
3481 wxPy_BEGIN_ALLOW_THREADS;
3482 wxFileDropTarget_base_OnLeave(_arg0);
3483
3484 wxPy_END_ALLOW_THREADS;
3485 if (PyErr_Occurred()) return NULL;
3486 } Py_INCREF(Py_None);
3487 _resultobj = Py_None;
3488 return _resultobj;
3489 }
3490
3491 #define wxFileDropTarget_base_OnDrop(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnDrop(_swigarg0,_swigarg1))
3492 static PyObject *_wrap_wxFileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
3493 PyObject * _resultobj;
3494 bool _result;
3495 wxPyFileDropTarget * _arg0;
3496 wxCoord _arg1;
3497 wxCoord _arg2;
3498 PyObject * _argo0 = 0;
3499 char *_kwnames[] = { "self","x","y", NULL };
3500
3501 self = self;
3502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFileDropTarget_base_OnDrop",_kwnames,&_argo0,&_arg1,&_arg2))
3503 return NULL;
3504 if (_argo0) {
3505 if (_argo0 == Py_None) { _arg0 = NULL; }
3506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnDrop. Expected _wxPyFileDropTarget_p.");
3508 return NULL;
3509 }
3510 }
3511 {
3512 wxPy_BEGIN_ALLOW_THREADS;
3513 _result = (bool )wxFileDropTarget_base_OnDrop(_arg0,_arg1,_arg2);
3514
3515 wxPy_END_ALLOW_THREADS;
3516 if (PyErr_Occurred()) return NULL;
3517 } _resultobj = Py_BuildValue("i",_result);
3518 return _resultobj;
3519 }
3520
3521 #define wxFileDropTarget_base_OnData(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_OnData(_swigarg0,_swigarg1,_swigarg2))
3522 static PyObject *_wrap_wxFileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
3523 PyObject * _resultobj;
3524 wxDragResult _result;
3525 wxPyFileDropTarget * _arg0;
3526 wxCoord _arg1;
3527 wxCoord _arg2;
3528 wxDragResult _arg3;
3529 PyObject * _argo0 = 0;
3530 char *_kwnames[] = { "self","x","y","def", NULL };
3531
3532 self = self;
3533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxFileDropTarget_base_OnData",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3534 return NULL;
3535 if (_argo0) {
3536 if (_argo0 == Py_None) { _arg0 = NULL; }
3537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFileDropTarget_p")) {
3538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDropTarget_base_OnData. Expected _wxPyFileDropTarget_p.");
3539 return NULL;
3540 }
3541 }
3542 {
3543 wxPy_BEGIN_ALLOW_THREADS;
3544 _result = (wxDragResult )wxFileDropTarget_base_OnData(_arg0,_arg1,_arg2,_arg3);
3545
3546 wxPy_END_ALLOW_THREADS;
3547 if (PyErr_Occurred()) return NULL;
3548 } _resultobj = Py_BuildValue("i",_result);
3549 return _resultobj;
3550 }
3551
3552 static PyMethodDef clip_dndcMethods[] = {
3553 { "wxFileDropTarget_base_OnData", (PyCFunction) _wrap_wxFileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
3554 { "wxFileDropTarget_base_OnDrop", (PyCFunction) _wrap_wxFileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3555 { "wxFileDropTarget_base_OnLeave", (PyCFunction) _wrap_wxFileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3556 { "wxFileDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxFileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3557 { "wxFileDropTarget_base_OnEnter", (PyCFunction) _wrap_wxFileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3558 { "wxFileDropTarget__setCallbackInfo", (PyCFunction) _wrap_wxFileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3559 { "new_wxFileDropTarget", (PyCFunction) _wrap_new_wxFileDropTarget, METH_VARARGS | METH_KEYWORDS },
3560 { "wxTextDropTarget_base_OnData", (PyCFunction) _wrap_wxTextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
3561 { "wxTextDropTarget_base_OnDrop", (PyCFunction) _wrap_wxTextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3562 { "wxTextDropTarget_base_OnLeave", (PyCFunction) _wrap_wxTextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3563 { "wxTextDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxTextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3564 { "wxTextDropTarget_base_OnEnter", (PyCFunction) _wrap_wxTextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3565 { "wxTextDropTarget__setCallbackInfo", (PyCFunction) _wrap_wxTextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3566 { "new_wxTextDropTarget", (PyCFunction) _wrap_new_wxTextDropTarget, METH_VARARGS | METH_KEYWORDS },
3567 { "wxPyDropTarget_GetData", (PyCFunction) _wrap_wxPyDropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
3568 { "wxPyDropTarget_base_OnDrop", (PyCFunction) _wrap_wxPyDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
3569 { "wxPyDropTarget_base_OnLeave", (PyCFunction) _wrap_wxPyDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
3570 { "wxPyDropTarget_base_OnDragOver", (PyCFunction) _wrap_wxPyDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
3571 { "wxPyDropTarget_base_OnEnter", (PyCFunction) _wrap_wxPyDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
3572 { "wxPyDropTarget_SetDataObject", (PyCFunction) _wrap_wxPyDropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
3573 { "wxPyDropTarget_GetDataObject", (PyCFunction) _wrap_wxPyDropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
3574 { "delete_wxPyDropTarget", (PyCFunction) _wrap_delete_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS },
3575 { "wxPyDropTarget__setCallbackInfo", (PyCFunction) _wrap_wxPyDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3576 { "new_wxPyDropTarget", (PyCFunction) _wrap_new_wxPyDropTarget, METH_VARARGS | METH_KEYWORDS },
3577 { "wxDropSource_base_GiveFeedback", (PyCFunction) _wrap_wxDropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
3578 { "wxDropSource_DoDragDrop", (PyCFunction) _wrap_wxDropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
3579 { "wxDropSource_SetCursor", (PyCFunction) _wrap_wxDropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
3580 { "wxDropSource_GetDataObject", (PyCFunction) _wrap_wxDropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
3581 { "wxDropSource_SetData", (PyCFunction) _wrap_wxDropSource_SetData, METH_VARARGS | METH_KEYWORDS },
3582 { "delete_wxDropSource", (PyCFunction) _wrap_delete_wxDropSource, METH_VARARGS | METH_KEYWORDS },
3583 { "wxDropSource__setCallbackInfo", (PyCFunction) _wrap_wxDropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3584 { "new_wxDropSource", (PyCFunction) _wrap_new_wxDropSource, METH_VARARGS | METH_KEYWORDS },
3585 { "wxClipboard_UsePrimarySelection", (PyCFunction) _wrap_wxClipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
3586 { "wxClipboard_Flush", (PyCFunction) _wrap_wxClipboard_Flush, METH_VARARGS | METH_KEYWORDS },
3587 { "wxClipboard_Clear", (PyCFunction) _wrap_wxClipboard_Clear, METH_VARARGS | METH_KEYWORDS },
3588 { "wxClipboard_GetData", (PyCFunction) _wrap_wxClipboard_GetData, METH_VARARGS | METH_KEYWORDS },
3589 { "wxClipboard_IsSupported", (PyCFunction) _wrap_wxClipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
3590 { "wxClipboard_SetData", (PyCFunction) _wrap_wxClipboard_SetData, METH_VARARGS | METH_KEYWORDS },
3591 { "wxClipboard_AddData", (PyCFunction) _wrap_wxClipboard_AddData, METH_VARARGS | METH_KEYWORDS },
3592 { "wxClipboard_IsOpened", (PyCFunction) _wrap_wxClipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
3593 { "wxClipboard_Close", (PyCFunction) _wrap_wxClipboard_Close, METH_VARARGS | METH_KEYWORDS },
3594 { "wxClipboard_Open", (PyCFunction) _wrap_wxClipboard_Open, METH_VARARGS | METH_KEYWORDS },
3595 { "new_wxClipboard", (PyCFunction) _wrap_new_wxClipboard, METH_VARARGS | METH_KEYWORDS },
3596 { "wxURLDataObject_SetURL", (PyCFunction) _wrap_wxURLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
3597 { "wxURLDataObject_GetURL", (PyCFunction) _wrap_wxURLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
3598 { "new_wxURLDataObject", (PyCFunction) _wrap_new_wxURLDataObject, METH_VARARGS | METH_KEYWORDS },
3599 { "wxCustomDataObject_GetData", (PyCFunction) _wrap_wxCustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
3600 { "wxCustomDataObject_GetSize", (PyCFunction) _wrap_wxCustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
3601 { "wxCustomDataObject_SetData", (PyCFunction) _wrap_wxCustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
3602 { "wxCustomDataObject_TakeData", (PyCFunction) _wrap_wxCustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
3603 { "new_wxCustomDataObject", (PyCFunction) _wrap_new_wxCustomDataObject, METH_VARARGS | METH_KEYWORDS },
3604 { "wxFileDataObject_AddFile", (PyCFunction) _wrap_wxFileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
3605 { "wxFileDataObject_GetFilenames", (PyCFunction) _wrap_wxFileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
3606 { "new_wxFileDataObject", (PyCFunction) _wrap_new_wxFileDataObject, METH_VARARGS | METH_KEYWORDS },
3607 { "wxPyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_wxPyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3608 { "new_wxPyBitmapDataObject", (PyCFunction) _wrap_new_wxPyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
3609 { "wxBitmapDataObject_SetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
3610 { "wxBitmapDataObject_GetBitmap", (PyCFunction) _wrap_wxBitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3611 { "new_wxBitmapDataObject", (PyCFunction) _wrap_new_wxBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
3612 { "wxPyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_wxPyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3613 { "new_wxPyTextDataObject", (PyCFunction) _wrap_new_wxPyTextDataObject, METH_VARARGS | METH_KEYWORDS },
3614 { "wxTextDataObject_SetText", (PyCFunction) _wrap_wxTextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
3615 { "wxTextDataObject_GetText", (PyCFunction) _wrap_wxTextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
3616 { "wxTextDataObject_GetTextLength", (PyCFunction) _wrap_wxTextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
3617 { "new_wxTextDataObject", (PyCFunction) _wrap_new_wxTextDataObject, METH_VARARGS | METH_KEYWORDS },
3618 { "wxDataObjectComposite_Add", (PyCFunction) _wrap_wxDataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
3619 { "new_wxDataObjectComposite", (PyCFunction) _wrap_new_wxDataObjectComposite, METH_VARARGS | METH_KEYWORDS },
3620 { "wxPyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_wxPyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
3621 { "new_wxPyDataObjectSimple", (PyCFunction) _wrap_new_wxPyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
3622 { "wxDataObjectSimple_SetFormat", (PyCFunction) _wrap_wxDataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
3623 { "wxDataObjectSimple_GetFormat", (PyCFunction) _wrap_wxDataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
3624 { "new_wxDataObjectSimple", (PyCFunction) _wrap_new_wxDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
3625 { "wxDataObject_IsSupportedFormat", (PyCFunction) _wrap_wxDataObject_IsSupportedFormat, METH_VARARGS | METH_KEYWORDS },
3626 { "wxDataObject_SetData", (PyCFunction) _wrap_wxDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
3627 { "wxDataObject_GetDataHere", (PyCFunction) _wrap_wxDataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
3628 { "wxDataObject_GetDataSize", (PyCFunction) _wrap_wxDataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
3629 { "wxDataObject_GetAllFormats", (PyCFunction) _wrap_wxDataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
3630 { "wxDataObject_GetFormatCount", (PyCFunction) _wrap_wxDataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
3631 { "wxDataObject_GetPreferredFormat", (PyCFunction) _wrap_wxDataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
3632 { "delete_wxDataObject", (PyCFunction) _wrap_delete_wxDataObject, METH_VARARGS | METH_KEYWORDS },
3633 { "wxDataFormat_SetId", (PyCFunction) _wrap_wxDataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
3634 { "wxDataFormat_GetId", (PyCFunction) _wrap_wxDataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
3635 { "wxDataFormat_GetType", (PyCFunction) _wrap_wxDataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
3636 { "wxDataFormat_SetType", (PyCFunction) _wrap_wxDataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
3637 { "delete_wxDataFormat", (PyCFunction) _wrap_delete_wxDataFormat, METH_VARARGS | METH_KEYWORDS },
3638 { "new_wxDataFormat", (PyCFunction) _wrap_new_wxDataFormat, METH_VARARGS | METH_KEYWORDS },
3639 { "wxIsDragResultOk", (PyCFunction) _wrap_wxIsDragResultOk, METH_VARARGS | METH_KEYWORDS },
3640 { "wxCustomDataFormat", (PyCFunction) _wrap_wxCustomDataFormat, METH_VARARGS | METH_KEYWORDS },
3641 { NULL, NULL }
3642 };
3643 #ifdef __cplusplus
3644 }
3645 #endif
3646 /*
3647 * This table is used by the pointer type-checker
3648 */
3649 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3650 { "_signed_long","_long",0},
3651 { "_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
3652 { "_wxPrintQuality","_wxCoord",0},
3653 { "_wxPrintQuality","_int",0},
3654 { "_wxPrintQuality","_signed_int",0},
3655 { "_wxPrintQuality","_unsigned_int",0},
3656 { "_wxPrintQuality","_wxWindowID",0},
3657 { "_wxPrintQuality","_uint",0},
3658 { "_wxPrintQuality","_EBool",0},
3659 { "_wxPrintQuality","_size_t",0},
3660 { "_wxPrintQuality","_time_t",0},
3661 { "_byte","_unsigned_char",0},
3662 { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject},
3663 { "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
3664 { "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
3665 { "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
3666 { "_wxDataObject","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObject},
3667 { "_wxDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObject},
3668 { "_wxDataObject","_wxTextDataObject",SwigwxTextDataObjectTowxDataObject},
3669 { "_wxDataObject","_wxDataObjectComposite",SwigwxDataObjectCompositeTowxDataObject},
3670 { "_wxDataObject","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObject},
3671 { "_wxDataObject","_wxDataObjectSimple",SwigwxDataObjectSimpleTowxDataObject},
3672 { "_long","_unsigned_long",0},
3673 { "_long","_signed_long",0},
3674 { "_wxDataObjectSimple","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObjectSimple},
3675 { "_wxDataObjectSimple","_wxFileDataObject",SwigwxFileDataObjectTowxDataObjectSimple},
3676 { "_wxDataObjectSimple","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObjectSimple},
3677 { "_wxDataObjectSimple","_wxBitmapDataObject",SwigwxBitmapDataObjectTowxDataObjectSimple},
3678 { "_wxDataObjectSimple","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxDataObjectSimple},
3679 { "_wxDataObjectSimple","_wxTextDataObject",SwigwxTextDataObjectTowxDataObjectSimple},
3680 { "_wxDataObjectSimple","_wxPyDataObjectSimple",SwigwxPyDataObjectSimpleTowxDataObjectSimple},
3681 { "_size_t","_wxCoord",0},
3682 { "_size_t","_wxPrintQuality",0},
3683 { "_size_t","_time_t",0},
3684 { "_size_t","_unsigned_int",0},
3685 { "_size_t","_int",0},
3686 { "_size_t","_wxWindowID",0},
3687 { "_size_t","_uint",0},
3688 { "_wxTextDataObject","_wxPyTextDataObject",SwigwxPyTextDataObjectTowxTextDataObject},
3689 { "_uint","_wxCoord",0},
3690 { "_uint","_wxPrintQuality",0},
3691 { "_uint","_time_t",0},
3692 { "_uint","_size_t",0},
3693 { "_uint","_unsigned_int",0},
3694 { "_uint","_int",0},
3695 { "_uint","_wxWindowID",0},
3696 { "_wxChar","_char",0},
3697 { "_char","_wxChar",0},
3698 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3699 { "_wxDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxDropTarget},
3700 { "_wxDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxDropTarget},
3701 { "_wxDropTarget","_wxPyDropTarget",SwigwxPyDropTargetTowxDropTarget},
3702 { "_EBool","_wxCoord",0},
3703 { "_EBool","_wxPrintQuality",0},
3704 { "_EBool","_signed_int",0},
3705 { "_EBool","_int",0},
3706 { "_EBool","_wxWindowID",0},
3707 { "_unsigned_long","_long",0},
3708 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3709 { "_signed_int","_wxCoord",0},
3710 { "_signed_int","_wxPrintQuality",0},
3711 { "_signed_int","_EBool",0},
3712 { "_signed_int","_wxWindowID",0},
3713 { "_signed_int","_int",0},
3714 { "_WXTYPE","_short",0},
3715 { "_WXTYPE","_signed_short",0},
3716 { "_WXTYPE","_unsigned_short",0},
3717 { "_unsigned_short","_WXTYPE",0},
3718 { "_unsigned_short","_short",0},
3719 { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject},
3720 { "_signed_short","_WXTYPE",0},
3721 { "_signed_short","_short",0},
3722 { "_unsigned_char","_byte",0},
3723 { "_unsigned_int","_wxCoord",0},
3724 { "_unsigned_int","_wxPrintQuality",0},
3725 { "_unsigned_int","_time_t",0},
3726 { "_unsigned_int","_size_t",0},
3727 { "_unsigned_int","_uint",0},
3728 { "_unsigned_int","_wxWindowID",0},
3729 { "_unsigned_int","_int",0},
3730 { "_short","_WXTYPE",0},
3731 { "_short","_unsigned_short",0},
3732 { "_short","_signed_short",0},
3733 { "_wxWindowID","_wxCoord",0},
3734 { "_wxWindowID","_wxPrintQuality",0},
3735 { "_wxWindowID","_time_t",0},
3736 { "_wxWindowID","_size_t",0},
3737 { "_wxWindowID","_EBool",0},
3738 { "_wxWindowID","_uint",0},
3739 { "_wxWindowID","_int",0},
3740 { "_wxWindowID","_signed_int",0},
3741 { "_wxWindowID","_unsigned_int",0},
3742 { "_int","_wxCoord",0},
3743 { "_int","_wxPrintQuality",0},
3744 { "_int","_time_t",0},
3745 { "_int","_size_t",0},
3746 { "_int","_EBool",0},
3747 { "_int","_uint",0},
3748 { "_int","_wxWindowID",0},
3749 { "_int","_unsigned_int",0},
3750 { "_int","_signed_int",0},
3751 { "_time_t","_wxCoord",0},
3752 { "_time_t","_wxPrintQuality",0},
3753 { "_time_t","_unsigned_int",0},
3754 { "_time_t","_int",0},
3755 { "_time_t","_wxWindowID",0},
3756 { "_time_t","_uint",0},
3757 { "_time_t","_size_t",0},
3758 { "_wxCoord","_int",0},
3759 { "_wxCoord","_signed_int",0},
3760 { "_wxCoord","_unsigned_int",0},
3761 { "_wxCoord","_wxWindowID",0},
3762 { "_wxCoord","_uint",0},
3763 { "_wxCoord","_EBool",0},
3764 { "_wxCoord","_size_t",0},
3765 { "_wxCoord","_time_t",0},
3766 { "_wxCoord","_wxPrintQuality",0},
3767 { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite},
3768 { "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
3769 { "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
3770 {0,0,0}};
3771
3772 static PyObject *SWIG_globals;
3773 #ifdef __cplusplus
3774 extern "C"
3775 #endif
3776 SWIGEXPORT(void) initclip_dndc() {
3777 PyObject *m, *d;
3778 SWIG_globals = SWIG_newvarlink();
3779 m = Py_InitModule("clip_dndc", clip_dndcMethods);
3780 d = PyModule_GetDict(m);
3781 PyDict_SetItemString(d,"wxDF_INVALID", PyInt_FromLong((long) wxDF_INVALID));
3782 PyDict_SetItemString(d,"wxDF_TEXT", PyInt_FromLong((long) wxDF_TEXT));
3783 PyDict_SetItemString(d,"wxDF_BITMAP", PyInt_FromLong((long) wxDF_BITMAP));
3784 PyDict_SetItemString(d,"wxDF_METAFILE", PyInt_FromLong((long) wxDF_METAFILE));
3785 PyDict_SetItemString(d,"wxDF_SYLK", PyInt_FromLong((long) wxDF_SYLK));
3786 PyDict_SetItemString(d,"wxDF_DIF", PyInt_FromLong((long) wxDF_DIF));
3787 PyDict_SetItemString(d,"wxDF_TIFF", PyInt_FromLong((long) wxDF_TIFF));
3788 PyDict_SetItemString(d,"wxDF_OEMTEXT", PyInt_FromLong((long) wxDF_OEMTEXT));
3789 PyDict_SetItemString(d,"wxDF_DIB", PyInt_FromLong((long) wxDF_DIB));
3790 PyDict_SetItemString(d,"wxDF_PALETTE", PyInt_FromLong((long) wxDF_PALETTE));
3791 PyDict_SetItemString(d,"wxDF_PENDATA", PyInt_FromLong((long) wxDF_PENDATA));
3792 PyDict_SetItemString(d,"wxDF_RIFF", PyInt_FromLong((long) wxDF_RIFF));
3793 PyDict_SetItemString(d,"wxDF_WAVE", PyInt_FromLong((long) wxDF_WAVE));
3794 PyDict_SetItemString(d,"wxDF_UNICODETEXT", PyInt_FromLong((long) wxDF_UNICODETEXT));
3795 PyDict_SetItemString(d,"wxDF_ENHMETAFILE", PyInt_FromLong((long) wxDF_ENHMETAFILE));
3796 PyDict_SetItemString(d,"wxDF_FILENAME", PyInt_FromLong((long) wxDF_FILENAME));
3797 PyDict_SetItemString(d,"wxDF_LOCALE", PyInt_FromLong((long) wxDF_LOCALE));
3798 PyDict_SetItemString(d,"wxDF_PRIVATE", PyInt_FromLong((long) wxDF_PRIVATE));
3799 PyDict_SetItemString(d,"wxDF_MAX", PyInt_FromLong((long) wxDF_MAX));
3800 PyDict_SetItemString(d,"cvar", SWIG_globals);
3801 SWIG_addvarlink(SWIG_globals,"wxFormatInvalid",_wrap_wxPyFormatInvalid_get, _wrap_wxPyFormatInvalid_set);
3802 SWIG_addvarlink(SWIG_globals,"wxTheClipboard",_wrap_wxPyTheClipboard_get, _wrap_wxPyTheClipboard_set);
3803 PyDict_SetItemString(d,"wxDragError", PyInt_FromLong((long) wxDragError));
3804 PyDict_SetItemString(d,"wxDragNone", PyInt_FromLong((long) wxDragNone));
3805 PyDict_SetItemString(d,"wxDragCopy", PyInt_FromLong((long) wxDragCopy));
3806 PyDict_SetItemString(d,"wxDragMove", PyInt_FromLong((long) wxDragMove));
3807 PyDict_SetItemString(d,"wxDragLink", PyInt_FromLong((long) wxDragLink));
3808 PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel));
3809
3810
3811 wxPyTheClipboard = wxTheClipboard;
3812 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
3813 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
3814 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
3815 PyDict_SetItemString(d,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get));
3816 PyDict_SetItemString(d,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set));
3817 PyDict_SetItemString(d,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both));
3818 {
3819 int i;
3820 for (i = 0; _swig_mapping[i].n1; i++)
3821 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3822 }
3823 }