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