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