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