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