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