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